Skip to content

ci: Optimize packaging workflow with multi-OS support, JRE bundling, and start scripts#241

Merged
unknowIfGuestInDream merged 3 commits intomasterfrom
copilot/optimize-build-workflow
Feb 28, 2026
Merged

ci: Optimize packaging workflow with multi-OS support, JRE bundling, and start scripts#241
unknowIfGuestInDream merged 3 commits intomasterfrom
copilot/optimize-build-workflow

Conversation

Copy link
Contributor

Copilot AI commented Feb 28, 2026

Replaces the single-OS Ubuntu-only JAR upload with a full multi-platform packaging pipeline, following the pattern from InsightPC.

Proposed Changes

  1. Multi-OS workflow (package.yml): Matrix strategy across Ubuntu, Windows, macOS with Maven caching, version resolution, staging directory assembly, and per-platform artifact uploads (7-day retention)
  2. JRE bundling via jlink (scripts/jre.sh, jre.ps1, jre_mac.sh): Downloads JDK 17 from Adoptium and creates a minimal custom runtime — significantly smaller than shipping a full JDK
  3. Platform start scripts: Linux/macOS start.sh, Windows start.bat/console.bat/start.vbs — all detect bundled JRE with fallback to system Java

Key adaptations from InsightPC for genCode:

  • Java 17 instead of 21 (--compress=2 vs --compress zip-6)
  • Spring Boot fat JAR — no separate lib/ directory needed
  • Artifact name genCode.jar

Readiness Checklist

Author/Contributor

  • If documentation is needed for this change, has that been included in this pull request

Reviewing Maintainer

  • Label as either enhancement, bug, documentation, style or dependencies
  • Verify design and implementation
Original prompt

This section details on the original issue you should resolve

<issue_title>[Feature Request] 优化打包工作流</issue_title>
<issue_description>### Checklist

  • I searched exising issues and no one else requests similar feature.
  • I think that 25%+ users are positive towards this feature.

Describe the feature

优化打包工作流
参考https://github.com/unknowIfGuestInDream/InsightPC 的package.yml 以及scripts文件夹

Additional context

No response</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@naming-conventions-bot
Copy link

Thank you for following naming conventions! 😻

@mergify
Copy link

mergify bot commented Feb 28, 2026

Thanks for opening this pull request!
Please check out the Contributing Guidelines.

@mergify
Copy link

mergify bot commented Feb 28, 2026

@copilot
Wrong PR Title: [WIP] Optimize packaging workflow
Please check Contributing Guidelines for more information.

…start scripts

- Add scripts/jre.sh, jre.ps1, jre_mac.sh for custom JRE creation via jlink (Java 17)
- Add platform-specific start scripts (linux, mac, win)
- Update package.yml with multi-OS matrix, Maven caching, version resolution,
  staging directory, JRE bundling, and per-platform artifact uploads

Co-authored-by: unknowIfGuestInDream <57802425+unknowIfGuestInDream@users.noreply.github.com>
Co-authored-by: unknowIfGuestInDream <57802425+unknowIfGuestInDream@users.noreply.github.com>
@sonarqubecloud
Copy link

Copilot AI changed the title [WIP] Optimize packaging workflow Optimize packaging workflow with multi-OS support, JRE bundling, and start scripts Feb 28, 2026
@unknowIfGuestInDream unknowIfGuestInDream marked this pull request as ready for review February 28, 2026 12:07
@unknowIfGuestInDream
Copy link
Owner

@copilot
dependabot 指定unknowIfGuestInDream 当reviewer

@unknowIfGuestInDream unknowIfGuestInDream changed the title Optimize packaging workflow with multi-OS support, JRE bundling, and start scripts ci: Optimize packaging workflow with multi-OS support, JRE bundling, and start scripts Feb 28, 2026
@unknowIfGuestInDream unknowIfGuestInDream merged commit c234fca into master Feb 28, 2026
30 of 31 checks passed
@unknowIfGuestInDream unknowIfGuestInDream deleted the copilot/optimize-build-workflow branch February 28, 2026 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] 优化打包工作流

2 participants