Harden prepare-release.sh beatles boot validation and archive creation
- Normalize target aliases and decouple boot-lk2nd-nokia-beatles-display.img rebuilds from rebuild-image.sh so a missing lk2nd image does not rebuild the verified raw image - Run check-beatles-bootimg.py, sync-beatles-bootfs.py --check, and display_lk2nd_is_current before archiving nokia-beatles - Remove pre-existing release directories and .zip files before packing both boot-bananarchy-nokia-beatles.img and boot-lk2nd-nokia-beatles-display.img, and guard in check-rebuild.sh
This commit is contained in:
1 parent
83c8db10f1
commit
9fc82fb7d8
3 files changed
+39
-8
No files matched your search
@@ -803,6 +803,18 @@ if grep -q -- '--debug-boot' "$BASE_DIR/flash-edl.py" || \
|
||||
fail "flash-edl.py still references the abandoned debug boot image"
|
||||
fi
|
||||
|
||||
PREPARE_REL="$BASE_DIR/prepare-release.sh"
|
||||
if ! grep -qF 'DISPLAY_IMAGE="images/boot-lk2nd-nokia-beatles-display.img"' "$PREPARE_REL" || \
|
||||
! grep -qF 'BOOT_IMAGE="images/boot-bananarchy-nokia-beatles.img"' "$PREPARE_REL" || \
|
||||
! grep -qF 'cp "$BOOT_IMAGE" "$RELDIR/"' "$PREPARE_REL" || \
|
||||
! grep -qF 'cp "$DISPLAY_IMAGE" "$RELDIR/"' "$PREPARE_REL" || \
|
||||
! grep -qF 'python3 scripts/check-beatles-bootimg.py' "$PREPARE_REL" || \
|
||||
! grep -qF 'python3 scripts/sync-beatles-bootfs.py --check' "$PREPARE_REL" || \
|
||||
! grep -qF 'rm -rf "$RELDIR" "${RELDIR}.zip"' "$PREPARE_REL" || \
|
||||
grep -qF 'for f in images/boot-bananarchy-nokia-beatles.img "$DISPLAY_IMAGE"' "$PREPARE_REL"; then
|
||||
fail "prepare-release.sh lost decoupled beatles boot/lk2nd validation or clean zip replacement"
|
||||
fi
|
||||
|
||||
echo "[check] Plugin artifacts..."
|
||||
for source in "$BASE_DIR"/src/dwm-plugins/*_plugin.cpp; do
|
||||
name="$(basename "$source" _plugin.cpp)"
|
||||
|
||||
Reference in new issue
Block a user