GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — hoist/cli/scripts/build-all.ts at main · echohello-dev/hoist

Expand file tree

/

build-all.ts

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
23 lines (19 loc) · 888 Bytes
/

build-all.ts

Copy path

File metadata and controls

23 lines (19 loc) · 888 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { mkdir } from 'node:fs/promises'
const targets = [
{ target: 'bun-darwin-arm64', output: 'hoist-darwin-arm64' },
{ target: 'bun-darwin-x64', output: 'hoist-darwin-x64' },
{ target: 'bun-linux-arm64', output: 'hoist-linux-arm64' },
{ target: 'bun-linux-x64', output: 'hoist-linux-x64' },
{ target: 'bun-windows-arm64', output: 'hoist-windows-arm64.exe' },
{ target: 'bun-windows-x64', output: 'hoist-windows-x64.exe' },
] as const
await mkdir('dist', { recursive: true })
for (const { target, output } of targets) {
console.log(`Building ${target}`)
const process = Bun.spawn(
['bun', 'build', 'src/index.ts', '--compile', `--outfile=dist/${output}`, `--target=${target}`],
{ stdout: 'inherit', stderr: 'inherit' },
)
const exitCode = await process.exited
if (exitCode !== 0) throw new Error(`${target} build failed with exit code ${exitCode}`)
}
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.