-
Notifications
You must be signed in to change notification settings - Fork 1
/
bundle_macos.sh
27 lines (23 loc) · 898 Bytes
/
bundle_macos.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
echo "Building uwu-tray MacOS .app package"
if [ -d "assets/macos/uwu-tray.app/Contents/MacOS" ];
then
echo "[assets/macos/uwu-tray.app/Contents/MacOS] already exists"
else
mkdir -p assets/macos/uwu-tray.app/Contents/MacOS
fi
if [ -d "assets/macos/uwu-tray.app/Contents/Resources" ];
then
echo "[assets/macos/uwu-tray.app/Contents/Resources] already exists"
else
mkdir -p assets/macos/uwu-tray.app/Contents/Resources
fi
cp target/release/uwu-tray assets/macos/uwu-tray.app/Contents/MacOS/uwu-tray
cp res/uwu.icns assets/macos/uwu-tray.app/Contents/Resources/AppIcon.icns
cp res/Info.plist assets/macos/uwu-tray.app/Contents/Info.plist
if type hdiutil >/dev/null 2>&1;
then
hdiutil create assets/uwu-tray.dmg -volname uwu-tray -srcfolder assets/macos -ov
echo "MacOS .app package is built"
else
echo "Require [hdiutil] to build MacOS .app package. Aborting"
fi