[deepin exploration] 白嫖 GitHub Actions,一键打包 deepin deb 软件包
Tofloor
poster avatar
千叶由香里
deepin
2025-09-24 13:51
Author

仓库地址:https://github.com/YukariChiba/buildpackage-deepin

使用方法

  1. Fork 该仓库,然后在 Actions 里打开 Workflow 的运行。

  2. 在 Actions 的 Build deepin Package Workflow 里面点击 Run Workflow,输入参数:

    1. Source Repository:
      • 可以输入 GitHub 仓库,格式:用户名/仓库名
      • 可以输入 Git 地址,格式:https://xxxx.com/xxxx....xxxx.git
    2. Source Repository Ref:
      • 可以输入希望构建的 ref,例如特定的分支,留空将 clone 默认分支。
    3. Codename of deepin:
      • apricot: deepin 20
      • beige: deepin 23
      • crimson: deepin 25

    图片.png

  3. 运行 Workflow,产生的 deb 包和相关文件将出现在对应 Workflow 的 Artifact 中:
    图片.png

流程介绍:


图片.png

示例 1:

在 deepin 25 下打包 deepin 的 musl 包:
图片.png

示例 2:

在 deepin 25 下打包 debian 的 xrdp 包,0.10.4.1 版本的分支:

图片.png

下载对应产物可以看到以下文件,建议在 Workflow 中查看 lintian 步骤的输出,或者查看各产物的 lintian.log 以检查软件包是否规范:
图片.png

注意事项:

  • Workflow 只是用于打包的,并不能解决依赖关系,直接拿 debian 的 git 仓库打包不一定能成功编译/不一定没有 bug。
  • riscv64 和 loong64 打包是运行在 qemu-user 下的,会比较慢,也可能有 bug。
  • deepin 软件包(指 debian 目录下有 deepin 目录的 git 仓库)会直接整个仓库作为源码包,这也是 deepin 目前的通用做法。
  • debian 软件包获取源码包要么使用 pristine-tar,要么使用 watch 文件,如果不是以上两者的情况,暂时不支持。
  • fork 的仓库记得定期同步,workflow 后续可能会有更新。
Reply Favorite View the author
All Replies
鲜衣怒马
deepin
2025-09-24 14:24
#1

直接在25机器上打包

Reply View the author
yanbowen
deepin
Community Developer
2025-09-24 14:35
#2

👍 👍👍

Reply View the author
mozixun
Moderator
2025-09-24 20:41
#3

好看爱看,立刻收藏!

Reply View the author
克亮
Moderator
2025-09-24 22:52
#4

非常nice! 正在进行时agree
image.png

Reply View the author
zhaohui
deepin
Community Developer
2025-09-25 10:17
#5

applaud

Reply View the author
eric2023
deepin
2025-09-25 10:17
#6

agree

Reply View the author
努力的人儿
deepin
2025-09-25 10:39
#7

kissing_heart

Reply View the author
MeGusta
deepin
2025-09-25 11:05
#8

这个好,学习了~

Reply View the author
redeagle
deepin
2025-09-25 13:07
#9

赞!

Reply View the author
商店运营-小七
Moderator
2025-09-25 13:26
#10

牛牛牛

图片.png

Reply View the author
Rebecca
deepin
2025-10-02 23:22
#11

感谢lz分享

Reply View the author