From e3f63e97fc98acc3f43ddd09240beb15580c501b Mon Sep 17 00:00:00 2001 From: sim Date: Thu, 10 Sep 2026 12:14:52 +0800 Subject: [PATCH] =?UTF-8?q?build(macos):=20=E5=85=9C=E5=BA=95=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E5=8A=A0=E6=96=B0=E9=B2=9C=E5=BA=A6=E2=80=94=E2=80=94?= =?UTF-8?q?=E6=89=93=E5=8C=85=E5=A4=B1=E8=B4=A5=E6=97=B6=E6=97=A7=20bundle?= =?UTF-8?q?=20=E4=B8=8D=E5=85=81=E8=AE=B8=E5=86=8D=E9=80=9A=E8=BF=87?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- openless-all/app/scripts/build-mac.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openless-all/app/scripts/build-mac.sh b/openless-all/app/scripts/build-mac.sh index d799e34c..02682e03 100755 --- a/openless-all/app/scripts/build-mac.sh +++ b/openless-all/app/scripts/build-mac.sh @@ -59,8 +59,8 @@ npm run tauri -- "${TAURI_BUILD_ARGS[@]}" || echo "⚠ tauri build 退出码非 APP_VERSION="$(node -p "require('./package.json').version")" DMG_PATH="$DMG_DIR/OpenLess_${APP_VERSION}_${MAC_BUNDLE_ARCH}.dmg" -if [ ! -d "$APP" ]; then - echo "✗ 未生成 $APP —— 编译或打包失败,中止" +if [ ! -d "$APP" ] || [ "$APP/Contents/MacOS/openless" -ot "src-tauri/target/release/openless" ]; then + echo "✗ $APP 缺失或早于刚编译的二进制(打包未完成),中止" exit 1 fi