electron-userland / electron-builder

A complete solution to package and build a ready for distribution Electron app with “auto update” support out of the box
https://www.electron.build
MIT License
13.65k stars 1.74k forks source link

在window10中npm run build:linux时失败报错。 #8439

Open YUHUAJ opened 1 month ago

YUHUAJ commented 1 month ago

使用npm run build:win时打包已成功,但是使用npm run build:linux打包时报错: • cannot execute chmod error=exec: "chmod": executable file not found in %PATH% • cannot execute chmod error=exec: "chmod": executable file not found in %PATH% • cannot execute chmod error=exec: "chmod": executable file not found in %PATH% ⨯ cannot execute cause=exec: "C:\Users\CH\AppData\Local\electron-builder\Cache\appimage\appimage-12.0.1\linux-x64\mksquashfs": file does not exist 是不是必须在Linux系统上打包才可以? 打包命令配置: "build:win": "npm run build && electron-builder --win", "build:mac": "npm run build && electron-builder --mac", "build:linux": "npm run build && electron-builder --linux" 1725097982035

beyondkmp commented 1 month ago

We can't run Linux commands on Windows, but you can use WSL to run the packaging, which should be fine.