Advanced
Pre-release Version Structure
When releasing pre-release versions, it's good practice to use a dedicated version structure to not mess up the pre-release channels with the Stable
channel.
Swing Updater supports pre-release versions in the following format 0.0-LABEL-0.0
(or just 0.0-LABEL
).
Everything before the first hyphen is considered the next shortcut version to be released. The label can be any string but it's recommended to use one of the three labels Swing Updater supports (Alpha
, Beta
or Final
). The version proceeding the label is useful if you want to release multiple pre-release versions with the same label.
To sum up, if you want to release a beta version for the next minor 3.4 update, you should use something like 3.4-Beta-1
or 3.4-Beta
.
Below you can find some expected results from the Swing Updater engine when asked about two pre-release versions:
Installed | Recent | Result |
---|---|---|
1.0-alpha | 1.0-beta | Update |
1.2-final | 1.2-beta | Rollback |
1.2-beta | 1.2-beta-1 | Update |
5.4-final-3.2 | 5.4-final-3.3 | Update |
3.1.4-alpha-1.0.1 | 3.1.4-alpha | Rollback |
6.5.4-crystal | 6.5.4-diamond | Update |
8.9.0-final-8 | 8.8.9 | Rollback |
3.4-alpha | 3.4 | Update |