mirror of
https://github.com/scratchfoundation/scratch-desktop.git
synced 2025-06-11 20:41:00 -04:00
make build-gui script work on all platforms
This commit is contained in:
parent
48964e616e
commit
d79811d842
2 changed files with 16 additions and 1 deletions
scripts
15
scripts/build-gui.js
Normal file
15
scripts/build-gui.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
const childProcess = require('child_process');
|
||||
const path = require('path');
|
||||
|
||||
childProcess.spawnSync(
|
||||
'npm', ['run', 'build'],
|
||||
{
|
||||
cwd: path.join('node_modules', 'scratch-gui'),
|
||||
env: {
|
||||
BUILD_MODE: 'dist',
|
||||
STATIC_PATH: 'static'
|
||||
},
|
||||
shell: true,
|
||||
stdio: 'inherit'
|
||||
}
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue