Feat:添加 RHEL 兼容 RPM Package#6352
Open
Lingbou wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
摘要
关联 Issue:#5937
新的
:HMCL:makeRpm任务使用rpmbuild构建 RPM 包,并尽量沿用现有 Debian 包的安装布局,包括按发布渠道区分的启动命令、desktop entry、图标安装,以及通过 alternatives 注册通用的hmcl命令。主要改动
CreateRpmGradle task。HMCL_PACKAGE_MANAGED=rpm,避免内置更新流程和系统包管理器安装的版本冲突。说明
build流程。验证
本地已验证:
./gradlew :HMCL:compileJava --no-daemon --stacktrace./gradlew :HMCL:checkTranslations --no-daemon --stacktrace./gradlew :HMCL:makeDeb --no-daemon --stacktrace./gradlew :HMCL:checkstyleMain --no-daemon --stacktraceDocker 中已验证:
rockylinux:9容器内执行./gradlew :HMCL:makeRpm --no-daemon --stacktrace,构建成功。rockylinux:9容器内使用dnf安装并卸载生成的 RPM,安装和卸载均成功。hmcl-nightly-3.16.snapshot-1.noarch。/usr/bin/hmcl-nightly可执行。hmclalternatives 指向/usr/bin/hmcl-nightly。HMCL_PACKAGE_MANAGED="rpm"。