fix: verify APK checksum from release directory
This commit is contained in:
1 parent
0a1bec5a98
commit
cb9719f1dc
1 file changed
+6
-1
@@ -102,7 +102,12 @@ CHECKSUM="$APK.sha256"
|
||||
[ -s "$APK" ] || { echo "Build did not produce $APK" >&2; exit 1; }
|
||||
[ -s "$CHECKSUM" ] || { echo "Build did not produce $CHECKSUM" >&2; exit 1; }
|
||||
|
||||
sha256sum -c "$CHECKSUM"
|
||||
# build-fork-apk.sh runs `sha256sum` from inside release/, so the file references
|
||||
# only the bare filename. Verify from that directory.
|
||||
(
|
||||
cd release
|
||||
sha256sum -c "$(basename "$CHECKSUM")"
|
||||
)
|
||||
|
||||
if [ -z "${APK_RELEASE_BODY:-}" ]; then
|
||||
APK_RELEASE_BODY=$(python3 - "$TAG" "$VERSION_CODE" "$VERSION_NAME" "$T3CODE_APK_RELEASE_COMMIT" "$(sha256sum "$APK" | cut -d' ' -f1)" <<'PY'
|
||||
|
||||
Reference in new issue
Block a user