Commit f8c10ca7 authored by Adrien's avatar Adrien

try to delete the application using rm -r command

parent a4883713
......@@ -43,7 +43,11 @@ class MacCodeSign {
throw SignException()
}
return zip(file);
var newZipFile = zip(file);
deleteApplication(file)
return newZipFile
}
fun buildAndSignMacInstaller(zipFile: File) : File {
......@@ -89,9 +93,7 @@ class MacCodeSign {
throw SignException()
}
if (!file.deleteRecursively()) {
logger.error("Failed to delete temp application $file")
}
deleteApplication(file)
return dmg
}
......@@ -125,4 +127,12 @@ class MacCodeSign {
return zipFile
}
fun deleteApplication(application : File) {
ProcessBuilder()
.inheritIO()
.command("rm", "-r", application.canonicalPath)
.start()
.waitFor()
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment