diff --git a/app/main.dev.ts b/app/main.dev.ts index e7f2973..33fa406 100644 --- a/app/main.dev.ts +++ b/app/main.dev.ts @@ -103,8 +103,6 @@ const createWindow = async () => { mainWindow.show(); mainWindow.focus(); } - // Force dev console open for debug - mainWindow.webContents.openDevTools(); }); mainWindow.on('closed', () => { diff --git a/app/package.json b/app/package.json index 0d11126..a1aea34 100644 --- a/app/package.json +++ b/app/package.json @@ -1,7 +1,7 @@ { "name": "BrainWaves", "productName": "BrainWaves", - "version": "0.15.0-rc3", + "version": "0.15.0", "description": "EEG Desktop Application", "main": "./main.prod.js", "type": "module", diff --git a/configs/webpack.config.main.prod.babel.js b/configs/webpack.config.main.prod.babel.js index 776f6c2..6567a8f 100644 --- a/configs/webpack.config.main.prod.babel.js +++ b/configs/webpack.config.main.prod.babel.js @@ -56,17 +56,21 @@ export default merge(baseConfig, { * NODE_ENV should be production so that modules do not perform certain * development checks * - * The keys for emotiv SDK usage are piped into prod builds here via - * env variables set by secrets in Github Actions */ new webpack.EnvironmentPlugin({ NODE_ENV: 'production', DEBUG_PROD: false, START_MINIMIZED: false, E2E_BUILD: false, - CLIENT_ID: process.env.CLIENT_ID, - CLIENT_SECRET: process.env.CLIENT_SECRET, - LICENSE_ID: process.env.LICENSE_ID, + }), + /** + * The keys for emotiv SDK usage are piped into prod builds here via + * env variables set by secrets in Github Actions + */ + new webpack.DefinePlugin({ + CLIENT_ID: JSON.stringify(process.env.CLIENT_ID), + CLIENT_SECRET: JSON.stringify(process.env.CLIENT_SECRET), + LICENSE_ID: JSON.stringify(process.env.LICENSE_ID), }), ], diff --git a/keys.js b/keys.js index 90b96ba..ac6caff 100644 --- a/keys.js +++ b/keys.js @@ -6,8 +6,5 @@ const CLIENT_SECRET = process.env.CLIENT_SECRET; // Created through Cortex Apps const LICENSE_ID = process.env.LICENSE_ID; // Visible on My Account page of Emotiv.com const envVars = { CLIENT_ID, CLIENT_SECRET, LICENSE_ID }; -Object.keys(envVars).forEach((k) => - console.log(typeof envVars[k] === 'string') -); module.exports = { CLIENT_ID, CLIENT_SECRET, LICENSE_ID }; diff --git a/package.json b/package.json index e89425a..d2a48c2 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "brainwaves", "productName": "BrainWaves", - "version": "0.15.0-rc3", + "version": "0.15.0", "description": "EEG Experiment Desktop Application", "scripts": { "build": "concurrently \"yarn build-main\" \"yarn build-renderer\"",