使用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"
使用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"