From 155258f2087b000ce4115d744c0856689c5f68c2 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Thu, 27 Apr 2023 15:25:35 +0000 Subject: [PATCH] release.sh: check we have each binary (RM case) ~duplicated from the non-RM case --- contrib/android/make_apk.sh | 1 + contrib/release.sh | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/contrib/android/make_apk.sh b/contrib/android/make_apk.sh index 5f0d383fb..7f2a34890 100755 --- a/contrib/android/make_apk.sh +++ b/contrib/android/make_apk.sh @@ -89,6 +89,7 @@ fi if [[ "$2" == "all" ]] ; then # build all apks + # FIXME failures are not propagated out: we should fail the script if any arch build fails export APP_ANDROID_ARCH=armeabi-v7a make $TARGET export APP_ANDROID_ARCH=arm64-v8a diff --git a/contrib/release.sh b/contrib/release.sh index ce5b59634..3320eb8a5 100755 --- a/contrib/release.sh +++ b/contrib/release.sh @@ -259,6 +259,18 @@ else cd "$PROJECT_ROOT" + # check we have each binary + test -f "$PROJECT_ROOT/dist/$tarball" || fail "tarball not found among built files" + test -f "$PROJECT_ROOT/dist/$srctarball" || fail "srctarball not found among built files" + test -f "$PROJECT_ROOT/dist/$appimage" || fail "appimage not found among built files" + test -f "$PROJECT_ROOT/dist/$win1" || fail "win1 not found among built files" + test -f "$PROJECT_ROOT/dist/$win2" || fail "win2 not found among built files" + test -f "$PROJECT_ROOT/dist/$win3" || fail "win3 not found among built files" + test -f "$PROJECT_ROOT/dist/$apk1" || fail "apk1 not found among built files" + test -f "$PROJECT_ROOT/dist/$apk2" || fail "apk2 not found among built files" + test -f "$PROJECT_ROOT/dist/$apk3" || fail "apk3 not found among built files" + test -f "$PROJECT_ROOT/dist/$dmg" || fail "dmg not found among built files" + if [ $REV != $VERSION ]; then fail "versions differ, not uploading" fi