背景
在windows下用python开发了批量txt转xlsx工具,用的pyinstaller打包成了exe系统。国产化下越来越多的电脑已经改成了统信UOS,所以琢磨着重新开发套。新txt转xlsx工具采用go-gtk开发编译,本文简单貌似下已经编辑好的二进制制作成deb分享给朋友。
准备
准备签名证书
UOS官方网站注册https://www.chinauos.com/,并按下面命令生产证书cert-tool -username=zhanghao -password=mima
准备deb包内容
$ tree -L 4 org.deepin.txt2xlsx org.deepin.txt2xlsx ├── DEBIAN │ ├── control │ ├── postinst │ └── postrm ├── opt │ └── apps │ └── org.deepin.txt2xlsx │ ├── entries │ ├── files │ └── info └── usr └── share ├── applications │ └── org.deepin.txt2xlsx.desktop └── icons └── hicolor
打包并签名
dpkg-deb -b org.deepin.txt2xlsx deepin-elf-sign-deb org.deepin.txt2xlsx.deb
后记
随着国产化的推进,国产终端会越来越多转想UOS也是趋势,所以多搞搞国产软件开发。
参考内容
UOS应用打包规范
UOS开发者调试签名
UOS系统如何给软件签名
Linux制作deb格式安装包教程
UOS非开发者模式deb打包安装说明
评论 (0)