Skip to content

Commit bc81a2e

Browse files
authored
Merge pull request #75 from Memphiz/support_greeng0blin
Add Support for new deb format
2 parents 07f96d8 + 8eca89b commit bc81a2e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

AppSigner/MainView.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,13 @@ class MainView: NSView, URLSessionDataDelegate, URLSessionDelegate, URLSessionDo
691691
setStatus("Error unpacking data.tar")
692692
cleanup(tempFolder); return
693693
}
694-
try fileManager.moveItem(atPath: debPath.stringByAppendingPathComponent("Applications"), toPath: payloadDirectory)
694+
695+
var sourcePath = debPath.stringByAppendingPathComponent("Applications")
696+
if fileManager.fileExists(atPath: debPath.stringByAppendingPathComponent("var/mobile/Applications")){
697+
sourcePath = debPath.stringByAppendingPathComponent("var/mobile/Applications")
698+
}
699+
700+
try fileManager.moveItem(atPath: sourcePath, toPath: payloadDirectory)
695701

696702
} catch {
697703
setStatus("Error processing deb file")

0 commit comments

Comments
 (0)