The-Powder-Toy/resources
Tamás Bálint Misius 7fc3fb4c15
Sort out version info
The idea is to have the following version information included:

 - 1-component save version
   - 2-component under the hood but the minor component shouldn't ever change again
   - see currentVersionMajor in GameSave.cpp
 - 1-component website API version
   - again, currently 2-component because that's what the website code expects
   - see apiVersion in requestmanager/Common.cpp
 - 2-component display version, entirely cosmetic
   - exposed as meson options display_version_major and display_version_minor
   - see APP_VERSION in Config.template.h
 - 1-component business logic version aka build number
   - exposed as meson option build_num
   - see APP_VERSION in Config.template.h
 - variant id aka mod id, tightly coupled with the build number
   - exposed as meson option mod_id
   - see MOD_ID in Config.template.h
 - display and business logic versions repeated for the upstream
   - exposed as meson options upstream_version_major, upstream_version_minor, and upstream_build_num
   - we'll have to update these alongside display_version_major, display_version_minor, and build_num, but mod owners can just merge our changes
   - see UPSTREAM_VERSION in Config.template.h
 - update channel, makes sense in the context of the variant (and yes, this would later enable mod snapshots)
   - currently not exposed as a meson option but derived from meson options snapshot and mod_id
   - see IDENT_RELTYPE in Config.template.h
 - vcs tag aka git commit hash
   - set by build.sh in ghactions workflows
   - see VCS_TAG in VcsTag.tempalte.h

Rather importantly, the save and website API versions are now allowed to change independently of the display version.

These changes also allowed me to remove the ugly sed hacks in build.sh used to provision some manifest files; they are now provisioned by meson.

Also add version info for windows and android.
2023-10-19 12:51:03 +02:00
..
generated_icons Unify icons 2022-12-18 15:00:08 +01:00
appdata.template.xml Sort out version info 2023-10-19 12:51:03 +02:00
font.bz2 Center more icons. 2023-10-08 12:25:14 -04:00
icon_cps.svg Unify icons 2022-12-18 15:00:08 +01:00
icon_exe.svg Unify icons 2022-12-18 15:00:08 +01:00
Info.template.plist Sort out version info 2023-10-19 12:51:03 +02:00
MakeIco.cpp Unify icons 2022-12-18 15:00:08 +01:00
meson.build Sort out version info 2023-10-19 12:51:03 +02:00
powder-res.template.rc Sort out version info 2023-10-19 12:51:03 +02:00
powder.man Add a man page 2019-12-21 17:38:33 +01:00
powder.template.desktop Clean up the feature line a bit 2022-12-17 13:07:07 +01:00
resource.h Preprocessor purge round 1: simulation constants 2023-01-27 09:26:36 +01:00
save_local.png Convert images.cpp to actual images 2022-12-25 11:09:06 +01:00
save_online.png Convert images.cpp to actual images 2022-12-25 11:09:06 +01:00
save.xml Clean up Client::DoInstallation 2022-09-08 06:54:35 +02:00
ToArray.cpp Merge data/ into resources/ 2022-12-25 11:13:46 +01:00
winutf8.xml Request UTF-8 code page at startup on windows 2023-05-13 14:54:50 +02:00