Skip to content

Commit

Permalink
Fixed ZIP destination directory for Windows
Browse files Browse the repository at this point in the history
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
  • Loading branch information
adam-lynch committed Aug 23, 2014
1 parent e281927 commit e41c864
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/updater.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"update",
"autoupdate"
],
"version": "0.0.11",
"version": "0.0.12",
"main": "./app/updater.js",
"repository": {
"type": "git",
Expand Down

0 comments on commit e41c864

Please sign in to comment.