Skip to content

Commit a3e1821

Browse files
committed
Merge branch 'main' into issue-575
2 parents 9ba42a7 + 3953b38 commit a3e1821

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

bundledApps/MAKEFILE.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,16 @@ createBinary ()
8686
{
8787
echo "Creating binary"
8888
which pyinstaller
89-
pyinstaller -p bundledApps ./bundledApps/WAIL.py --onefile --windowed --clean --target-arch universal2 --icon="./build/icons/wail_blue.icns"
89+
90+
# Only specify the universal2 flag if an appropriate Python is installed, otherwise use default
91+
if file `which python3` | grep 'universal'; then
92+
echo "🌌 Building universal binary"
93+
archflag=(--target-arch universal2)
94+
else
95+
echo "🍎 Building native single-architecture binary"
96+
fi
97+
98+
pyinstaller -p bundledApps ./bundledApps/WAIL.py --onefile --windowed --clean "${archflag[@]}" --icon="./build/icons/wail_blue.icns"
9099
# Replace default version and icon information from pyinstaller
91100
cp ./build/Info.plist ./dist/WAIL.app/Contents/Info.plist
92101
# Copy the bundledApps and support directories to inside WAIL.app/

0 commit comments

Comments
 (0)