Initial commit
This commit is contained in:
commit
7878e653a0
253 changed files with 24552 additions and 0 deletions
15
scripts/electron.js
Normal file
15
scripts/electron.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
const fs = require('fs');
|
||||
const execSync = require('child_process').execSync;
|
||||
|
||||
const workingDir = process.cwd();
|
||||
const buildDir = `${ workingDir }/build`;
|
||||
|
||||
const removeFiles = ['service-worker.js', 'robots.txt', 'manifest.json'];
|
||||
|
||||
removeFiles.forEach(
|
||||
file => fs.unlinkSync(`${ buildDir }/${ file }`)
|
||||
);
|
||||
|
||||
execSync('cp -r public-electron/. build');
|
||||
execSync('cd build && yarn');
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue