mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-28 19:31:22 +00:00
Fix CICD
This commit is contained in:
+11
-2
@@ -200,8 +200,17 @@ function build_slicer() {
|
|||||||
cd Snapmaker_Orca
|
cd Snapmaker_Orca
|
||||||
# remove previously built app
|
# remove previously built app
|
||||||
rm -rf "./Snapmaker Orca.app"
|
rm -rf "./Snapmaker Orca.app"
|
||||||
# fully copy newly built app
|
# determine source app path (handle both space and underscore names)
|
||||||
cp -pR "../src$BUILD_DIR_CONFIG_SUBDIR/Snapmaker Orca.app" "./Snapmaker Orca.app"
|
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
|
# fix resources
|
||||||
resources_path=$(readlink "./Snapmaker Orca.app/Contents/Resources")
|
resources_path=$(readlink "./Snapmaker Orca.app/Contents/Resources")
|
||||||
rm "./Snapmaker Orca.app/Contents/Resources"
|
rm "./Snapmaker Orca.app/Contents/Resources"
|
||||||
|
|||||||
Reference in New Issue
Block a user