Skip to content

Commit 6537adb

Browse files
committed
Add AppIcon
1 parent 75faf74 commit 6537adb

File tree

6 files changed

+13
-3
lines changed

6 files changed

+13
-3
lines changed

XcodeOpener/XcodeOpener.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@
380380
buildSettings = {
381381
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
382382
CODE_SIGN_ENTITLEMENTS = XcodeOpenerLauncher/XcodeOpenerLauncher.entitlements;
383+
CODE_SIGN_IDENTITY = "-";
383384
CODE_SIGN_STYLE = Automatic;
384385
COMBINE_HIDPI_IMAGES = YES;
385386
DEVELOPMENT_TEAM = NM8T9PQ2C4;
@@ -399,6 +400,7 @@
399400
buildSettings = {
400401
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
401402
CODE_SIGN_ENTITLEMENTS = XcodeOpenerLauncher/XcodeOpenerLauncher.entitlements;
403+
CODE_SIGN_IDENTITY = "-";
402404
CODE_SIGN_STYLE = Automatic;
403405
COMBINE_HIDPI_IMAGES = YES;
404406
DEVELOPMENT_TEAM = NM8T9PQ2C4;
@@ -534,6 +536,7 @@
534536
isa = XCBuildConfiguration;
535537
buildSettings = {
536538
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
539+
CODE_SIGN_IDENTITY = "-";
537540
CODE_SIGN_STYLE = Automatic;
538541
COMBINE_HIDPI_IMAGES = YES;
539542
DEVELOPMENT_TEAM = NM8T9PQ2C4;
@@ -552,6 +555,7 @@
552555
isa = XCBuildConfiguration;
553556
buildSettings = {
554557
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
558+
CODE_SIGN_IDENTITY = "-";
555559
CODE_SIGN_STYLE = Automatic;
556560
COMBINE_HIDPI_IMAGES = YES;
557561
DEVELOPMENT_TEAM = NM8T9PQ2C4;

XcodeOpener/XcodeOpener/AppDelegate.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ class AppDelegate: NSObject, NSApplicationDelegate {
4545
ApplicationOpener.shared.open($0)
4646
}
4747
}
48+
49+
func applicationShouldHandleReopen(_ sender: NSApplication, hasVisibleWindows flag: Bool) -> Bool {
50+
MainWindowController.shared.window?.makeKeyAndOrderFront(nil)
51+
return true
52+
}
4853
}
4954

5055
extension AppDelegate {

XcodeOpener/XcodeOpener/Assets.xcassets/AppIcon.appiconset/Contents.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@
4646
"scale" : "1x"
4747
},
4848
{
49-
"idiom" : "mac",
5049
"size" : "512x512",
50+
"idiom" : "mac",
51+
"filename" : "opener.png",
5152
"scale" : "2x"
5253
}
5354
],
Loading

XcodeOpener/XcodeOpener/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
<key>CFBundlePackageType</key>
1818
<string>APPL</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>1.0</string>
20+
<string>0.1</string>
2121
<key>CFBundleVersion</key>
22-
<string>1</string>
22+
<string>10</string>
2323
<key>LSMinimumSystemVersion</key>
2424
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
2525
<key>NSHumanReadableCopyright</key>

0 commit comments

Comments
 (0)