Skip to content

Commit 3093c1b

Browse files
committed
Merge remote-tracking branch 'remotes/local/dev' into superslicer_variant
2 parents 1d84772 + a93210e commit 3093c1b

File tree

3 files changed

+32
-9
lines changed

3 files changed

+32
-9
lines changed

BuildMacOS.sh

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ then
7373
exit -1
7474
fi
7575

76-
while getopts ":idaxbhcsltwrv" opt; do
76+
while getopts ":idaxbhcsltwrvz" opt; do
7777
case ${opt} in
7878
i )
7979
BUILD_IMAGE="1"
@@ -113,7 +113,10 @@ while getopts ":idaxbhcsltwrv" opt; do
113113
r )
114114
BUILD_CLEANDEPEND="1"
115115
;;
116-
h ) echo "Usage: ./BuildMacOS.sh [-h][-w][-d][-r][-a][-x][-b][-c][-s][-t][-i]"
116+
z )
117+
BUILD_DOWNLOAD_DEP="1"
118+
;;
119+
h ) echo "Usage: ./BuildMacOS.sh [-h][-w][-d][-r][-a][-x][-b][-c][-s][-t][-i][-z]"
117120
echo " -h: this message"
118121
echo " -w: wipe build directories before building"
119122
echo " -d: build dependencies"
@@ -126,6 +129,7 @@ while getopts ":idaxbhcsltwrv" opt; do
126129
echo " -t: build tests (in combination with -s)"
127130
echo " -i: generate DMG image (optional)\n"
128131
echo " -v: change the version 'UNKNOWN' to the date of the day"
132+
echo " -z: download libraries to package in the dmg (libzstd)"
129133
exit 0
130134
;;
131135
esac
@@ -165,7 +169,6 @@ echo "\nbrew --prefix libiconv:\n"
165169
brew --prefix libiconv
166170
echo "\nbrew --prefix zstd:\n"
167171
brew --prefix zstd
168-
export LIBRARY_PATH=$LIBRARY_PATH:$(brew --prefix zstd)/lib/
169172
# not enough to fix the issue on cross-compiling
170173
#if [[ -n "$BUILD_ARCH" ]]
171174
#then
@@ -334,7 +337,12 @@ then
334337
chmod 755 $ROOT/build/src/BuildMacOSImage.sh
335338
pushd build > /dev/null
336339
echo "> $ROOT/build/src/BuildMacOSImage.sh -i ${BUILD_IMG_ARCH}"
337-
$ROOT/build/src/BuildMacOSImage.sh -i $BUILD_IMG_ARCH
340+
if [[ -n "$BUILD_DOWNLOAD_DEP" ]]
341+
then
342+
$ROOT/build/src/BuildMacOSImage.sh -i $BUILD_IMG_ARCH
343+
else
344+
$ROOT/build/src/BuildMacOSImage.sh -i $BUILD_IMG_ARCH -z
345+
fi
338346
popd > /dev/null
339347
echo "> ls ROOT"
340348
ls -al $ROOT

resources/ui_layout/default/printer_fff.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ group:silent_mode_event:filename_format_event:Firmware
3737
end_line
3838
line:Processing limit
3939
setting:max_gcode_per_second
40-
setting:gcode_command_buffer
40+
# setting:gcode_command_buffer
4141
end_line
4242
line:G2/G3 generation
4343
setting:arc_fitting

src/platform/osx/BuildMacOSImage.sh.in

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
export OS_NAME="macOS"
1515
VERSION_NUMBER=""
16-
while getopts ":ixavh" opt; do
16+
while getopts ":ixavhz" opt; do
1717
case ${opt} in
1818
i )
1919
export BUILD_IMAGE="1"
@@ -27,10 +27,14 @@ while getopts ":ixavh" opt; do
2727
v )
2828
export VERSION_NUMBER="-@SLIC3R_VERSION_FULL@"
2929
;;
30-
h ) echo "Usage: ./BuildLinuxImage.sh [-i][-a][-h]"
30+
z )
31+
BUILD_DOWNLOAD_DEP="1"
32+
;;
33+
h ) echo "Usage: ./BuildLinuxImage.sh [-i][-a][-h][-z]"
3134
echo " -i: generate Appimage (optional)"
3235
echo " -x: set output name for intel (optional)"
3336
echo " -a: set output name for arm (optional)"
37+
echo " -z: download libs to package (libzstd) (optional)"
3438
echo " -h: help"
3539
exit 0
3640
;;
@@ -76,8 +80,19 @@ done
7680
# copy bin and do not let it lower case
7781
cp -f bin/@SLIC3R_APP_CMD@ pack/@SLIC3R_APP_KEY@/@[email protected]/Contents/MacOS/@SLIC3R_APP_KEY@
7882
chmod u+x pack/@SLIC3R_APP_KEY@/@[email protected]/Contents/MacOS/@SLIC3R_APP_KEY@
79-
cp /usr/local/opt/zstd/lib/libzstd.1.dylib pack/@SLIC3R_APP_KEY@/@[email protected]/Contents/MacOS/libzstd.1.dylib
80-
83+
84+
#copy libzstd
85+
echo "libzstd:\n"
86+
ls /usr/local/opt/zstd/lib/libzstd*
87+
ls /usr/local/opt/zstd/lib/libzstd*.dylib
88+
cp /usr/local/opt/zstd/lib/libzstd* pack/@SLIC3R_APP_KEY@/@[email protected]/Contents/MacOS/Frameworks/
89+
90+
if [[ -n "$BUILD_DOWNLOAD_DEP" ]]
91+
then
92+
echo "downloading libzstd\n"
93+
ZSTDURL="https://github.com/supermerill/SuperSlicer_deps/releases/download/1.8/libzstd.1.5.6.dylib"
94+
wget ${ZSTDURL} -O pack/@SLIC3R_APP_KEY@/@[email protected]/Contents/MacOS/Frameworks/libzstd.1.5.6.dylib
95+
fi
8196
# } &> $ROOT/Build.log # Capture all command output
8297
echo -e "\n ... done\n"
8398

0 commit comments

Comments
 (0)