Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upVersioning and releases #8
Comments
remyroy
referenced this issue
Nov 3, 2016
Closed
Added mapgen entries in Arcana and Magic Items mod #19130
This comment has been minimized.
This comment has been minimized.
|
Do you have an example I can view |
This comment has been minimized.
This comment has been minimized.
|
I just forked your repository. On the master branch, I added a I did something similar with a fictitious version 2. |
This comment has been minimized.
This comment has been minimized.
|
https://github.com/pisskop/PKs_Rebalancing/blob/master/modinfo.json#L7
Aye, so if I understand it right I still need to update it though? I dont quite get how this changes that. Will the Launcher only pick up on significant changes? |
This comment has been minimized.
This comment has been minimized.
|
I can do a lot of different things with the launcher. I can read the version value of that Github file and compare it against the same value of an installed PKs_Rebalancing mod. That is the basic stuff. There are potential issues that can be raised is if you do other modifications in your mod without changing the version value. Let's say have a version 1.0. You do a commit in pk_overmap_terrain.json without changing the version value. There will be than 2 different versions 1.0 on Github. One without the change in pk_overmap_terrain.json and one with the change in pk_overmap_terrain.json. They will be indistinguishable from the launcher perspective (and potentially to players as well). Many problems can eventually come up if you have multiple version 1.0. One of them is a player having a bug with version 1.0 and asking for support. You will not be able to tell if it's the version with the change in pk_overmap_terrain.json or the version without the change in pk_overmap_terrain.json. The solution to this is to create releases. See the releases tab of your repository. If you do releases, I can simply scan the release page and inspect the latest release for the latest version or all the other releases if someone wants to install an older one. They will all be unique which they should be. |
This comment has been minimized.
This comment has been minimized.
|
With releases you can do as many commits as you like in your master branch without having to worry to much about versions. When you are satisfied with some development, you can publish a release. Before publishing the release, bump your version number to a new higher value. |
This comment has been minimized.
This comment has been minimized.
|
https://github.com/pisskop/PKs_Rebalancing/releases Jaa. This works and is easy enough. |
This comment has been minimized.
This comment has been minimized.
|
When you do a release, you should also try to use a tag name that matches the version value. Also, it’s common practice to prefix your tag names with the letter v. For instance, if you want to release version 2.1.1, your tag name should be v2.1.1 in your release. |
This comment has been minimized.
This comment has been minimized.
|
You can revert all those releases and version changes if you want to start at a lower value too. |
This comment has been minimized.
This comment has been minimized.
|
Okay. Im excited to get the outdated mod out of coregame. |
pisskop
closed this
Nov 27, 2016
pisskop
reopened this
Nov 27, 2016
pisskop
closed this
Feb 10, 2017
This comment has been minimized.
This comment has been minimized.
|
I just noticed that you aren't adding your version number in your |
This comment has been minimized.
This comment has been minimized.
|
I should fix this |
remyroy commentedNov 1, 2016
As part of the CDDA Game Launcher, it would be nice if PKs_Rebalancing used release versions. The launcher could check what is the currently installed version of the mod, check if there is a new version on github and prompt the user to upgrade his mod or do the upgrade automatically. I'm not sure what would be the best way to achieve this.
An easy and forward looking solution would be to add a version field in modinfo.json using a comparable version scheme value. Something like
"version": "0.9"at the same level as"type": "MOD_INFO".Github offer the ability to create releases. From the launcher, it would be easy to scan those releases for the version and list the available versions. An alternative would be to create tags in your git repository (which a github release also does).
This is related to remyroy/CDDA-Game-Launcher#84