Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 78004fa

Browse files
Minified browser code in the packaged final app. (#931)
- Also switched to minified `monaco` code, - Removed dead code from the packaged. Signed-off-by: Akos Kitta <kittaakos@gmail.com>
1 parent 4de7737 commit 78004fa

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

‎electron/build/template-package.json‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
"shelljs": "^0.8.3"
2121
},
2222
"scripts": {
23-
"build": "yarn download:plugins && theia build --mode development && yarn patch",
24-
"build:publish": "yarn download:plugins && theia build --mode production && yarn patch",
23+
"build": "yarn download:plugins && theia build --mode production && yarn patch",
2524
"rebuild": "yarn theia rebuild:electron",
2625
"package": "cross-env DEBUG=* && electron-builder --publish=never",
2726
"package:publish": "cross-env DEBUG=* && electron-builder --publish=always",

‎electron/packager/index.js‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,7 @@ ${fs.readFileSync(path('..', 'build', 'package.json')).toString()}
227227
'Installing dependencies'
228228
);
229229
exec(
230-
`yarn --network-timeout 1000000 --cwd ${path('..', 'build')} build${isElectronPublish ? ':publish' : ''
231-
}`,
230+
`yarn --network-timeout 1000000 --cwd ${path('..', 'build')} build`,
232231
`Building the ${productName} application`
233232
);
234233
exec(
@@ -488,7 +487,6 @@ ${fs.readFileSync(path('..', 'build', 'package.json')).toString()}
488487
)}.`
489488
);
490489
shell.exit(1);
491-
process.exit(1);
492490
}
493491
if (expectedVersion) {
494492
if (!versions.has(expectedVersion)) {
@@ -497,7 +495,6 @@ ${fs.readFileSync(path('..', 'build', 'package.json')).toString()}
497495
}'.`
498496
);
499497
shell.exit(1);
500-
process.exit(1);
501498
}
502499
}
503500
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /