Add Store support and unsigned app releases
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
# Builds the SmartFox installer ISO (UEFI, x86-64) for a USB stick.
|
||||
# Builds the Fennec OS installer ISO (UEFI, x86-64) for a USB stick.
|
||||
# Run as root inside WSL Debian:
|
||||
# sudo bash /mnt/g/source/smartfox/image/build-iso.sh
|
||||
# Writes image/out/smartfox-installer.iso (in the source tree, so Rufus on
|
||||
@@ -7,7 +7,7 @@
|
||||
# Raw writers (Etcher, dd) work too: the ISO carries a GPT with an ESP holding
|
||||
# the UKI, so UEFI firmware sees the stick as bootable.
|
||||
#
|
||||
# SKIP_BUILD=1 reuses the last SmartFox image instead of running build.sh.
|
||||
# SKIP_BUILD=1 reuses the last Fennec OS image instead of running build.sh.
|
||||
# Don't do that after booting it in run-qemu.sh: the VM writes into that file.
|
||||
set -euo pipefail
|
||||
|
||||
@@ -43,7 +43,7 @@ rm -rf "$STAGE"
|
||||
mkdir -p "$STAGE/tree/EFI/BOOT" "$STAGE/tree/smartfox"
|
||||
cp "$UKI" "$STAGE/tree/EFI/BOOT/BOOTX64.EFI"
|
||||
stat -c %s "$RAW" >"$STAGE/tree/smartfox/smartfox.size"
|
||||
echo "SmartFox $(grep -m1 '^version' "$WORK/Cargo.toml" | cut -d'"' -f2) · $(date +%Y-%m-%d)" >"$STAGE/tree/smartfox/version"
|
||||
echo "Fennec OS $(grep -m1 '^version' "$WORK/Cargo.toml" | cut -d'"' -f2) · $(date +%Y-%m-%d)" >"$STAGE/tree/smartfox/version"
|
||||
zstd -T0 -10 -q "$RAW" -o "$STAGE/tree/smartfox/smartfox.raw.zst"
|
||||
# Rufus puts the files on FAT32: no single file may reach 4 GiB.
|
||||
[ "$(stat -c %s "$STAGE/tree/smartfox/smartfox.raw.zst")" -lt 4294967296 ] || { echo "payload too big for FAT32"; exit 1; }
|
||||
@@ -59,7 +59,7 @@ echo "== iso"
|
||||
ISO="$STAGE/smartfox-installer.iso"
|
||||
xorriso -as mkisofs \
|
||||
-iso-level 3 -full-iso9660-filenames -joliet -joliet-long -rational-rock \
|
||||
-volid SMARTFOX -appid "SmartFox installer" \
|
||||
-volid FENNEC_OS -appid "Fennec OS installer" \
|
||||
-partition_offset 16 \
|
||||
-append_partition 2 C12A7328-F81F-11D2-BA4B-00A0C93EC93B "$EFI_IMG" -appended_part_as_gpt \
|
||||
-e --interval:appended_partition_2:all:: -no-emul-boot \
|
||||
|
||||
Reference in New Issue
Block a user