From 18577995144c2b91f861a6b5543ed34277776344 Mon Sep 17 00:00:00 2001 From: xiaoyeliu Date: Mon, 17 Nov 2025 16:12:56 +0800 Subject: [PATCH] Fix CICD --- build_release_macos.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/build_release_macos.sh b/build_release_macos.sh index b6857974e4..ee123f93aa 100755 --- a/build_release_macos.sh +++ b/build_release_macos.sh @@ -200,8 +200,17 @@ function build_slicer() { cd Snapmaker_Orca # remove previously built app rm -rf "./Snapmaker Orca.app" - # fully copy newly built app - cp -pR "../src$BUILD_DIR_CONFIG_SUBDIR/Snapmaker Orca.app" "./Snapmaker Orca.app" + # determine source app path (handle both space and underscore names) + APP_SOURCE_PATH="../src$BUILD_DIR_CONFIG_SUBDIR/Snapmaker Orca.app" + if [ ! -d "$APP_SOURCE_PATH" ]; then + APP_SOURCE_PATH="../src$BUILD_DIR_CONFIG_SUBDIR/Snapmaker_Orca.app" + fi + if [ ! -d "$APP_SOURCE_PATH" ]; then + echo "Error: cannot find built app bundle at $APP_SOURCE_PATH" + exit 1 + fi + # fully copy newly built app (rename to canonical name with space) + cp -pR "$APP_SOURCE_PATH" "./Snapmaker Orca.app" # fix resources resources_path=$(readlink "./Snapmaker Orca.app/Contents/Resources") rm "./Snapmaker Orca.app/Contents/Resources"