17 lines
431 B
JavaScript
17 lines
431 B
JavaScript
![]() |
const fs = require('fs');
|
||
|
const execSync = require('child_process').execSync;
|
||
|
|
||
|
const workingDir = process.cwd();
|
||
|
const buildDir = `${ workingDir }/build`;
|
||
|
|
||
|
const removeFiles = ['robots.txt', 'manifest.json'];
|
||
|
|
||
|
removeFiles.forEach(
|
||
|
file => fs.unlinkSync(`${ buildDir }/${ file }`)
|
||
|
);
|
||
|
|
||
|
execSync('cp -r public-chrome/. build');
|
||
|
|
||
|
execSync('rm chrome-build.zip || true');
|
||
|
|
||
|
execSync('zip -vr chrome-build.zip build/* -x "*.DS_Store"');
|