diff --git a/PHP Monitor.xcodeproj/project.pbxproj b/PHP Monitor.xcodeproj/project.pbxproj index 15e7cc6..2c426b9 100644 --- a/PHP Monitor.xcodeproj/project.pbxproj +++ b/PHP Monitor.xcodeproj/project.pbxproj @@ -192,6 +192,7 @@ C469E706294CFDF700A82AB2 /* DomainsListTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = C469E702294CFDF700A82AB2 /* DomainsListTest.swift */; }; C46B2648298B324100084651 /* ReleaseManifest.swift in Sources */ = {isa = PBXBuildFile; fileRef = C46B2647298B324100084651 /* ReleaseManifest.swift */; }; C46B2649298B324100084651 /* ReleaseManifest.swift in Sources */ = {isa = PBXBuildFile; fileRef = C46B2647298B324100084651 /* ReleaseManifest.swift */; }; + C46B2650298B3C2100084651 /* PHP Monitor Self-Updater.app in Resources */ = {isa = PBXBuildFile; fileRef = C46B264F298B3C2100084651 /* PHP Monitor Self-Updater.app */; }; C46E206D28299B3800D909D6 /* AppUpdateChecker.swift in Sources */ = {isa = PBXBuildFile; fileRef = C46E206C28299B3800D909D6 /* AppUpdateChecker.swift */; }; C46E206E28299B3800D909D6 /* AppUpdateChecker.swift in Sources */ = {isa = PBXBuildFile; fileRef = C46E206C28299B3800D909D6 /* AppUpdateChecker.swift */; }; C46E20702829D27F00D909D6 /* AppUpdaterCheckTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = C46E206F2829D27F00D909D6 /* AppUpdaterCheckTest.swift */; }; @@ -850,6 +851,7 @@ C469E6FD294CF7B200A82AB2 /* FakeValetProxy.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FakeValetProxy.swift; sourceTree = ""; }; C469E702294CFDF700A82AB2 /* DomainsListTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DomainsListTest.swift; sourceTree = ""; }; C46B2647298B324100084651 /* ReleaseManifest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReleaseManifest.swift; sourceTree = ""; }; + C46B264F298B3C2100084651 /* PHP Monitor Self-Updater.app */ = {isa = PBXFileReference; lastKnownFileType = wrapper.application; path = "PHP Monitor Self-Updater.app"; sourceTree = ""; }; C46E206C28299B3800D909D6 /* AppUpdateChecker.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppUpdateChecker.swift; sourceTree = ""; }; C46E206F2829D27F00D909D6 /* AppUpdaterCheckTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppUpdaterCheckTest.swift; sourceTree = ""; }; C46EBC4328DB95F0007ACC74 /* ShellProtocol.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShellProtocol.swift; sourceTree = ""; }; @@ -1108,6 +1110,7 @@ C406A5F2298AD2CE00B5B85A /* main.swift */, C406A5F6298AD2CF00B5B85A /* Assets.xcassets */, C406A5FB298AD2CF00B5B85A /* phpmon-updater.entitlements */, + C46B264F298B3C2100084651 /* PHP Monitor Self-Updater.app */, ); path = "phpmon-updater"; sourceTree = ""; @@ -1971,6 +1974,7 @@ C41C1B3B22B0098000E7CF16 /* Assets.xcassets in Resources */, C41C1B3E22B0098000E7CF16 /* Main.storyboard in Resources */, C405A4D124B9B9140062FAFA /* InternetAccessPolicy.plist in Resources */, + C46B2650298B3C2100084651 /* PHP Monitor Self-Updater.app in Resources */, C44C1991276E44CB0072762D /* ProgressWindow.storyboard in Resources */, C4232EE52612526500158FC6 /* Credits.html in Resources */, 54FCFD26276C883F004CE748 /* SelectPreferenceView.xib in Resources */, diff --git a/phpmon-updater/PHP Monitor Self-Updater.app/Contents/CodeResources b/phpmon-updater/PHP Monitor Self-Updater.app/Contents/CodeResources new file mode 100644 index 0000000..9727e93 Binary files /dev/null and b/phpmon-updater/PHP Monitor Self-Updater.app/Contents/CodeResources differ diff --git a/phpmon-updater/PHP Monitor Self-Updater.app/Contents/Info.plist b/phpmon-updater/PHP Monitor Self-Updater.app/Contents/Info.plist new file mode 100644 index 0000000..7a132a4 --- /dev/null +++ b/phpmon-updater/PHP Monitor Self-Updater.app/Contents/Info.plist @@ -0,0 +1,58 @@ + + + + + BuildMachineOSBuild + 22D49 + CFBundleDevelopmentRegion + en + CFBundleDisplayName + PHP Monitor Self-Updater + CFBundleExecutable + PHP Monitor Self-Updater + CFBundleIconFile + AppIcon + CFBundleIconName + AppIcon + CFBundleIdentifier + com.nicoverbruggen.phpmon-updater + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + PHP Monitor Self-Updater + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSupportedPlatforms + + MacOSX + + CFBundleVersion + 10 + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 14C18 + DTPlatformName + macosx + DTPlatformVersion + 13.1 + DTSDKBuild + 22C55 + DTSDKName + macosx13.1 + DTXcode + 1420 + DTXcodeBuild + 14C18 + LSApplicationCategoryType + public.app-category.developer-tools + LSMinimumSystemVersion + 11.0 + NSHumanReadableCopyright + Copyright © 2023 Nico Verbruggen. All rights reserved. + NSPrincipalClass + NSApplication + + diff --git a/phpmon-updater/PHP Monitor Self-Updater.app/Contents/MacOS/PHP Monitor Self-Updater b/phpmon-updater/PHP Monitor Self-Updater.app/Contents/MacOS/PHP Monitor Self-Updater new file mode 100755 index 0000000..095568d Binary files /dev/null and b/phpmon-updater/PHP Monitor Self-Updater.app/Contents/MacOS/PHP Monitor Self-Updater differ diff --git a/phpmon-updater/PHP Monitor Self-Updater.app/Contents/PkgInfo b/phpmon-updater/PHP Monitor Self-Updater.app/Contents/PkgInfo new file mode 100644 index 0000000..bd04210 --- /dev/null +++ b/phpmon-updater/PHP Monitor Self-Updater.app/Contents/PkgInfo @@ -0,0 +1 @@ +APPL???? \ No newline at end of file diff --git a/phpmon-updater/PHP Monitor Self-Updater.app/Contents/Resources/AppIcon.icns b/phpmon-updater/PHP Monitor Self-Updater.app/Contents/Resources/AppIcon.icns new file mode 100644 index 0000000..9ba49fc Binary files /dev/null and b/phpmon-updater/PHP Monitor Self-Updater.app/Contents/Resources/AppIcon.icns differ diff --git a/phpmon-updater/PHP Monitor Self-Updater.app/Contents/Resources/Assets.car b/phpmon-updater/PHP Monitor Self-Updater.app/Contents/Resources/Assets.car new file mode 100644 index 0000000..b2ba8dd Binary files /dev/null and b/phpmon-updater/PHP Monitor Self-Updater.app/Contents/Resources/Assets.car differ diff --git a/phpmon-updater/PHP Monitor Self-Updater.app/Contents/_CodeSignature/CodeResources b/phpmon-updater/PHP Monitor Self-Updater.app/Contents/_CodeSignature/CodeResources new file mode 100644 index 0000000..e2f3383 --- /dev/null +++ b/phpmon-updater/PHP Monitor Self-Updater.app/Contents/_CodeSignature/CodeResources @@ -0,0 +1,139 @@ + + + + + files + + Resources/AppIcon.icns + + VSWqKULiztWm5Fyz1TCdIXiaCYA= + + Resources/Assets.car + + caD2DnkshwxF8ZF+a32TEMM92WM= + + + files2 + + Resources/AppIcon.icns + + hash2 + + n12aznY7p1uQCn1BLtTKlXdwvn0PGi1gV/8Tma6fPNA= + + + Resources/Assets.car + + hash2 + + 57U75dK4YztzTep0qmB9Oeb0N7OhhGTEau78EmC2SzY= + + + + rules + + ^Resources/ + + ^Resources/.*\.lproj/ + + optional + + weight + 1000 + + ^Resources/.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Resources/Base\.lproj/ + + weight + 1010 + + ^version.plist$ + + + rules2 + + .*\.dSYM($|/) + + weight + 11 + + ^(.*/)?\.DS_Store$ + + omit + + weight + 2000 + + ^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/ + + nested + + weight + 10 + + ^.* + + ^Info\.plist$ + + omit + + weight + 20 + + ^PkgInfo$ + + omit + + weight + 20 + + ^Resources/ + + weight + 20 + + ^Resources/.*\.lproj/ + + optional + + weight + 1000 + + ^Resources/.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Resources/Base\.lproj/ + + weight + 1010 + + ^[^/]+$ + + nested + + weight + 10 + + ^embedded\.provisionprofile$ + + weight + 20 + + ^version\.plist$ + + weight + 20 + + + + diff --git a/phpmon/Domain/App/AppDelegate.swift b/phpmon/Domain/App/AppDelegate.swift index b8a93af..fc72c1f 100644 --- a/phpmon/Domain/App/AppDelegate.swift +++ b/phpmon/Domain/App/AppDelegate.swift @@ -69,14 +69,6 @@ class AppDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCenterDele } #endif - // swiftlint:disable line_length - let url = NSURL(fileURLWithPath: "/Users/nicoverbruggen/Library/Developer/Xcode/DerivedData/PHP_Monitor-fqtxcemylaleoneoclkzipwmyxxw/Build/Products/Debug/PHP Monitor Self-Updater", isDirectory: true) as URL - let configuration = NSWorkspace.OpenConfiguration() - NSWorkspace.shared.openApplication(at: url, - configuration: configuration) - - // exit(1) - if CommandLine.arguments.contains("--v") { logger.verbosity = .performance Log.info("Extra verbose mode has been activated.")