electron打包deb失败

错误代码:

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

猜你喜欢

转载自blog.csdn.net/qq_32660241/article/details/124888763