Skip to content

Commit 4775259

Browse files
committed
Rebuild native dependencies beforehand
1 parent 70d3748 commit 4775259

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Diff for: electron/build/template-package.json

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"scripts": {
2121
"build": "yarn download:plugins && theia build --mode development && yarn patch",
2222
"build:publish": "yarn download:plugins && theia build --mode production && yarn patch",
23+
"rebuild": "yarn theia rebuild:electron",
2324
"package": "cross-env DEBUG=* && electron-builder --publish=never",
2425
"package:publish": "cross-env DEBUG=* && electron-builder --publish=always",
2526
"download:plugins": "theia download:plugins",

Diff for: electron/packager/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ ${fs.readFileSync(path('..', 'build', 'package.json')).toString()}
178178
//-------------------------------------------------------------------------------------------+
179179
exec(`yarn --ignore-engines --network-timeout 1000000 --cwd ${path('..', 'build')}`, 'Installing dependencies');
180180
exec(`yarn --ignore-engines --network-timeout 1000000 --cwd ${path('..', 'build')} build${isElectronPublish ? ':publish' : ''}`, `Building the ${productName} application`);
181+
exec(`yarn --ignore-engines --network-timeout 1000000 --cwd ${path('..', 'build')} rebuild`, 'Rebuild native dependencies');
181182

182183
//------------------------------------------------------------------------------+
183184
// Create a throw away dotenv file which we use to feed the builder with input. |

0 commit comments

Comments
 (0)