Check out previous commits to get an overview of what a new release entails.
The following steps describe how to release a new version (e.g. 8.0.0),
for instance, from the develop branch.
What <major>.<minor>.<patch> means in a specific Areca version (8.0.0):
major(a major change or) might contain potencial or expects breaking changes.minoradds new features with expected backguard compatibility.patchfixes issues with expected backguard compatibility.
- Modify the source code.
- Test the changes.
-
Add/Update credit to the author and copyright in each modified file if the file already had that info and was originally created by Olivier PETRUCCI.
-
Update AUTHORS and COPYING files if any file was modified by a new developer.
-
Add a new entry to history.md:
history.mdshows the change log (online).## Version 8.0.0 (released on 2024-09-21) - Fixed Areca launchers. - Support for Java 8 LTS. - Fixed broken links to online documentation. - Fixed `Check for new version ...` feature. - Fixed building pipeline. - Add dependency manager. - Add some documentation for users and developers.
Annotate any known or potential break change.
-
Update VersionInfos.java:
-
Change the
BUILD_IDBUILD_IDis shown in the Areca's log to identify its build version.These commands can help to generate a new random value:
javac building/GenerateBuildId.javajava building.GenerateBuildIdReplace (v7.5)Next Areca's BUILD ID: 5682047565851761744L for src/com/application/areca/version/VersionInfos.javaBUILD_ID = 5872222636083894532L;with (v8.0.0)BUILD_ID = 5682047565851761744L;in VersionInfos.java.
-
Add a new entry to
VERSIONS:VERSIONSshows the change log in the featureHistoryinAreca Backup - About(Helpmenu >About ...orPlugins ...).release("8.0.0", 2024, 8, 21, "Fixed Areca launchers. Support for Java 8 LTS. Fixed broken links to online documentation. Fixed `Check for new version ...` feature. Fixed building pipeline. Add dependency manager. Add some documentation for users and developers.");
monthis a zero-basedint:void release(String version, int year, int intZeroBasedMonth, int day, String changeLog);
-
-
Update
version.xml.version.xmlallows Areca to discover the new released version with the featureCheck for new version ...<?xml version="1.0" encoding="UTF-8"?> <versiondata id="8.0.0" date="2024-8-21" url="https://github.com/bugtamer/areca-backup/releases" description="Fixed Areca launchers. Support for Java 8 LTS. Fixed broken links to online documentation. Fixed `Check for new version ...` feature. Fixed building pipeline. Add dependency manager. Add some documentation for users and developers." />
idis the release version.dateis the release date (month is one-based).urlis where the Areca's user can download the new release version.descriptionis the list of changes that includes this new version.
-
Update the value of
VERSION_URLinArecaURLs.javaif the location whereversion.xmlis hosted has changed its location (e.g. due to a repo fork). -
Update
builds.csvto trackBUILD_IDs (month is one-based integer). -
Commit changes to
developbranch:
git commit --message "Version 8.0.0" -
Upload release bundles to the
urlpointed inversion.xml. -
Release the source code changes
- Switch to
releasebranch:
git checkout release - Update local
releasebranch:
git pull - Merge
developinto thereleasebranch with a merge squash:
git merge --squash develop - Commit the merge squash:
git commit --message "Version 8.0.0 - Fixed Areca launchers. - Support for Java 8 LTS. - Fixed broken links to online documentation. - Fixed `Check for new version ...` feature. - Fixed building pipeline. - Add dependency manager. - Add some documentation for users and developers."
- Annotated tag:
git tag -a v8.0.0 --message "Version 8.0.0 - Fixed Areca launchers. - Support for Java 8 LTS. - Fixed broken links to online documentation. - Fixed `Check for new version ...` feature. - Fixed building pipeline. - Add dependency manager. - Add some documentation for users and developers."
- Upload local commits to the remote repo:
git push --follow-tags - Switch to
developbranch:
git checkout develop
- Switch to
-
Update the Areca Backup official site if necessary.