feat(updates): 使用 Sparkle 从发布 ZIP 下载并重启更新

This commit is contained in:
2026-11-16 16:17:31 +08:00
parent 451d31682d
commit ec37b8e3f9
23 changed files with 716 additions and 219 deletions
+33 -4
View File
@@ -19,6 +19,8 @@
CC1000000000000000000003 /* ProcessMetrics.swift in Sources */ = {isa = PBXBuildFile; fileRef = CC1000000000000000000004 /* ProcessMetrics.swift */; };
CC1000000000000000000005 /* ProcessEnergy.swift in Sources */ = {isa = PBXBuildFile; fileRef = CC1000000000000000000006 /* ProcessEnergy.swift */; };
CC1000000000000000000007 /* ProcessEnergyReader.swift in Sources */ = {isa = PBXBuildFile; fileRef = CC1000000000000000000008 /* ProcessEnergyReader.swift */; };
1A5000000000000000000001 /* Sparkle in Frameworks */ = {isa = PBXBuildFile; productRef = 1A5000000000000000000002 /* Sparkle */; };
1A5000000000000000000004 /* Sparkle.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 1A5000000000000000000006 /* Sparkle.framework */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
@@ -41,6 +43,13 @@
);
name = "Embed XPC Services";
};
1A5000000000000000000005 /* Embed Frameworks */ = {
isa = PBXCopyFilesBuildPhase;
dstPath = "";
dstSubfolderSpec = 10;
files = (1A5000000000000000000004 /* Sparkle.framework in Embed Frameworks */,);
name = "Embed Frameworks";
};
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
@@ -58,6 +67,7 @@
CC1000000000000000000006 /* ProcessEnergy.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = ProcessEnergy.swift; path = kymo/Core/Models/ProcessEnergy.swift; sourceTree = SOURCE_ROOT; };
CC1000000000000000000008 /* ProcessEnergyReader.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = ProcessEnergyReader.swift; path = SMARTService/ProcessEnergyReader.swift; sourceTree = SOURCE_ROOT; };
D9E51E73309338B0000608DE /* kymo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = kymo.app; sourceTree = BUILT_PRODUCTS_DIR; };
1A5000000000000000000006 /* Sparkle.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = Sparkle.framework; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */
/* Begin PBXFileSystemSynchronizedRootGroup section */
@@ -77,6 +87,7 @@
D9E51E70309338B0000608DE /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
files = (
1A5000000000000000000001 /* Sparkle in Frameworks */,
);
};
/* End PBXFrameworksBuildPhase section */
@@ -144,6 +155,7 @@
D9E51E70309338B0000608DE /* Frameworks */,
D9E51E71309338B0000608DE /* Resources */,
BB0000000000000000000004 /* Embed XPC Services */,
1A5000000000000000000005 /* Embed Frameworks */,
);
buildRules = (
);
@@ -154,6 +166,7 @@
D9E51E75309338B0000608DE /* kymo */,
);
name = kymo;
packageProductDependencies = (1A5000000000000000000002 /* Sparkle */,);
productName = kymo;
productReference = D9E51E73309338B0000608DE /* kymo.app */;
productType = "com.apple.product-type.application";
@@ -182,6 +195,7 @@
"zh-Hant",
Base,
);
packageReferences = (1A5000000000000000000003 /* Sparkle */,);
mainGroup = D9E51E6A309338B0000608DE;
minimizedProjectReferenceProxies = 1;
preferredProjectObjectVersion = 77;
@@ -235,6 +249,14 @@
};
/* End PBXTargetDependency section */
/* Begin XCRemoteSwiftPackageReference section */
1A5000000000000000000003 /* Sparkle */ = {isa = XCRemoteSwiftPackageReference; repositoryURL = "https://github.com/sparkle-project/Sparkle"; requirement = {kind = exactVersion; version = 2.10.1; }; };
/* End XCRemoteSwiftPackageReference section */
/* Begin XCSwiftPackageProductDependency section */
1A5000000000000000000002 /* Sparkle */ = {isa = XCSwiftPackageProductDependency; package = 1A5000000000000000000003 /* Sparkle */; productName = Sparkle; };
/* End XCSwiftPackageProductDependency section */
/* Begin XCBuildConfiguration section */
BB0000000000000000000028 /* Debug configuration for PBXNativeTarget "SMARTService" */ = {
isa = XCBuildConfiguration;
@@ -303,7 +325,7 @@
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 16;
CURRENT_PROJECT_VERSION = 17;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
@@ -325,7 +347,7 @@
GCC_WARN_UNUSED_VARIABLE = YES;
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
MACOSX_DEPLOYMENT_TARGET = 27.0;
MARKETING_VERSION = 1.4;
MARKETING_VERSION = 1.5;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
@@ -371,7 +393,7 @@
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 16;
CURRENT_PROJECT_VERSION = 17;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEPLOYMENT_POSTPROCESSING = YES;
@@ -388,7 +410,7 @@
GCC_WARN_UNUSED_VARIABLE = YES;
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
MACOSX_DEPLOYMENT_TARGET = 27.0;
MARKETING_VERSION = 1.4;
MARKETING_VERSION = 1.5;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = macosx;
@@ -407,6 +429,9 @@
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
DEAD_CODE_STRIPPING = YES;
CODE_SIGN_ENTITLEMENTS = Config/Kymo.entitlements;
INFOPLIST_FILE = Config/Kymo-Info.plist;
PACKAGE_SKIP_AUTO_EMBEDDING_DYNAMIC_BINARY_FRAMEWORKS = YES;
ENABLE_APP_SANDBOX = YES;
ENABLE_OUTGOING_NETWORK_CONNECTIONS = YES;
ENABLE_PREVIEWS = YES;
@@ -438,6 +463,10 @@
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
DEAD_CODE_STRIPPING = YES;
CODE_SIGN_ENTITLEMENTS = Config/Kymo-adhoc.entitlements;
LIBRARY_LOAD_CONSTRAINT = "Config/Sparkle-library-constraint.plist";
INFOPLIST_FILE = Config/Kymo-Info.plist;
PACKAGE_SKIP_AUTO_EMBEDDING_DYNAMIC_BINARY_FRAMEWORKS = YES;
ENABLE_APP_SANDBOX = YES;
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_OUTGOING_NETWORK_CONNECTIONS = YES;
@@ -0,0 +1,15 @@
{
"originHash" : "e721da7f9826abdffcb6185e886155efa2514bd6234475f1afa893e29eb258d6",
"pins" : [
{
"identity" : "sparkle",
"kind" : "remoteSourceControl",
"location" : "https://github.com/sparkle-project/Sparkle",
"state" : {
"revision" : "ab7d71291238df6e0492143b120c9b696a35f603",
"version" : "2.10.1"
}
}
],
"version" : 3
}