mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 10:21:52 +00:00
* consolidate and streamline build * fix workflow syntax * fix workflow syntax * fix workflow syntax * fix workflow syntax * fix build scripts * only build platform-specific system images * fix build script * more build fixes * fix * fix compat build for x86 * wat * checkout * Prevent rebuild of compiled artifacts * Update startos-iso.yaml * Update startos-iso.yaml * fix raspi build * handle missing platform better * reduce arm vcpus * remove arch and platform from fe config, add to patch db --------- Co-authored-by: Matt Hill <mattnine@protonmail.com>
22 lines
511 B
Bash
Executable File
22 lines
511 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
shopt -s expand_aliases
|
|
|
|
if [ "$0" != "./install-sdk.sh" ]; then
|
|
>&2 echo "Must be run from backend directory"
|
|
exit 1
|
|
fi
|
|
|
|
frontend="../frontend/dist/static"
|
|
[ -d "$frontend" ] || mkdir -p "$frontend"
|
|
|
|
if [ -z "$PLATFORM" ]; then
|
|
export PLATFORM=$(uname -m)
|
|
fi
|
|
|
|
cargo install --path=. --no-default-features --features=js_engine,sdk,cli --locked
|
|
startbox_loc=$(which startbox)
|
|
ln -sf $startbox_loc $(dirname $startbox_loc)/start-cli
|
|
ln -sf $startbox_loc $(dirname $startbox_loc)/start-sdk
|