electron打包deb失败

原创
2022/05/20 18:38
阅读数 1.3K

错误代码:

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

展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部