Skip to content

Commit

Permalink
Merge pull request #75 from Memphiz/support_greeng0blin
Browse files Browse the repository at this point in the history
Add Support for new deb format
  • Loading branch information
DanTheMan827 committed Feb 24, 2018
2 parents 07f96d8 + 8eca89b commit bc81a2e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion AppSigner/MainView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,13 @@ class MainView: NSView, URLSessionDataDelegate, URLSessionDelegate, URLSessionDo
setStatus("Error unpacking data.tar")
cleanup(tempFolder); return
}
try fileManager.moveItem(atPath: debPath.stringByAppendingPathComponent("Applications"), toPath: payloadDirectory)

var sourcePath = debPath.stringByAppendingPathComponent("Applications")
if fileManager.fileExists(atPath: debPath.stringByAppendingPathComponent("var/mobile/Applications")){
sourcePath = debPath.stringByAppendingPathComponent("var/mobile/Applications")
}

try fileManager.moveItem(atPath: sourcePath, toPath: payloadDirectory)

} catch {
setStatus("Error processing deb file")
Expand Down

0 comments on commit bc81a2e

Please sign in to comment.