More cleanups for actual distributable builds set to proper environment

This commit is contained in:
Nathanael Anderson
2024-04-11 09:21:27 -06:00
parent 8e23e82ac4
commit 09a9441e6e
6 changed files with 54 additions and 39 deletions
+9
View File
@@ -0,0 +1,9 @@
const fs = require('node:fs');
let cfg = ""
if (process.argv[2]) {
cfg = process.argv[2];
}
// Output should be in the build-electron folder
fs.writeFileSync(__dirname + "/../build-electron/config.js", `global.SQ_ENV_CFG = "${cfg}";`)