mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-24 04:38:16 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
10d96f2b9b | ||
|
|
a9f370460a | ||
|
|
d7db589432 |
No files matched your search
@@ -1,3 +1,7 @@
|
|||||||
|
# 1.27.3
|
||||||
|
|
||||||
|
* Create and use temp extraction directory in generate_appcast again (#2556) (Zorg)
|
||||||
|
|
||||||
# 1.27.2
|
# 1.27.2
|
||||||
|
|
||||||
* Extract archives in a separate directory from the input archive (#2552) (Zorg)
|
* Extract archives in a separate directory from the input archive (#2552) (Zorg)
|
||||||
|
|||||||
@@ -19,13 +19,13 @@ SPARKLE_NORMALIZE_INSTALLED_APPLICATION_NAME = 0
|
|||||||
// These variables must have a space after the '=' too
|
// These variables must have a space after the '=' too
|
||||||
SPARKLE_VERSION_MAJOR = 1
|
SPARKLE_VERSION_MAJOR = 1
|
||||||
SPARKLE_VERSION_MINOR = 27
|
SPARKLE_VERSION_MINOR = 27
|
||||||
SPARKLE_VERSION_PATCH = 2
|
SPARKLE_VERSION_PATCH = 3
|
||||||
|
|
||||||
// This should be in SemVer format or empty, ie. "-rc.1"
|
// This should be in SemVer format or empty, ie. "-rc.1"
|
||||||
// These variables must have a space after the '=' too
|
// These variables must have a space after the '=' too
|
||||||
SPARKLE_VERSION_SUFFIX =
|
SPARKLE_VERSION_SUFFIX =
|
||||||
// This is now a monotonically increasing ID number, even across prereleases, but let's keep this below 2.0
|
// This is now a monotonically increasing ID number, even across prereleases, but let's keep this below 2.0
|
||||||
CURRENT_PROJECT_VERSION = 1.107
|
CURRENT_PROJECT_VERSION = 1.108
|
||||||
|
|
||||||
MARKETING_VERSION = $(SPARKLE_VERSION_MAJOR).$(SPARKLE_VERSION_MINOR).$(SPARKLE_VERSION_PATCH)$(SPARKLE_VERSION_SUFFIX)
|
MARKETING_VERSION = $(SPARKLE_VERSION_MAJOR).$(SPARKLE_VERSION_MINOR).$(SPARKLE_VERSION_PATCH)$(SPARKLE_VERSION_SUFFIX)
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -2,10 +2,10 @@
|
|||||||
import PackageDescription
|
import PackageDescription
|
||||||
|
|
||||||
// Version is technically not required here, SPM doesn't check
|
// Version is technically not required here, SPM doesn't check
|
||||||
let version = "1.27.2"
|
let version = "1.27.3"
|
||||||
// Tag is required to point towards the right asset. SPM requires the tag to follow semantic versioning to be able to resolve it.
|
// Tag is required to point towards the right asset. SPM requires the tag to follow semantic versioning to be able to resolve it.
|
||||||
let tag = "1.27.2"
|
let tag = "1.27.3"
|
||||||
let checksum = "7be019bef25f3224099a3f396a9fdb30b2d01561576f971d1d004d99b4716ed4"
|
let checksum = "f0c6b4e6ffc6269a67b0d4ff254e3e8acfc6b3852db7b9957d4c0a5b39044446"
|
||||||
let url = "https://github.com/sparkle-project/Sparkle/releases/download/\(tag)/Sparkle-for-Swift-Package-Manager.zip"
|
let url = "https://github.com/sparkle-project/Sparkle/releases/download/\(tag)/Sparkle-for-Swift-Package-Manager.zip"
|
||||||
|
|
||||||
let package = Package(
|
let package = Package(
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
Pod::Spec.new do |s|
|
Pod::Spec.new do |s|
|
||||||
s.name = "Sparkle"
|
s.name = "Sparkle"
|
||||||
s.version = "1.27.2"
|
s.version = "1.27.3"
|
||||||
s.summary = "A software update framework for macOS"
|
s.summary = "A software update framework for macOS"
|
||||||
s.description = "Sparkle is an easy-to-use software update framework for Cocoa developers."
|
s.description = "Sparkle is an easy-to-use software update framework for Cocoa developers."
|
||||||
s.homepage = "https://sparkle-project.org"
|
s.homepage = "https://sparkle-project.org"
|
||||||
|
|||||||
@@ -6,17 +6,28 @@
|
|||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
func unarchive(itemPath: URL, archiveDestDir: URL, callback: @escaping (Error?) -> Void) {
|
func unarchive(itemPath: URL, archiveDestDir: URL, callback: @escaping (Error?) -> Void) {
|
||||||
if let unarchiver = SUUnarchiver.unarchiver(forPath: itemPath.path, extractionDirectory: archiveDestDir.path, updatingHostBundlePath: nil, decryptionPassword: nil) {
|
let fileManager = FileManager.default
|
||||||
|
let tempDir = archiveDestDir.appendingPathExtension("tmp")
|
||||||
|
|
||||||
|
_ = try? fileManager.removeItem(at: tempDir)
|
||||||
|
_ = try? fileManager.createDirectory(at: tempDir, withIntermediateDirectories: true, attributes: [:])
|
||||||
|
|
||||||
|
if let unarchiver = SUUnarchiver.unarchiver(forPath: itemPath.path, extractionDirectory: tempDir.path, updatingHostBundlePath: nil, decryptionPassword: nil) {
|
||||||
unarchiver.unarchive(completionBlock: { (error: Error?) in
|
unarchiver.unarchive(completionBlock: { (error: Error?) in
|
||||||
if error != nil {
|
if error != nil {
|
||||||
callback(error)
|
callback(error)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
callback(nil)
|
do {
|
||||||
|
try fileManager.moveItem(at: tempDir, to: archiveDestDir)
|
||||||
|
callback(nil)
|
||||||
|
} catch {
|
||||||
|
callback(error)
|
||||||
|
}
|
||||||
}, progressBlock: nil)
|
}, progressBlock: nil)
|
||||||
} else {
|
} else {
|
||||||
callback(makeError(code: .unarchivingError, "Not a supported archive format: \(itemPath)"))
|
callback(makeError(code: .unarchivingError, "Not a supported archive format: \(itemPath.path)"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user