[PR #8] [MERGED] Auto-Package on release #9

Closed
opened 2025-10-27 18:43:45 +01:00 by OMGeeky · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AndorsTrailRelease/ATCS/pull/8
Author: @OMGeeky
Created: 2/18/2025
Status: Merged
Merged: 7/12/2025
Merged by: @NutAndor

Base: masterHead: package-on-release


📝 Commits (10+)

  • b5dceb9 Update package.sh to switch from tar.gz to zip for archive creation
  • 0e8ed1a Enhance package.sh to support platform-specific archive creation using PowerShell on Windows
  • 2caaaeb Update ATCS_Installer.nsi to dynamically set VERSION from ATCS_latest file
  • 1e2daa5 Update ATCS_Installer.nsi to change ATCS_SOURCE_DIR path for improved directory structure and allow github actions
  • b6cfe34 Add GitHub Actions workflow for automated release builds
  • 92436d3 Update package.sh to switch from tar.gz to zip for archive creation
  • 00e9e3b Enhance package.sh to support platform-specific archive creation using PowerShell on Windows
  • f154efc Update ATCS_Installer.nsi to dynamically set VERSION from ATCS_latest file
  • 104d3db Update ATCS_Installer.nsi to change ATCS_SOURCE_DIR path for improved directory structure and allow github actions
  • f0be1a8 Add GitHub Actions workflow for automated release builds

📊 Changes

12 files changed (+132 additions, -99 deletions)

View changed files

.gitattributes (+6 -0)
.github/workflows/release.yml (+56 -0)
packaging/Linux/.gitignore (+0 -2)
packaging/Linux/ATCS/ATCS.cmd (+0 -20)
packaging/Linux/ATCS/ATCS.ico (+0 -0)
packaging/Linux/ATCS/ATCS.sh (+0 -22)
packaging/Linux/ATCS/lib/.gitignore (+0 -1)
📝 packaging/Windows/ATCS_Installer.nsi (+22 -22)
📝 packaging/common/ATCS.sh (+17 -12)
📝 packaging/package.sh (+20 -13)
📝 res/ATCS_latest (+0 -0)
📝 src/com/gpl/rpg/atcontentstudio/ATContentStudio.java (+11 -7)

📄 Description

This PR makes it possible to automatically package the zip and exe whenever a github release is created (with a new tag)

Some other changes:

  • changes the java code, the nsi and the package.sh to read the version from one place (res/ATCS_latest) so the version only needs to change there.
  • fixed some bugs in the linux start script, that cause issues if the path of the script contains spaces etc.
  • removed redundant Linux dir in packaging folder, since the linux and the common version should be basically identical
  • added .gitattributes file, to make sure line endings for .sh files are always LF not CRLF, since that messes with running the files on linux (where these are only used). Other files will have normalized line endings (native to the current system) when cloning

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/AndorsTrailRelease/ATCS/pull/8 **Author:** [@OMGeeky](https://github.com/OMGeeky) **Created:** 2/18/2025 **Status:** ✅ Merged **Merged:** 7/12/2025 **Merged by:** [@NutAndor](https://github.com/NutAndor) **Base:** `master` ← **Head:** `package-on-release` --- ### 📝 Commits (10+) - [`b5dceb9`](https://github.com/AndorsTrailRelease/ATCS/commit/b5dceb9fd1e0f1539fd1aa5f3095392ae88ce3bb) Update package.sh to switch from tar.gz to zip for archive creation - [`0e8ed1a`](https://github.com/AndorsTrailRelease/ATCS/commit/0e8ed1a25dcd35c93f7d05a4ffac8359000037b5) Enhance package.sh to support platform-specific archive creation using PowerShell on Windows - [`2caaaeb`](https://github.com/AndorsTrailRelease/ATCS/commit/2caaaeb474d87b2b98f0cc00afb4305f5dd01d4a) Update ATCS_Installer.nsi to dynamically set VERSION from ATCS_latest file - [`1e2daa5`](https://github.com/AndorsTrailRelease/ATCS/commit/1e2daa56a4aac17816a605e952acc130de4d9ced) Update ATCS_Installer.nsi to change ATCS_SOURCE_DIR path for improved directory structure and allow github actions - [`b6cfe34`](https://github.com/AndorsTrailRelease/ATCS/commit/b6cfe349c01f9867188d192a9e602e8f631dd751) Add GitHub Actions workflow for automated release builds - [`92436d3`](https://github.com/AndorsTrailRelease/ATCS/commit/92436d3ce9a5bd6e46d7ee60617eaff1b4fe9462) Update package.sh to switch from tar.gz to zip for archive creation - [`00e9e3b`](https://github.com/AndorsTrailRelease/ATCS/commit/00e9e3b2a72eb246647f64812d78d0ef072b663a) Enhance package.sh to support platform-specific archive creation using PowerShell on Windows - [`f154efc`](https://github.com/AndorsTrailRelease/ATCS/commit/f154efceccf7dfa68f94173998d589c78800915a) Update ATCS_Installer.nsi to dynamically set VERSION from ATCS_latest file - [`104d3db`](https://github.com/AndorsTrailRelease/ATCS/commit/104d3db5ad1d633d7fdde1ae7ff81b944f11641c) Update ATCS_Installer.nsi to change ATCS_SOURCE_DIR path for improved directory structure and allow github actions - [`f0be1a8`](https://github.com/AndorsTrailRelease/ATCS/commit/f0be1a8135543ca2ee05dee008016966c30951ab) Add GitHub Actions workflow for automated release builds ### 📊 Changes **12 files changed** (+132 additions, -99 deletions) <details> <summary>View changed files</summary> ➕ `.gitattributes` (+6 -0) ➕ `.github/workflows/release.yml` (+56 -0) ➖ `packaging/Linux/.gitignore` (+0 -2) ➖ `packaging/Linux/ATCS/ATCS.cmd` (+0 -20) ➖ `packaging/Linux/ATCS/ATCS.ico` (+0 -0) ➖ `packaging/Linux/ATCS/ATCS.sh` (+0 -22) ➖ `packaging/Linux/ATCS/lib/.gitignore` (+0 -1) 📝 `packaging/Windows/ATCS_Installer.nsi` (+22 -22) 📝 `packaging/common/ATCS.sh` (+17 -12) 📝 `packaging/package.sh` (+20 -13) 📝 `res/ATCS_latest` (+0 -0) 📝 `src/com/gpl/rpg/atcontentstudio/ATContentStudio.java` (+11 -7) </details> ### 📄 Description This PR makes it possible to automatically package the zip and exe whenever a github release is created (with a new tag) ### Some other changes: - changes the java code, the nsi and the package.sh to read the version from one place (res/ATCS_latest) so the version only needs to change there. - fixed some bugs in the linux start script, that cause issues if the path of the script contains spaces etc. - removed redundant Linux dir in packaging folder, since the linux and the common version should be basically identical - added `.gitattributes` file, to make sure line endings for `.sh` files are always LF not CRLF, since that messes with running the files on linux (where these are only used). Other files will have normalized line endings (native to the current system) when cloning --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OMGeeky added the
pull-request
label 2025-10-27 18:43:45 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: AndorsTrailRelease/archived-ATCS#9
No description provided.