-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall-macos.sh
More file actions
executable file
·112 lines (101 loc) · 3.14 KB
/
install-macos.sh
File metadata and controls
executable file
·112 lines (101 loc) · 3.14 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
#!/bin/bash
set -e
echo "🎵 Installing Waves Music Player for macOS..."
if [ ! -f "target/release/waves" ]; then
echo "❌ Release binary not found. Building now..."
cargo build --release
fi
APP_NAME="Waves.app"
APP_PATH="/Applications/$APP_NAME"
BUNDLE_PATH="macos-bundle"
echo "📦 Creating application bundle..."
if [ -d "$APP_PATH" ]; then
echo "🗑️ Removing existing Waves.app..."
rm -rf "$APP_PATH"
fi
mkdir -p "$APP_PATH/Contents/MacOS"
mkdir -p "$APP_PATH/Contents/Resources"
echo "📋 Copying binary..."
cp target/release/waves "$APP_PATH/Contents/MacOS/waves"
chmod +x "$APP_PATH/Contents/MacOS/waves"
if [ -f "$BUNDLE_PATH/Info.plist" ]; then
echo "📋 Copying Info.plist..."
cp "$BUNDLE_PATH/Info.plist" "$APP_PATH/Contents/Info.plist"
else
echo "📝 Creating Info.plist..."
cat > "$APP_PATH/Contents/Info.plist" <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key>
<string>waves</string>
<key>CFBundleIconFile</key>
<string>AppIcon</string>
<key>CFBundleIdentifier</key>
<string>com.waves.player</string>
<key>CFBundleName</key>
<string>Waves</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.5.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>mp3</string>
<string>wav</string>
<string>flac</string>
<string>ogg</string>
<string>m4a</string>
</array>
<key>CFBundleTypeName</key>
<string>Audio File</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSHandlerRank</key>
<string>Default</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>*</string>
</array>
<key>CFBundleTypeName</key>
<string>Folder</string>
<key>CFBundleTypeOSTypes</key>
<array>
<string>fold</string>
</array>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSHandlerRank</key>
<string>Default</string>
</dict>
</array>
<key>LSMinimumSystemVersion</key>
<string>10.13</string>
<key>NSHighResolutionCapable</key>
<true/>
</dict>
</plist>
EOF
fi
if [ -f "$BUNDLE_PATH/AppIcon.icns" ]; then
echo "🎨 Copying icon..."
cp "$BUNDLE_PATH/AppIcon.icns" "$APP_PATH/Contents/Resources/AppIcon.icns"
fi
echo "✅ Waves has been installed to /Applications/Waves.app"
echo ""
echo "🎉 Installation complete!"
echo ""
echo "You can now:"
echo " • Launch Waves from your Applications folder"
echo " • Open audio files directly with Waves from Finder"
echo " • Find Waves in Spotlight search"
echo ""
echo "Enjoy your music! 🎶"