mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 18:31:52 +00:00
* refactor project structure * environment-based default registry * fix tests * update build container * use docker platform for iso build emulation * simplify compat * Fix docker platform spec in run-compat.sh * handle riscv compat * fix bug with dep error exists attr * undo removal of sorting * use qemu for iso stage --------- Co-authored-by: Mariusz Kogen <k0gen@pm.me> Co-authored-by: Matt Hill <mattnine@protonmail.com>
21 lines
547 B
Bash
Executable File
21 lines
547 B
Bash
Executable File
#!/bin/bash
|
|
|
|
PROJECT=${PROJECT:-"startos"}
|
|
|
|
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 "${PROJECT}-${VERSION_FULL}_${PLATFORM}" |