浏览代码

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

evshiron 8 年之前
父节点
当前提交
a76e6e2f79
共有 1 个文件被更改,包括 4 次插入0 次删除
  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');