forked from shinyquagsire23/OpenJKDF2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
combine_macos_appbundles.sh
executable file
·31 lines (23 loc) · 2.98 KB
/
combine_macos_appbundles.sh
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
30
31
#!/bin/zsh
rm -rf OpenJKDF2_universal.app
cp -r OpenJKDF2.app OpenJKDF2_universal.app
rm -rf OpenJKDF2_universal.app/Contents/MacOS/openjkdf2-64.dsym
cp -r OpenJKDF2.app/Contents/MacOS/openjkdf2-64.dsym OpenJKDF2_universal.app/Contents/MacOS/openjkdf2-64_arm64.dsym
cp -r OpenJKDF2_x86_64.app/Contents/MacOS/openjkdf2-64.dsym OpenJKDF2_universal.app/Contents/MacOS/openjkdf2-64_x86_64.dsym
lipo -create -output OpenJKDF2_universal.app/Contents/MacOS/openjkdf2-64 OpenJKDF2.app/Contents/MacOS/openjkdf2-64 OpenJKDF2_x86_64.app/Contents/MacOS/openjkdf2-64
lipo -create -output OpenJKDF2_universal.app/Contents/MacOS/libGLEW.2.2.dylib OpenJKDF2.app/Contents/MacOS/libGLEW.2.2.dylib OpenJKDF2_x86_64.app/Contents/MacOS/libGLEW.2.2.dylib
lipo -create -output OpenJKDF2_universal.app/Contents/MacOS/libSDL2-2.0.0.dylib OpenJKDF2.app/Contents/MacOS/libSDL2-2.0.0.dylib OpenJKDF2_x86_64.app/Contents/MacOS/libSDL2-2.0.0.dylib
lipo -create -output OpenJKDF2_universal.app/Contents/MacOS/libSDL2_mixer-2.0.0.dylib OpenJKDF2.app/Contents/MacOS/libSDL2_mixer-2.0.0.dylib OpenJKDF2_x86_64.app/Contents/MacOS/libSDL2_mixer-2.0.0.dylib
lipo -create -output OpenJKDF2_universal.app/Contents/MacOS/libmodplug.1.dylib OpenJKDF2.app/Contents/MacOS/libmodplug.1.dylib OpenJKDF2_x86_64.app/Contents/MacOS/libmodplug.1.dylib
lipo -create -output OpenJKDF2_universal.app/Contents/MacOS/libmpg123.0.dylib OpenJKDF2.app/Contents/MacOS/libmpg123.0.dylib OpenJKDF2_x86_64.app/Contents/MacOS/libmpg123.0.dylib
lipo -create -output OpenJKDF2_universal.app/Contents/MacOS/libvorbis.0.dylib OpenJKDF2.app/Contents/MacOS/libvorbis.0.dylib OpenJKDF2_x86_64.app/Contents/MacOS/libvorbis.0.dylib
lipo -create -output OpenJKDF2_universal.app/Contents/MacOS/libvorbisfile.3.dylib OpenJKDF2.app/Contents/MacOS/libvorbisfile.3.dylib OpenJKDF2_x86_64.app/Contents/MacOS/libvorbisfile.3.dylib
lipo -create -output OpenJKDF2_universal.app/Contents/MacOS/libFLAC.12.dylib OpenJKDF2.app/Contents/MacOS/libFLAC.12.dylib OpenJKDF2_x86_64.app/Contents/MacOS/libFLAC.12.dylib
lipo -create -output OpenJKDF2_universal.app/Contents/MacOS/libogg.0.dylib OpenJKDF2.app/Contents/MacOS/libogg.0.dylib OpenJKDF2_x86_64.app/Contents/MacOS/libogg.0.dylib
lipo -create -output OpenJKDF2_universal.app/Contents/MacOS/libGameNetworkingSockets.dylib OpenJKDF2.app/Contents/MacOS/libGameNetworkingSockets.dylib OpenJKDF2_x86_64.app/Contents/MacOS/libGameNetworkingSockets.dylib
lipo -create -output OpenJKDF2_universal.app/Contents/MacOS/libprotobuf.3.21.4.0.dylib OpenJKDF2.app/Contents/MacOS/libprotobuf.3.21.4.0.dylib OpenJKDF2_x86_64.app/Contents/MacOS/libprotobuf.3.21.4.0.dylib
lipo -create -output OpenJKDF2_universal.app/Contents/MacOS/libcrypto.1.1.dylib OpenJKDF2.app/Contents/MacOS/libcrypto.1.1.dylib OpenJKDF2_x86_64.app/Contents/MacOS/libcrypto.1.1.dylib
chmod 774 OpenJKDF2_universal.app/Contents/MacOS/openjkdf2-64
chmod 774 OpenJKDF2_universal.app/Contents/MacOS/*.dylib
codesign -s - OpenJKDF2_universal.app --force --deep --verbose
#tar czf macos-debug.tar.gz OpenJKDF2_universal.app