update electron to v43
This commit is contained in:
parent
68ac0beedf
commit
fb6c8b6ee9
5385 changed files with 513060 additions and 123058 deletions
23
electron/node_modules/electron-winstaller/script/select-7z-arch.js
generated
vendored
Normal file
23
electron/node_modules/electron-winstaller/script/select-7z-arch.js
generated
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
const fs = require('fs');
|
||||
const os = require('os');
|
||||
|
||||
/**
|
||||
* Even if we're cross-compiling for a different arch like arm64,
|
||||
* we still need to use the 7-Zip executable for the host arch
|
||||
*/
|
||||
const arch = os.arch;
|
||||
|
||||
console.log('Selecting 7-Zip for arch ' + arch);
|
||||
|
||||
// Copy the 7-Zip executable for the configured architecture.
|
||||
try {
|
||||
fs.copyFileSync('vendor/7z-' + arch + '.exe', 'vendor/7z.exe');
|
||||
} catch (err) {
|
||||
throw err;
|
||||
}
|
||||
|
||||
try {
|
||||
fs.copyFileSync('vendor/7z-' + arch + '.dll', 'vendor/7z.dll');
|
||||
} catch (err) {
|
||||
throw err;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue