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
184 additions
and
97 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 |
---|---|---|
|
@@ -16,14 +16,15 @@ while getopts ":ih" opt; do | |
done | ||
|
||
echo -n "[9/9] Generating Linux app..." | ||
{ | ||
|
||
#{ | ||
# create directory and copy into it | ||
if [ -d "package" ] | ||
then | ||
rm -rf package/* | ||
rm -rf package/.* 2&>/dev/null | ||
else | ||
mkdir package | ||
fi | ||
mkdir package | ||
mkdir package/bin | ||
|
||
# copy Resources | ||
|
@@ -32,17 +33,23 @@ echo -n "[9/9] Generating Linux app..." | |
|
||
# create bin | ||
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.log # Capture all command output | ||
chmod ug+x @SLIC3R_APP_CMD@ | ||
cp -f @SLIC3R_APP_CMD@ package/@SLIC3R_APP_CMD@ | ||
pushd package | ||
tar -cvf ../@[email protected] . &>/dev/null | ||
popd | ||
#} &> $ROOT/Build.log # Capture all command output | ||
echo "done" | ||
|
||
if [[ -n "$BUILD_IMAGE" ]] | ||
then | ||
echo -n "Creating Appimage for distribution..." | ||
{ | ||
#{ | ||
pushd package | ||
chmod +x ../build_appimage.sh | ||
../build_appimage.sh | ||
} &> $ROOT/Build.log # Capture all command output | ||
popd | ||
mv package/"@SLIC3R_APP_KEY@_ubu64.AppImage" "@SLIC3R_APP_KEY@_ubu64.AppImage" | ||
#} &> $ROOT/Build.log # Capture all command output | ||
echo "done" | ||
fi |
Oops, something went wrong.