Skip to content

Commit

Permalink
fix: manifest changed wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Works committed Sep 23, 2019
1 parent 8eac911 commit 5c8ab6a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions scripts/modify-manifest.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
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]

const modifiers = require('../config-overrides/manifest.overrides')
modifiers[platform](manifest)

fs.writeFileSync(dir, JSON.stringify(manifest))
fs.writeFileSync(targetDir, JSON.stringify(manifest))

0 comments on commit 5c8ab6a

Please sign in to comment.