We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e08118a commit 9e79733Copy full SHA for 9e79733
1 file changed
index.ts
@@ -855,16 +855,18 @@ class Applesign {
855
}
856
const ipaOut = getOutputPath(this.config.tempdir, this.config.outfile!);
857
try {
858
- fs.unlinkSync(ipaOut); // await for it
859
- } catch (e) {
860
- /* do nothing */
+ await fs.unlink(ipaOut);
+ } catch (err: any) {
+ if (err?.code !== "ENOENT") {
861
+ throw err;
862
+ }
863
864
this.events.emit("message", "Zipifying into " + ipaOut + " ...");
865
const rootFolder = this.config.payloadOnly ? "Payload" : ".";
866
await tools.zip(this.config.tempdir, ipaOut, rootFolder);
867
if (this.config.replaceipa) {
868
this.events.emit("message", "mv into " + ipaIn);
- fs.rename(ipaOut, ipaIn);
869
+ await fs.rename(ipaOut, ipaIn);
870
871
872
0 commit comments