mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
* fix mac build * additional fixes * handle arm64 from uname -m * handle arm64 from uname -m in all builds * gracefully handle rootless docker * use cross-platform method of determining file uid
20 lines
366 B
Bash
Executable File
20 lines
366 B
Bash
Executable File
#!/bin/bash
|
|
|
|
cd "$(dirname "${BASH_SOURCE[0]}")"
|
|
|
|
set -ea
|
|
shopt -s expand_aliases
|
|
|
|
web="../web/dist/static"
|
|
[ -d "$web" ] || mkdir -p "$web"
|
|
|
|
if [ -z "$PLATFORM" ]; then
|
|
PLATFORM=$(uname -m)
|
|
fi
|
|
|
|
if [ "$PLATFORM" = "arm64" ]; then
|
|
PLATFORM="aarch64"
|
|
fi
|
|
|
|
cargo install --path=./startos --no-default-features --features=cli,docker,registry --bin start-cli --locked
|