-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathmaclipo.sh
More file actions
executable file
·30 lines (24 loc) · 941 Bytes
/
maclipo.sh
File metadata and controls
executable file
·30 lines (24 loc) · 941 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
set -e
JQTVER=$(grep "^VERSION *=" common.pri|cut -d= -f2 | tr -d " ")
echo $JQTVER
if [ "`uname`" = "Darwin" ] ; then
if [ -f bin/mac-x86_64/release/libjqt.$JQTVER.dylib ] && [ -f bin/mac-aarch64/release/libjqt.$JQTVER.dylib ] ; then
lipo \
bin/mac-x86_64/release/libjqt.$JQTVER.dylib \
bin/mac-aarch64/release/libjqt.$JQTVER.dylib \
-create -output bin/libjqt.$JQTVER.dylib
fi
if [ -f bin/mac-x86_64/release/jqt.app/Contents/MacOS/jqt ] && [ -f bin/mac-aarch64/release/jqt.app/Contents/MacOS/jqt ] ; then
lipo \
bin/mac-x86_64/release/jqt.app/Contents/MacOS/jqt \
bin/mac-aarch64/release/jqt.app/Contents/MacOS/jqt \
-create -output bin/jqt
fi
if [ -f bin/mac-x86_64/release/jqta.app/Contents/MacOS/jqta ] && [ -f bin/mac-aarch64/release/jqta.app/Contents/MacOS/jqta ] ; then
lipo \
bin/mac-x86_64/release/jqta.app/Contents/MacOS/jqta \
bin/mac-aarch64/release/jqta.app/Contents/MacOS/jqta \
-create -output bin/jqta
fi
fi