Skip to content

Commit fe91f6b

Browse files
committed
Fix the C++ version
1 parent 4a4fbe6 commit fe91f6b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

electron/build/template-package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
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-
"package": "cross-env DEBUG=* && electron-builder --publish=never",
24-
"package:publish": "cross-env DEBUG=* && electron-builder --publish=always",
23+
"package": "cross-env DEBUG=* && electron-builder --publish=never -std=c++14",
24+
"package:publish": "cross-env DEBUG=* && electron-builder --publish=always -std=c++14",
2525
"download:plugins": "theia download:plugins",
2626
"patch": "ncp ./patch/main.js ./src-gen/backend/main.js"
2727
},

electron/packager/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
//-------------------------------------------------------------------------------------------------+
104104
// Rebuild the extension with the copied `yarn.lock`. It is a must to use the same Theia versions. |
105105
//-------------------------------------------------------------------------------------------------+
106-
exec(`yarn --ignore-engines --network-timeout 1000000 --cwd ${path('..', workingCopy)} -std=c++17`, `Building the ${productName} application`);
106+
exec(`yarn --ignore-engines --network-timeout 1000000 --cwd ${path('..', workingCopy)}`, `Building the ${productName} application`);
107107

108108
//-------------------------------------------------------------------------------------------------------------------------+
109109
// Test the application. With this approach, we cannot publish test results to GH Actions but save 6-10 minutes per builds |
@@ -176,8 +176,8 @@ ${fs.readFileSync(path('..', 'build', 'package.json')).toString()}
176176
//-------------------------------------------------------------------------------------------+
177177
// Install all private and public dependencies for the electron application and build Theia. |
178178
//-------------------------------------------------------------------------------------------+
179-
exec(`yarn --ignore-engines --network-timeout 1000000 --cwd ${path('..', 'build')} -std=c++17`, 'Installing dependencies');
180-
exec(`yarn --ignore-engines --network-timeout 1000000 --cwd ${path('..', 'build')} build${isElectronPublish ? ':publish' : ''} -std=c++17`, `Building the ${productName} application`);
179+
exec(`yarn --ignore-engines --network-timeout 1000000 --cwd ${path('..', 'build')}`, 'Installing dependencies');
180+
exec(`yarn --ignore-engines --network-timeout 1000000 --cwd ${path('..', 'build')} build${isElectronPublish ? ':publish' : ''}`, `Building the ${productName} application`);
181181

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

0 commit comments

Comments
 (0)