Skip to content

Run a virtual iPhone on an Apple Silicon Mac.

Swift

feat: add dock app icon (#182)

X Sanchez674a7f108e4d
diff --git a/Makefile b/Makefile
index 945f3452..b394575f 100644
--- a/Makefile
+++ b/Makefile
@@ -139,6 +139,7 @@ bundle: build $(INFO_PLIST)
@mkdir -p $(BUNDLE)/Contents/MacOS $(BUNDLE)/Contents/Resources
@cp -f $(BINARY) $(BUNDLE_BIN)
@cp -f $(INFO_PLIST) $(BUNDLE)/Contents/Info.plist
+ @cp -f sources/AppIcon.icns $(BUNDLE)/Contents/Resources/AppIcon.icns
@cp -f $(SCRIPTS)/vphoned/signcert.p12 $(BUNDLE)/Contents/Resources/signcert.p12
@cp -f $$(command -v ldid) $(BUNDLE)/Contents/MacOS/ldid
@cp -f $$(command -v ideviceinstaller) $(BUNDLE)/Contents/MacOS/ideviceinstaller
diff --git a/sources/AppIcon.icns b/sources/AppIcon.icns
new file mode 100644
index 00000000..4731637b
Binary files /dev/null and b/sources/AppIcon.icns differ
diff --git a/sources/Info.plist b/sources/Info.plist
index bcf3428e..a2c04586 100644
--- a/sources/Info.plist
+++ b/sources/Info.plist
@@ -16,6 +16,8 @@
<string>1.0</string>
<key>LSUIElement</key>
<true/>
+ <key>CFBundleIconFile</key>
+ <string>AppIcon</string>
<key>NSLocationUsageDescription</key>
<string>vphone-cli forwards your location to the guest VM for location simulation.</string>
<key>NSLocationWhenInUseUsageDescription</key>