diff options
-rw-r--r-- | src/modules/mods.js | 2 | ||||
-rw-r--r-- | src/modules/packages.js | 2 | ||||
-rw-r--r-- | src/modules/settings.js | 2 | ||||
-rw-r--r-- | src/modules/update.js | 1 |
4 files changed, 4 insertions, 3 deletions
diff --git a/src/modules/mods.js b/src/modules/mods.js index 97d4e16..9e3e81e 100644 --- a/src/modules/mods.js +++ b/src/modules/mods.js @@ -597,7 +597,7 @@ mods.installFromURL = (url, author) => { // download mod to a temporary location https.get(url, (res) => { - let tmp = path.join(app.getPath("cache"), "vipertmp"); + let tmp = path.join(app.getPath("userData"), "Temp"); let modlocation = path.join(tmp, "/mod.zip"); // make sure the temporary folder exists diff --git a/src/modules/packages.js b/src/modules/packages.js index fca0a44..d690824 100644 --- a/src/modules/packages.js +++ b/src/modules/packages.js @@ -333,7 +333,7 @@ packages.download = async (url, name) => { return new Promise((resolve) => { // download mod to a temporary location https.get(url, (res) => { - let tmp = path.join(app.getPath("cache"), "vipertmp"); + let tmp = path.join(app.getPath("userData"), "Temp"); let zip_name = name || "package"; let zip_path = path.join(tmp, `${zip_name}.zip`); diff --git a/src/modules/settings.js b/src/modules/settings.js index 5449570..d513ec9 100644 --- a/src/modules/settings.js +++ b/src/modules/settings.js @@ -68,7 +68,7 @@ if (fs.existsSync("viper.json")) { ...settings, ...conf } - settings.zip = path.join(app.getPath("cache"), "vipertmp/northstar.zip"); + settings.zip = path.join(app.getPath("userData"), "Temp/northstar.zip"); let args = path.join(settings.gamepath, "ns_startup_args.txt"); if (! settings.nsargs && fs.existsSync(args)) { diff --git a/src/modules/update.js b/src/modules/update.js index 3def83b..7140fcd 100644 --- a/src/modules/update.js +++ b/src/modules/update.js @@ -22,6 +22,7 @@ let update = {}; ipcMain.on("delete-install-cache", () => { let delete_dirs = [ + path.join(app.getPath("userData"), "Temp"), path.join(app.getPath("cache"), "vipertmp"), path.join(settings().gamepath, "northstar.zip") ] |