@electron/asar
Advanced tools
Comparing version 3.2.5 to 3.2.6
@@ -183,2 +183,3 @@ 'use strict' | ||
const extractionErrors = [] | ||
for (const fullPath of filenames) { | ||
@@ -204,10 +205,19 @@ // Remove leading slash | ||
} else { | ||
// it's a file, extract it | ||
const content = disk.readFileSync(filesystem, filename, file) | ||
fs.writeFileSync(destFilename, content) | ||
if (file.executable) { | ||
fs.chmodSync(destFilename, '755') | ||
// it's a file, try to extract it | ||
try { | ||
const content = disk.readFileSync(filesystem, filename, file) | ||
fs.writeFileSync(destFilename, content) | ||
if (file.executable) { | ||
fs.chmodSync(destFilename, '755') | ||
} | ||
} catch (e) { | ||
extractionErrors.push(e) | ||
} | ||
} | ||
} | ||
if (extractionErrors.length) { | ||
throw new Error( | ||
'Unable to extract some files:\n\n' + | ||
extractionErrors.map(error => error.stack).join('\n\n')) | ||
} | ||
} | ||
@@ -214,0 +224,0 @@ |
@@ -54,3 +54,3 @@ 'use strict' | ||
} | ||
node.files = {} | ||
node.files = node.files || {} | ||
return node.files | ||
@@ -57,0 +57,0 @@ } |
{ | ||
"name": "@electron/asar", | ||
"description": "Creating Electron app packages", | ||
"version": "3.2.5", | ||
"version": "3.2.6", | ||
"main": "./lib/asar.js", | ||
@@ -6,0 +6,0 @@ "types": "./lib/index.d.ts", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43659
1033