A TempleOS distro for heretics
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
586 B

set -e
rm -rf .build
mkdir .build
cd .build
curl -O https://shrine.systems/download/templeos-loader/$BIN
chmod +x $BIN
mkdir Shrine.out
# workaround fs bug in HolyCRT (fails to create necessary directories)
mkdir -p Shrine.out/Compiler Shrine.out/Kernel
env STARTOS=Build/BuildShrine ./$BIN --drive=C,..,Shrine.out
ISO_SIZE=$(wc -c <$ISO_FILE)
if [ $ISO_SIZE -le $MIN_SIZE ]; then
echo error: $ISO_FILE is $ISO_SIZE bytes in size, less than the expected minimum of $MIN_SIZE >&2
exit 1