Skip to content

Commit

Permalink
fix: issue ios copy
Browse files Browse the repository at this point in the history
  • Loading branch information
riderx committed Mar 14, 2022
1 parent 4174394 commit 450c840
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ios/Plugin/CapacitorUpdater.swift
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ extension Bundle {
private func saveDownloaded(sourceZip: URL, version: String, base: URL) {
prepareFolder(source: base)
let destHot = base.appendingPathComponent(version)
SSZipArchive.unzipFile(atPath: sourceZip.path, toDestination: destHot.path)
let destUnZip = documentsUrl.appendingPathComponent(randomString(length: 10))
SSZipArchive.unzipFile(atPath: sourceZip.path, toDestination: destUnZip.path)
moveFolder(source: destUnZip, dest: destHot)
deleteFolder(source: destUnZip)
}

@objc public func getLatest(url: URL) -> AppVersion? {
Expand Down

0 comments on commit 450c840

Please sign in to comment.