A complete solution to package and build a ready for distribution Electron app with “auto update” support out of the box
13.47k
stars
1.72k
forks
source link
Setting USE_SYSTEM_7ZA environment variable breaks the build #8151
Closed
darind closed 3 months ago
electron-builder version: 24.13.3 electron version: 27.3.1 node-js version: 20.10.0
If we set the
USE_SYSTEM_7ZA=true
environment variable, then the7zip-bin
package will return7za
as path to the executable: https://github.com/develar/7zip-bin/blob/master/index.js#L7.This is used here: https://github.com/electron-userland/electron-builder/blob/master/packages/builder-util/src/7za.ts#L5.
The
chmod
call is failing because we do not specify the absolute path to the executable.This is a regression from v24.6.4 where no call to
chmod
was made.