Skip to content

求助【自定义编译打包】 #276

@huhuhuhr-1

Description

@huhuhuhr-1

做为SQLBot的骨灰粉,关注蛮长时间,所在团队也用上了它。
自己也fork项目开发了几个自定义接口,所以会编译源码。但是自己编译的源码,高达体积4.1G,具体如下

root@51053d3baf3c:/# du -h ./usr ./opt --max-depth=1
124M    ./usr/bin
0       ./usr/games
39M     ./usr/include
649M    ./usr/lib
0       ./usr/lib64
20K     ./usr/libexec
59M     ./usr/local
6.5M    ./usr/sbin
159M    ./usr/share
0       ./usr/src
1.1G    ./usr
3.0G    ./opt/sqlbot
3.0G    ./opt

远高于发布v1.2.0

Image

想请教三个问题:
1:怎么编译出和生产一样小的包,以及还有没有优化空间。
2:arm,amd这样不同cpu架构的包怎么制作。
3:怎么构建离线包,方便制作rpm。

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions