This repository has been archived by the owner on Oct 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(electron): patch asar to normalize win32 paths
See: electron/asar#159
- Loading branch information
Showing
3 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff --git a/node_modules/asar/lib/asar.js b/node_modules/asar/lib/asar.js | ||
index 8b98115..b5431b4 100644 | ||
--- a/node_modules/asar/lib/asar.js | ||
+++ b/node_modules/asar/lib/asar.js | ||
@@ -63,6 +63,11 @@ callback: The callback function. Accepts (err). | ||
module.exports.createPackageFromFiles = function (src, dest, filenames, metadata, options, callback) { | ||
if (typeof metadata === 'undefined' || metadata === null) { metadata = {} } | ||
if (typeof options === 'undefined' || options === null) { options = {} } | ||
+ | ||
+ src = path.normalize(src) | ||
+ dest = path.normalize(dest) | ||
+ filenames = filenames.map(function (filename) { return path.normalize(filename) }) | ||
+ | ||
const filesystem = new Filesystem(src) | ||
const files = [] | ||
const unpackDirs = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters