This commit is contained in:
Endeavorance 2025-05-10 10:46:40 -04:00
parent cc37b06d8b
commit cc19888102
14 changed files with 529 additions and 322 deletions

View file

@ -1,3 +1,27 @@
#!/usr/bin/env bash
#DESCRIPTION# Compile the binary cli
bun build --target bun --compile ./src/cli.ts --outfile rundir
# Cross build rundir for multiple platforms
echo "Clean"
rm -rf bin build
mkdir bin
echo "linux-x64"
bun build --compile --minify --target=bun-linux-x64 ./src/cli.ts --outfile bin/rundir-linux-x64
echo "linux-arm64"
bun build --compile --minify --target=bun-linux-arm64 ./src/cli.ts --outfile bin/rundir-linux-arm64
echo "windows-x64"
bun build --compile --minify --target=bun-windows-x64 ./src/cli.ts --outfile bin/rundir-windows-x64
echo "macos-arm"
bun build --compile --minify --target=bun-darwin-arm64 ./src/cli.ts --outfile bin/rundir-macos-apple-silicon
echo "macos-x64"
bun build --compile --minify --target=bun-darwin-x64 ./src/cli.ts --outfile bin/rundir-macos-x64
mkdir build
echo "package"
bun build --target bun --outdir build ./src/cli.ts

3
.run/clean Executable file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env bash
# Clean build artifacts
rm -rf build

View file

@ -1,3 +1,4 @@
#!/usr/bin/env bash
#DESCRIPTION# Format the repo, writing the formatted files to disk
bunx biome format . --write
# Format the repo, writing the formatted files to disk
bunx biome format . --write

View file

@ -1,3 +1,3 @@
#!/usr/bin/env bash
#DESCRIPTION# A rundir script
# A rundir script
echo 'Hello, world!'