electron打包deb失败

516 阅读1分钟

错误代码:

cannot execute cause=exit status 1 out={:timestamp=>"2022-05-20T17:51:47.432236+0800", :message=>"Debian packaging tools generally labels all files in /etc as config files, as mandated by policy, so fpm defaults to this behavior for deb packages. You can disable this default behavior with --deb-no-default-config-files flag", :level=>:warn} {:timestamp=>"2022-05-20T17:53:00.643899+0800", :message=>"Need executable 'ar' to convert dir to deb", :level=>:error}

原因: fpm 工具需要 ar 命令才能打包deb, 需要binutils

解决方法: sudo apt install binutils