From 5ffa8cda98b006aacf3a5991e01b2ffd72ed7be8 Mon Sep 17 00:00:00 2001 From: b123400 Date: Mon, 7 Nov 2022 20:21:28 +0900 Subject: [PATCH] Add Sparkle --- Podfile | 10 +++ Podfile.lock | 16 ++++ Sonar.xcodeproj/project.pbxproj | 70 +++++++++++++++++ .../xcshareddata/xcschemes/Sonar.xcscheme | 78 +++++++++++++++++++ Sonar.xcworkspace/contents.xcworkspacedata | 10 +++ .../xcshareddata/IDEWorkspaceChecks.plist | 8 ++ Sonar/Base.lproj/MainMenu.xib | 7 ++ Sonar/Info.plist | 9 ++- Sonar/Sonar.entitlements | 5 ++ 9 files changed, 212 insertions(+), 1 deletion(-) create mode 100644 Podfile create mode 100644 Podfile.lock create mode 100644 Sonar.xcodeproj/xcshareddata/xcschemes/Sonar.xcscheme create mode 100644 Sonar.xcworkspace/contents.xcworkspacedata create mode 100644 Sonar.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/Podfile b/Podfile new file mode 100644 index 0000000..083ecda --- /dev/null +++ b/Podfile @@ -0,0 +1,10 @@ +# Uncomment the next line to define a global platform for your project +# platform :ios, '9.0' + +target 'Sonar' do + # Comment the next line if you don't want to use dynamic frameworks + use_frameworks! + + # Pods for Sonar + pod 'Sparkle' +end diff --git a/Podfile.lock b/Podfile.lock new file mode 100644 index 0000000..779941e --- /dev/null +++ b/Podfile.lock @@ -0,0 +1,16 @@ +PODS: + - Sparkle (2.2.2) + +DEPENDENCIES: + - Sparkle + +SPEC REPOS: + trunk: + - Sparkle + +SPEC CHECKSUMS: + Sparkle: cb8c851f6247a9acbe9e236539404c5be529f74d + +PODFILE CHECKSUM: 7f8e82fee76d8f200dda6724d146e4d589ffc0be + +COCOAPODS: 1.11.3 diff --git a/Sonar.xcodeproj/project.pbxproj b/Sonar.xcodeproj/project.pbxproj index afc174e..afeb453 100644 --- a/Sonar.xcodeproj/project.pbxproj +++ b/Sonar.xcodeproj/project.pbxproj @@ -7,6 +7,7 @@ objects = { /* Begin PBXBuildFile section */ + A4E6E6495F879EB7D26628B3 /* Pods_Sonar.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E9DF2DF70004D9A1BD18C7FA /* Pods_Sonar.framework */; }; CF0778DB27529FFC00DC148D /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CF0778DA27529FFC00DC148D /* AVFoundation.framework */; }; CF16C2B4273EB8BD00FE3454 /* MediaLoading.m in Sources */ = {isa = PBXBuildFile; fileRef = CF16C2B3273EB8BD00FE3454 /* MediaLoading.m */; }; CF19C2B828ACAEC100207AF0 /* NSObject+SPInvocationGrabbing.m in Sources */ = {isa = PBXBuildFile; fileRef = CF19C2B528ACAEC100207AF0 /* NSObject+SPInvocationGrabbing.m */; }; @@ -51,6 +52,8 @@ /* End PBXBuildFile section */ /* Begin PBXFileReference section */ + 2957C22ADEC6D56A66FE2308 /* Pods-Sonar.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Sonar.debug.xcconfig"; path = "Target Support Files/Pods-Sonar/Pods-Sonar.debug.xcconfig"; sourceTree = ""; }; + 4E33D778D18186781FAA4711 /* Pods-Sonar.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Sonar.release.xcconfig"; path = "Target Support Files/Pods-Sonar/Pods-Sonar.release.xcconfig"; sourceTree = ""; }; CF0778DA27529FFC00DC148D /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; }; CF16C2B2273EB8BD00FE3454 /* MediaLoading.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MediaLoading.h; sourceTree = ""; }; CF16C2B3273EB8BD00FE3454 /* MediaLoading.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MediaLoading.m; sourceTree = ""; }; @@ -130,6 +133,7 @@ CFF251A0273D3F5700BA724B /* BRSonicAPIResponse.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = BRSonicAPIResponse.h; sourceTree = ""; }; CFF251A1273D3F5700BA724B /* BRSonicAPIResponse.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BRSonicAPIResponse.m; sourceTree = ""; }; CFF251A3273D46BC00BA724B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = Info.plist; sourceTree = ""; }; + E9DF2DF70004D9A1BD18C7FA /* Pods_Sonar.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Sonar.framework; sourceTree = BUILT_PRODUCTS_DIR; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -139,12 +143,22 @@ files = ( CF0778DB27529FFC00DC148D /* AVFoundation.framework in Frameworks */, CFE6F1A928D77AA4008BE32C /* GameplayKit.framework in Frameworks */, + A4E6E6495F879EB7D26628B3 /* Pods_Sonar.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ + 9B88C1F64A917C440F116A3A /* Pods */ = { + isa = PBXGroup; + children = ( + 2957C22ADEC6D56A66FE2308 /* Pods-Sonar.debug.xcconfig */, + 4E33D778D18186781FAA4711 /* Pods-Sonar.release.xcconfig */, + ); + path = Pods; + sourceTree = ""; + }; CF19C2B028ACAEC100207AF0 /* SPMediaKeyTap */ = { isa = PBXGroup; children = ( @@ -191,6 +205,7 @@ CFD908B32732B1F600FEFD53 /* Sonar */, CFD908B22732B1F600FEFD53 /* Products */, CFF2519D273D3C3400BA724B /* Frameworks */, + 9B88C1F64A917C440F116A3A /* Pods */, ); sourceTree = ""; }; @@ -298,6 +313,7 @@ CFE6F1A828D77AA4008BE32C /* GameplayKit.framework */, CF0778DA27529FFC00DC148D /* AVFoundation.framework */, CFF2519E273D3C3400BA724B /* libcommonCrypto.tbd */, + E9DF2DF70004D9A1BD18C7FA /* Pods_Sonar.framework */, ); name = Frameworks; sourceTree = ""; @@ -309,9 +325,11 @@ isa = PBXNativeTarget; buildConfigurationList = CFD908C12732B1F800FEFD53 /* Build configuration list for PBXNativeTarget "Sonar" */; buildPhases = ( + 188614AD258A99847395F05E /* [CP] Check Pods Manifest.lock */, CFD908AD2732B1F600FEFD53 /* Sources */, CFD908AE2732B1F600FEFD53 /* Frameworks */, CFD908AF2732B1F600FEFD53 /* Resources */, + 914DFA27329F23B8FE3F9C86 /* [CP] Embed Pods Frameworks */, ); buildRules = ( ); @@ -368,6 +386,48 @@ }; /* End PBXResourcesBuildPhase section */ +/* Begin PBXShellScriptBuildPhase section */ + 188614AD258A99847395F05E /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Sonar-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + 914DFA27329F23B8FE3F9C86 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Sonar/Pods-Sonar-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Sonar/Pods-Sonar-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Sonar/Pods-Sonar-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + /* Begin PBXSourcesBuildPhase section */ CFD908AD2732B1F600FEFD53 /* Sources */ = { isa = PBXSourcesBuildPhase; @@ -538,6 +598,7 @@ }; CFD908C22732B1F800FEFD53 /* Debug */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 2957C22ADEC6D56A66FE2308 /* Pods-Sonar.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; @@ -545,8 +606,12 @@ CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = CC63FD9H8S; + ENABLE_HARDENED_RUNTIME = YES; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = Sonar/Info.plist; + INFOPLIST_KEY_CFBundleDisplayName = Sonar; + INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.music"; INFOPLIST_KEY_NSHumanReadableCopyright = ""; INFOPLIST_KEY_NSMainNibFile = MainMenu; INFOPLIST_KEY_NSPrincipalClass = NSApplication; @@ -568,6 +633,7 @@ }; CFD908C32732B1F800FEFD53 /* Release */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 4E33D778D18186781FAA4711 /* Pods-Sonar.release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; @@ -575,8 +641,12 @@ CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = CC63FD9H8S; + ENABLE_HARDENED_RUNTIME = YES; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = Sonar/Info.plist; + INFOPLIST_KEY_CFBundleDisplayName = Sonar; + INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.music"; INFOPLIST_KEY_NSHumanReadableCopyright = ""; INFOPLIST_KEY_NSMainNibFile = MainMenu; INFOPLIST_KEY_NSPrincipalClass = NSApplication; diff --git a/Sonar.xcodeproj/xcshareddata/xcschemes/Sonar.xcscheme b/Sonar.xcodeproj/xcshareddata/xcschemes/Sonar.xcscheme new file mode 100644 index 0000000..d77748d --- /dev/null +++ b/Sonar.xcodeproj/xcshareddata/xcschemes/Sonar.xcscheme @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Sonar.xcworkspace/contents.xcworkspacedata b/Sonar.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..78a7968 --- /dev/null +++ b/Sonar.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/Sonar.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Sonar.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/Sonar.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/Sonar/Base.lproj/MainMenu.xib b/Sonar/Base.lproj/MainMenu.xib index 5c7ea8e..46b02f4 100644 --- a/Sonar/Base.lproj/MainMenu.xib +++ b/Sonar/Base.lproj/MainMenu.xib @@ -26,6 +26,12 @@ + + + + + + @@ -445,5 +451,6 @@ + diff --git a/Sonar/Info.plist b/Sonar/Info.plist index 0c67376..f91f496 100644 --- a/Sonar/Info.plist +++ b/Sonar/Info.plist @@ -1,5 +1,12 @@ - + + SUEnableInstallerLauncherService + + SUFeedURL + https://b123400.net/sonar/updates/appcast.xml + SUPublicEDKey + F3z1HO3sz2dx8KayQtPxbDLz+qyPERuz44ahRsyoy90= + diff --git a/Sonar/Sonar.entitlements b/Sonar/Sonar.entitlements index 625af03..2e4862e 100644 --- a/Sonar/Sonar.entitlements +++ b/Sonar/Sonar.entitlements @@ -8,5 +8,10 @@ com.apple.security.network.client + com.apple.security.temporary-exception.mach-lookup.global-name + + $(PRODUCT_BUNDLE_IDENTIFIER)-spks + $(PRODUCT_BUNDLE_IDENTIFIER)-spki + -- 2.38.5