Prechádzať zdrojové kódy

fix(Builder): fix missing package.json for packed mac app

evshiron 8 rokov pred
rodič
commit
a76e6e2f79
1 zmenil súbory, kde vykonal 4 pridanie a 0 odobranie
  1. 4 0
      src/lib/Builder.ts

+ 4 - 0
src/lib/Builder.ts

@@ -384,9 +384,13 @@ export class Builder {
             case 'darwin':
             case 'osx':
             case 'mac':
+
                 for(const file of files) {
                     await copyFileAsync(resolve(this.dir, file), resolve(appRoot, file));
                 }
+
+                await this.writeStrippedManifest(resolve(appRoot, 'package.json'), pkg, config);
+
                 break;
             default:
                 throw new Error('ERROR_UNKNOWN_PLATFORM');