mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +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>
19 lines
511 B
Bash
Executable File
19 lines
511 B
Bash
Executable File
#!/bin/bash
|
|
|
|
cd "$(dirname "${BASH_SOURCE[0]}")"
|
|
|
|
PLATFORM=$(if [ -f ./PLATFORM.txt ]; then cat ./PLATFORM.txt; else echo unknown; fi)
|
|
VERSION="$(cat ./VERSION.txt)"
|
|
GIT_HASH="$(cat ./GIT_HASH.txt)"
|
|
if [[ "$GIT_HASH" =~ ^@ ]]; then
|
|
GIT_HASH=unknown
|
|
else
|
|
GIT_HASH="$(echo -n "$GIT_HASH" | head -c 7)"
|
|
fi
|
|
STARTOS_ENV="$(cat ./ENVIRONMENT.txt)"
|
|
VERSION_FULL="${VERSION}-${GIT_HASH}"
|
|
if [ -n "$STARTOS_ENV" ]; then
|
|
VERSION_FULL="$VERSION_FULL~${STARTOS_ENV}"
|
|
fi
|
|
|
|
echo -n "startos-${VERSION_FULL}_${PLATFORM}" |