fix: manually set EMBER_CLI_ELECTRON var for prod

This commit is contained in:
Randall Morey committed 2021-01-25 15:35:07 -05:00
1 parent 665975b4d3
commit b64bc143fc
2 files changed
+4 -2

No files matched your search

+3 -1
View File
@@ -25,7 +25,9 @@ module.exports = function (environment) {
// when it is created
},
isElectron: Boolean(process.env.EMBER_CLI_ELECTRON),
isElectron: process.env.EMBER_CLI_ELECTRON
? JSON.parse(process.env.EMBER_CLI_ELECTRON)
: false,
'ember-cli-mirage': {
//enabled: ENABLE_MIRAGE,
+1 -1
View File
@@ -11,7 +11,7 @@
},
"scripts": {
"doc:toc": "doctoc README.md",
"build": "ember build --environment=production && yarn build:desktop",
"build": "EMBER_CLI_ELECTRON=true ember build --environment=production && yarn build:desktop",
"build:development": "ember build",
"prebuild:desktop": "cp -r dist electron-app/ember-dist",
"build:desktop": "cd electron-app && yarn make",