-
Notifications
You must be signed in to change notification settings - Fork 306
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8eac911
commit 5c8ab6a
Showing
2 changed files
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |