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

VCS phase merge I #94

Merged
merged 7 commits into from
Jan 7, 2025
Merged

VCS phase merge I #94

merged 7 commits into from
Jan 7, 2025

Conversation

half-nothing
Copy link
Contributor

@half-nothing half-nothing commented Jan 6, 2025

检查列表:

  • 已在本机执行过 gradle rungradle distAll,均可正常执行完毕
  • 已在本机测试过下述内容,确认基础功能正常
  • 已测试过其余功能,其余功能正常

这些提交做了什么?
1、将Gradle 从 Groovy 风格转换成 Kotlin DSL风格
2、将部分固定的字面常量,和部分依赖库版本信息提取到项目配置里,比如:作者名,软件名,软件版本等
image
3、为Arkpets添加Kotlin语言支持,现在Arkpets支持Java和Kotlin的混合编程了
4、为不同构建添加后缀:

  • 如果什么都没有提供,则默认会加上+nightly后缀
  • image
  • 如果是由Github Action构建,则会加上+build.{buildID}来区分不同的构建
  • image
  • 如果Github Action的名字是Release(留给未来的自动发布)或者环境变量RELEASE被设置,则不会有任何后缀
  • image
  • image
    可惜的是后缀暂时不会反应在启动器界面上,或许可以使用环境变量,但最好用注解处理器或者ASM操作class文件直接写死在程序里
  • 现在对于开发环境,回直接显示+dev
  • image
  • 而对于安装过后的环境,则该显示什么显示什么
  • image

5、为Kotlin添加了提交前代码格式检查,对Java代码无效
6、为manifest文件添加更多内容
image
7、Gradle与InnoSetup现在可以通过环境变量传递版本和版权信息,所以理论上InnoSetup的脚本可以一辈子也不用动了

@isHarryh isHarryh merged commit 4238b8c into isHarryh:v4.x-vcs Jan 7, 2025
1 check passed
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