Ensure the working directory is clean before creating a release. Stash or commit changes to a different branch if the working directory is dirty.
Run the following command to get the version.
gradlew nextInternalVersion
The task will print an output similar to the one shown below.
Next INTERNAL version should be: 2021.0.2
Use the printed version for the release.
Underneath the ## [Unreleased]
section, add the version and date in the following format.
## [version] - YYYY-MM-DD
Example,
## [2021.0.2] - 2021-04-13
Stage and commit changes.
git add .
git commit -m "docs: update CHANGELOG"
gradlew jpackageImage jpackage
This will create a distributable native installer (currently .dmg
) for macOS. Windows and Linux distributions are
yet to be tested.
You should see the version number for the build in two places,
- The native package - file name of the binary should contain the version number.
- The application (after installation) - Welcome screen should display the new version number in the bottom right corner.
Add a git tag to the release with the version number and push it to remote.
git tag 2021.0.2
git push origin 2021.0.2
Determine the version number for the next release.
gradlew nextInternalVersion
Use the version number to update the following files.
TimelapseApp.kt
- updateAPP_VERSION
to reflect the current version.app/build.gradle.kts
- updateversion
to reflect the current version.
Stage and commit changes.
git add .
git commit -m "build: prepare for next development version"
Operating System | Native Builds | Auto-updates | Format |
---|---|---|---|
macOS | ✅ | In-progress | .dmg |
Windows | ❌ | ❌ | - |
Linux | ❌ | ❌ | - |