File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,16 @@ createBinary ()
86
86
{
87
87
echo " Creating binary"
88
88
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"
90
99
# Replace default version and icon information from pyinstaller
91
100
cp ./build/Info.plist ./dist/WAIL.app/Contents/Info.plist
92
101
# Copy the bundledApps and support directories to inside WAIL.app/
You can’t perform that action at this time.
0 commit comments