Prechádzať zdrojové kódy

fix(Builder): fix packed app building

evshiron 8 rokov pred
rodič
commit
c8fc86f8ff
2 zmenil súbory, kde vykonal 4 pridanie a 1 odobranie
  1. 1 0
      assets/project/package.json
  2. 3 1
      src/lib/Builder.ts

+ 1 - 0
assets/project/package.json

@@ -12,6 +12,7 @@
   "build": {
     "appId": "io.github.evshiron.nwjs-builder-phoenix.project",
     "nwVersion": "lts",
+    "packed": false,
     "targets": [
       "zip",
       "nsis7z"

+ 3 - 1
src/lib/Builder.ts

@@ -343,7 +343,9 @@ export class Builder {
             case 'win32':
             case 'win':
             case 'linux':
-                const nwFile = await tmpName();
+                const nwFile = await tmpName({
+                    postfix: '.zip',
+                });
                 await compress(this.dir, files, 'zip', nwFile);
                 const executable = await findExecutable(platform, targetDir);
                 await this.combineExecutable(executable, nwFile);