diff --git a/.circleci/config.yml b/.circleci/config.yml index 128c57411bf6..809245b7b9a5 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -25,6 +25,7 @@ jobs: # Build base version cd build zip -r ../Maskbook.zip ./* + cp manifest.json manifest.base.json cd .. # Build WKWebview version node ./scripts/modify-manifest.js WKWebview diff --git a/scripts/modify-manifest.js b/scripts/modify-manifest.js index 111dc469cc8a..e769a49313d3 100644 --- a/scripts/modify-manifest.js +++ b/scripts/modify-manifest.js @@ -1,6 +1,7 @@ const path = require('path') const fs = require('fs') -const dir = path.join(__dirname, '../build/manifest.json') +const dir = path.join(__dirname, '../build/manifest.base.json') +const targetDir = path.join(__dirname, '../build/manifest.json') const manifest = require(dir) const platform = process.argv[2] @@ -8,4 +9,4 @@ const platform = process.argv[2] const modifiers = require('../config-overrides/manifest.overrides') modifiers[platform](manifest) -fs.writeFileSync(dir, JSON.stringify(manifest)) +fs.writeFileSync(targetDir, JSON.stringify(manifest))