mirror of
https://github.com/geoffsee/predict-otron-9001.git
synced 2025-09-08 22:46:44 +00:00
cleanup, add ci
This commit is contained in:
19
scripts/build_cli.sh
Executable file
19
scripts/build_cli.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env sh
|
||||
set -e
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
|
||||
TEMP_DIR="$SCRIPT_DIR/temp"
|
||||
|
||||
mkdir -p "$TEMP_DIR"
|
||||
|
||||
cp "$SCRIPT_DIR/cli.ts" "$TEMP_DIR/cli.ts"
|
||||
cp "$SCRIPT_DIR/../package.json" "$TEMP_DIR/package.json"
|
||||
|
||||
(
|
||||
cd "$TEMP_DIR"
|
||||
bun i
|
||||
bun build ./cli.ts --compile --outfile "$SCRIPT_DIR/cli"
|
||||
)
|
||||
|
||||
rm -rf "$TEMP_DIR"
|
Reference in New Issue
Block a user