From e41c86444314063fc29ae49ebd94ec44c9573c80 Mon Sep 17 00:00:00 2001 From: Adam Lynch Date: Sat, 23 Aug 2014 18:09:54 +0100 Subject: [PATCH] Fixed ZIP destination directory for Windows Woops, it should always move it to `os.tmpdir()`. (I assumed it was downloaded there, you we can't assume that) Bumped to 0.0.12 --- app/updater.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/updater.js b/app/updater.js index 2cedabf..00d3c74 100644 --- a/app/updater.js +++ b/app/updater.js @@ -138,7 +138,7 @@ * @return {string} */ var getZipDestinationDirectory = function(zipPath){ - return path.join(path.dirname(zipPath), path.basename(zipPath, path.extname(zipPath))); + return path.join(os.tmpdir(), path.basename(zipPath, path.extname(zipPath))); }; var pUnpack = { diff --git a/package.json b/package.json index 8ee29f0..fa3954c 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "update", "autoupdate" ], - "version": "0.0.11", + "version": "0.0.12", "main": "./app/updater.js", "repository": { "type": "git",