chore: desktop: use OS agnostic paths

This commit is contained in:
Susmitha Girumala committed 2021-05-22 18:18:16 -04:00
1 parent 6ffb4a2350
commit d572d5157d
3 files changed
+3 -2

No files matched your search

+1
View File
@@ -217,6 +217,7 @@
.rose-layout-global .rose-layout-global-body {
main {
flex-grow: 1;
overflow: auto;
}
}
+1 -1
View File
@@ -76,7 +76,7 @@ const createConfig = () => {
// Save forge config file
const saveConfig = (config, destination) => {
const configPath = `${destination}/forge.config.js`;
const configPath = path.join(destination, 'forge.config.js');
console.log(`[forge-config] ${configPath}`);
const content = `module.exports = ${JSON.stringify(config, null, 2)}`;
fs.writeFileSync(configPath, content);
@@ -50,7 +50,7 @@ const createAppUpdaterConfig = (url, version, destination) => {
console.log(`[app-updater] url: ${url}, destination: ${destination}`);
const json = { url, version };
const config = JSON.stringify(json);
const configPath = `${destination}/feed.json`;
const configPath = path.join(destination, 'feed.json');
if (debug) console.log(`[app-updater] config: ${config}`);
fs.writeFileSync(configPath, config);
return configPath;