[Seek Help] linux下程序打包
Tofloor
poster avatar
miaoys
deepin
2023-01-03 20:57
Author

我这儿有个flutter做的小工具,这个可以直接点击运行,有没有什么工具可以把这个直接打包成deb或者AppImage格式的安装包?对deb、appimage怎么打包也不怎么熟悉

image.png

Reply Favorite View the author
All Replies
Lwh2008-Equinox
deepin
2023-01-03 21:06
#1

deb包好像比rpm包打包要复杂,虽然结构更清晰。。。

https://wiki.debian.org/Packaging?action=show&redirect=Package

这个可能会对你有帮助

Reply View the author
DebuggerX
deepin
2023-01-03 21:09
#2

可以看看我写的app的打包脚本:

https://github.com/debuggerx01/dde_gesture_manager/blob/dev/app/build_deb.sh

符合deepin/UOS的格式要求,app已上架应用商店

Reply View the author
miaoys
deepin
2023-01-03 21:14
#3
DebuggerX

可以看看我写的app的打包脚本:

https://github.com/debuggerx01/dde_gesture_manager/blob/dev/app/build_deb.sh

符合deepin/UOS的格式要求,app已上架应用商店

访问不了github

Reply View the author
DebuggerX
deepin
2023-01-03 21:17
#4
miaoys

访问不了github

https://gitee.com/mirrors/debuggerx-dgm/blob/dev/app/build_deb.sh

Reply View the author
miaoys
deepin
2023-01-03 21:20
#5
DebuggerX

https://gitee.com/mirrors/debuggerx-dgm/blob/dev/app/build_deb.sh

感谢感谢,我研究研究

Reply View the author
miaoys
deepin
2023-01-03 21:20
#6
Lwh2008-Equinox

deb包好像比rpm包打包要复杂,虽然结构更清晰。。。

https://wiki.debian.org/Packaging?action=show&redirect=Package

这个可能会对你有帮助

谢谢

Reply View the author
miaoys
deepin
2023-01-03 21:56
#7
DebuggerX

https://gitee.com/mirrors/debuggerx-dgm/blob/dev/app/build_deb.sh

你好,再问下,有生成这些模板文件的工具么,还是就得自己右键新建文件做?

image.png

Reply View the author
DebuggerX
deepin
2023-01-03 22:25
#8
miaoys

你好,再问下,有生成这些模板文件的工具么,还是就得自己右键新建文件做?

image.png

我是看完文档手写的

Reply View the author
miaoys
deepin
2023-01-03 22:35
#9
DebuggerX

我是看完文档手写的

好的

Reply View the author
安洛
deepin
2023-01-04 00:26
#10

其实如果你确认你的程序没有什么依赖的话可以直接压缩成tarball,解压就能运行,参考firefox。

另外无论你采用什么打包方式,都请严格检查依赖。

Reply View the author
ka鹿
deepin
2023-01-04 01:53
#11

https://gitee.com/uos-package/upTool

Reply View the author
六七八九十
deepin
2023-01-04 11:14
#12

自己找个deb包拆出来看看很简单的

Reply View the author
miaoys
deepin
2023-01-04 18:18
#13
ka鹿

https://gitee.com/uos-package/upTool

工具不错,打包成功,谢谢大佬

Reply View the author