Skip to content

Commit

Permalink
resource.json should be available for all regional adblock lists
Browse files Browse the repository at this point in the history
  • Loading branch information
jumde committed Jun 29, 2020
1 parent 06651da commit c88839d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/packageComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,19 @@ const stageFiles = (componentType, datFile, version, outputDir) => {
// ad-block components are in the correct folder
// we don't need to stage the crx files
if(componentType == 'ad-block-updater') {
const resourceFileName = 'resources.json'
const resourceJsonPath = path.join('build', componentType, 'default', resourceFileName)
const outputManifest = path.join(outputDir, 'manifest.json')
const outputResourceJSON = path.join(outputDir, resourceFileName)
const replaceOptions = {
files: outputManifest,
from: /0\.0\.0/,
to: version
}
replace.sync(replaceOptions)
if (resourceJsonPath != outputResourceJSON) {
fs.copyFileSync(resourceJsonPath, outputResourceJSON)
}
return;
}

Expand Down

0 comments on commit c88839d

Please sign in to comment.