Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

规范化打包格式 #1

Merged
merged 8 commits into from
Jun 5, 2024
Merged

Conversation

MingcongBai
Copy link

本合并请求引入 Kunluntech SetupTool 打包方面的规范化修改:

  • 使用 PolicyKit 配置提权并设置提权提示信息
  • 修缮 .desktop 文件,加入正确的翻译和悬浮提示框数据
  • 将图标文件放置到正确路径 /usr/share/pixmaps
  • 删除不必要的 chmod 777 字段
    • 程序本身已经提权,有 /usr/libexec/com.kunluntech.SetupTool 的写入权限
    • 程序可执行应该使用 0755 权限位,数据文件应使用 0644 权限位
  • 删除不必要的 start.sh 文件
    • 使用 /usr/bin/kunluntech-setuptool 代替(这样用户就可以直接从命令行启动这个程序了
  • 修缮 d/control 中的软件包简介
  • 删除 d/rules 中不必要的代码

There is no point as this program is already launched with elevated privileges.
We will handle this in .desktop and create a wrapper script in /usr/bin.
In compliance with the FreeDesktop.org's XDG (Cross-Desktop Group) guidelines.
…name

Also add proper zh_CN translation and description for this application.
This is used to display a pretty and localised prompt whilst attempting to
launch this program.
This allows the user to launch the setup utility via command line whilst still
using PolicyKit for privilege escalation.
- Lint grammar in package description.
- Clean up unused lines in d/rules.
@kunluntech-ci kunluntech-ci merged commit a6c17d7 into kunluntech-ci:master Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants