Skip to content

Commit

Permalink
Minified browser code in the packaged final app. (arduino#931)
Browse files Browse the repository at this point in the history
- Also switched to minified `monaco` code,
- Removed dead code from the packaged.

Signed-off-by: Akos Kitta <kittaakos@gmail.com>
  • Loading branch information
kittaakos authored Mar 29, 2022
1 parent 4de7737 commit 78004fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions electron/build/template-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
"shelljs": "^0.8.3"
},
"scripts": {
"build": "yarn download:plugins && theia build --mode development && yarn patch",
"build:publish": "yarn download:plugins && theia build --mode production && yarn patch",
"build": "yarn download:plugins && theia build --mode production && yarn patch",
"rebuild": "yarn theia rebuild:electron",
"package": "cross-env DEBUG=* && electron-builder --publish=never",
"package:publish": "cross-env DEBUG=* && electron-builder --publish=always",
Expand Down
5 changes: 1 addition & 4 deletions electron/packager/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,7 @@ ${fs.readFileSync(path('..', 'build', 'package.json')).toString()}
'Installing dependencies'
);
exec(
`yarn --network-timeout 1000000 --cwd ${path('..', 'build')} build${isElectronPublish ? ':publish' : ''
}`,
`yarn --network-timeout 1000000 --cwd ${path('..', 'build')} build`,
`Building the ${productName} application`
);
exec(
Expand Down Expand Up @@ -488,7 +487,6 @@ ${fs.readFileSync(path('..', 'build', 'package.json')).toString()}
)}.`
);
shell.exit(1);
process.exit(1);
}
if (expectedVersion) {
if (!versions.has(expectedVersion)) {
Expand All @@ -497,7 +495,6 @@ ${fs.readFileSync(path('..', 'build', 'package.json')).toString()}
}'.`
);
shell.exit(1);
process.exit(1);
}
}
}
Expand Down

0 comments on commit 78004fa

Please sign in to comment.