forked from prusa3d/PrusaSlicer
-
-
Notifications
You must be signed in to change notification settings - Fork 520
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
123 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,7 +45,7 @@ echo -n "[9/9] Generating MacOS app..." | |
# copy bin and do not let it lower case | ||
cp -f src/@SLIC3R_APP_CMD@ pack/@SLIC3R_APP_KEY@/@[email protected]/Contents/MacOS/@SLIC3R_APP_KEY@ | ||
chmod u+x pack/@SLIC3R_APP_KEY@/@[email protected]/Contents/MacOS/@SLIC3R_APP_KEY@ | ||
} &> $ROOT/build/MacOS_Build.log # Capture all command output | ||
} &> $ROOT/Build.log # Capture all command output | ||
echo "done" | ||
|
||
if [[ -n "$BUILD_IMAGE" ]] | ||
|
@@ -58,6 +58,6 @@ echo -n "Creating DMG Image for distribution..." | |
hdiutil create -ov -fs HFS+ -volname "@SLIC3R_APP_KEY@" -srcfolder "pack/@SLIC3R_APP_KEY@" temp.dmg | ||
hdiutil convert temp.dmg -format UDZO -o @[email protected] | ||
popd | ||
} &> $ROOT/build/MacOS_Build.log # Capture all command output | ||
} &> $ROOT/Build.log # Capture all command output | ||
echo "done" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,13 +9,13 @@ while getopts ":ih" opt; do | |
export BUILD_IMAGE="1" | ||
;; | ||
h ) echo "Usage: ./BuildLinuxImage.sh [-i]" | ||
echo " -i: Generate DMG image (optional)" | ||
echo " -i: Generate Appimage (optional)" | ||
exit 0 | ||
;; | ||
esac | ||
done | ||
|
||
echo -n "[9/9] Generating MacOS app..." | ||
echo -n "[9/9] Generating Linux app..." | ||
{ | ||
|
||
# create directory and copy into it | ||
|
@@ -25,7 +25,7 @@ echo -n "[9/9] Generating MacOS app..." | |
fi | ||
mkdir package | ||
mkdir package/bin | ||
|
||
# copy Resources | ||
cp -Rf ../resources package/resources | ||
cp -f src/@SLIC3R_APP_CMD@ package/bin/@SLIC3R_APP_CMD@ | ||
|
@@ -34,7 +34,7 @@ echo -n "[9/9] Generating MacOS app..." | |
echo -e '#!/bin/bash\nDIR=$(readlink -f "$0" | xargs dirname)\nexport LD_LIBRARY_PATH="$DIR/bin"\nexec "$DIR/bin/@SLIC3R_APP_CMD@" "$@"' >@SLIC3R_APP_CMD@ | ||
chmod u+x @SLIC3R_APP_CMD@ | ||
tar -cvf ../@[email protected] . | ||
} &> $ROOT/build/MacOS_Build.log # Capture all command output | ||
} &> $ROOT/Build.log # Capture all command output | ||
echo "done" | ||
|
||
if [[ -n "$BUILD_IMAGE" ]] | ||
|
@@ -43,6 +43,6 @@ echo -n "Creating Appimage for distribution..." | |
{ | ||
chmod +x ../build_appimage.sh | ||
../build_appimage.sh | ||
} &> $ROOT/build/MacOS_Build.log # Capture all command output | ||
} &> $ROOT/Build.log # Capture all command output | ||
echo "done" | ||
fi |
Oops, something went wrong.