Skip to content

Commit 91c6c4f

Browse files
build: fix hardcoded static deps location in scripts/portable_postbuild.sh
1 parent 6bd0036 commit 91c6c4f

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

scripts/portable_postbuild.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@ VERSION=$(<"build_data/VERSION")
77
OSTYPE=`uname -s`
88
if [[ "$ARCH" == "i686" ]]; then
99
echo arch: $ARCH
10+
STATIC_DEPS=static-deps/lib-i686
1011
elif [[ "$ARCH" == "x86_64" ]]; then
1112
echo arch: $ARCH
13+
STATIC_DEPS=static-deps/lib-x86-64
1214
elif [[ "$ARCH" == "aarch64" ]]; then
1315
echo arch: $ARCH
16+
STATIC_DEPS=static-deps/lib-aarch64
1417
else
1518
echo unknown arch $ARCH
1619
exit -1
@@ -114,10 +117,10 @@ cp -r plugins/sc68/libsc68/file68/data68/Replay/*.bin $OUTDIR/plugins/data68/Rep
114117

115118
# dynamic libs
116119
mkdir -p $OUTDIR/lib
117-
cp -r static-deps/lib-x86-64/lib/libBlocksRuntime.so* $OUTDIR/lib/
118-
cp -r static-deps/lib-x86-64/lib/libdispatch.so* $OUTDIR/lib/
119-
cp -r static-deps/lib-x86-64/lib/libcurl.so* $OUTDIR/lib/
120-
cp -r static-deps/lib-x86-64/lib/libmbed*.so* $OUTDIR/lib/
120+
cp -r $STATIC_DEPS/lib/libBlocksRuntime.so* $OUTDIR/lib/
121+
cp -r $STATIC_DEPS/lib/libdispatch.so* $OUTDIR/lib/
122+
cp -r $STATIC_DEPS/lib/libcurl.so* $OUTDIR/lib/
123+
cp -r $STATIC_DEPS/lib/libmbed*.so* $OUTDIR/lib/
121124

122125
# translations
123126
mkdir -p $OUTDIR/locale

0 commit comments

Comments
 (0)