From 6456e9ea79eb9d56fb987994a87e3d1dc1a0f69c Mon Sep 17 00:00:00 2001 From: Benoit Pierre Date: Sat, 18 Apr 2026 19:16:42 +0200 Subject: [PATCH] macos: tweak release 7z name (#15284) - don't truncate version (stop removing arguably the most important part) - add `macos` to the name to avoid confusion with other artifacts - add deployment target too --- platform/mac/do_mac_bundle.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/mac/do_mac_bundle.sh b/platform/mac/do_mac_bundle.sh index b30d5a498..cf23e2ffa 100755 --- a/platform/mac/do_mac_bundle.sh +++ b/platform/mac/do_mac_bundle.sh @@ -28,7 +28,7 @@ if ! [ -d "${1}" ]; then exit 1 fi -VERSION="$(cut -f2 -dv "${1}/koreader/git-rev" | cut -f1,2 -d-)" +VERSION="$(cat "${1}/koreader/git-rev")" APP_PATH="${1}/bundle" APP_BUNDLE="${1}/../KOReader" APP_ARCH="$(uname -m)" @@ -64,7 +64,7 @@ cat <"${APP_PATH}/Contents/Info.plist" CFBundleIdentifier rocks.koreader CFBundleShortVersionString - ${VERSION} + ${VERSION#v} CFBundleInfoDictionaryVersion 6.0 CFBundlePackageType @@ -156,6 +156,6 @@ codesign --force --deep -s - "${APP_BUNDLE}.app" # Package as 7z reduces size from 80MB to 30MB. if command_exists "7z"; then - 7z a -l -m0=flzma2 -mx=9 "${APP_BUNDLE}-${APP_ARCH}-${VERSION}.7z" "${APP_BUNDLE}.app" + 7z a -l -m0=flzma2 -mx=9 "koreader-macos-${MACOSX_DEPLOYMENT_TARGET}-${APP_ARCH}-${VERSION}.7z" "${APP_BUNDLE}.app" rm -rf "${APP_BUNDLE}.app" fi