The Gang Garrison 2 Forum

Gang Garrison Development => Development Discussion => Topic started by: MedO on January 06, 2011, 07:52:51 am

Title: GG2 release checklist
Post by: MedO on January 06, 2011, 07:52:51 am
This is ye olde faithful release checklist that I have used for a long time now, moved into the open from the old Development board. I updated it for doing beta releases just now. Some of the points suggest that someone else than me might prepare releases at some point... well, it never happened so far. :P

Update: Now adapted for the new updater tech we just rolled out, which makes the old "gg2update.exe" SFX archive obsolete.

I guess this is mostly useful for Wareya (who has betadev access) and me right now, but who knows.

Preparing the .gmk file

Git repository

Preparing the release .zip file

It's also possible to prepare it from scratch by copying files from the git repo:

Prepare devmessages.txt
There are two devmessages.txt files, only update the appropriate one. The release file is here (http://www.ganggarrison.com/devmessages.txt), the beta one is here (http://www.ganggarrison.com/devmessages_beta.txt). Change the version number to the one you put in the VERSION constant field. Update the description with a small list of changes. Use # for newline (GM style strings). Caution: The file has unix line endings (there is a newline after "Version"). Also beware of the fact that devmessages.txt specifies menu backgrounds as well. Don't touch that part unless you're changing the background too.

Prepare download.php
Only for release. You need ftp or shell access to the server for this one. Download the source of the download.php file from the main web directory (httpdocs). Change the filename in the $download_URL_HTTP variable (at the top) to the filename of the new zip file. The server is a Linux system, so the filename is case sensitive. If you don't have server access do nothing.

Prepare downloads.html
Only for release. Same as above, get the source code for this file from the httpdocs directory. On line 40 there is this:
<div class="dl-header">Gang Garrison 2 2.x.x</div>
Correct as appropriate.

Upload and cleanup
For beta, copy the gg2update_beta.zip and devmessages_beta.txt into the betadev home directory (preferably in that order).

For release, if you have access to the server, copy the files prepared above to the httpdocs directory in the following order:

static/Gang Garrison 2 vX.Y.Z.zip
download.php
devmessages.txt
downloads.html

Move the old zip file into the httpdocs/oldversions folder afterwards. If you want to reset the download counter, rename the file httpdocs/dlcounter.1234 to httpdocs/dlcounter.0 and record the old number in the file historic_values in the same directory.

If you don't have server access, send all the files to a dev who can do it. If you prepared everything as far as described above he should be able to update in a matter of minutes.

Commit website changes in git
If you're a dev and have ganggarrison.com access, SSH in then cd into /var/www/ganggarrison and commit the changes to the html files.

Make Announcements post
Only for release. Copy the source of the previous version's announcement. It needs to have the "Previous/Current/Next" table at the top (make sure it's correct), the name of the release, the changelog, and the download link. If you are able to, edit the previous version's post to add the Next link.

Update GameJolt
Only for release. Upload the zip file as a new package on GameJolt (https://gamejolt.com/dashboard/games/278094/packages/305785). Tick Windows as platform.
Title: Re: GG2 release checklist
Post by: ajf on July 08, 2013, 09:44:23 am
Why devmessages.txt then download.php? Makes more sense to do the latter first, otherwise people will be told about an update and then download an old version!
Title: Re: GG2 release checklist
Post by: MedO on July 08, 2013, 01:39:38 pm
Oh, good catch. It was in that order because it used to be gg2update.exe first.

Not that it really matters much, aside from "the large update file first" because all the othes will go up at roughly the same time anyway :)
Title: Re: GG2 release checklist
Post by: ajf on October 01, 2013, 05:50:11 pm
With the new site design, it's news.html and downloads.html that need editing, index.html doesn't.

We should also remember to edit news.html when we make new announcements...
Title: Re: GG2 release checklist
Post by: ajf on October 05, 2013, 08:10:41 am
Edited to reflect new release process. More complex than before. Oh well.
Title: Re: GG2 release checklist
Post by: Phantom Brave on November 06, 2013, 10:42:38 am
Since it has different standards than release, I'll make a stripped down
Beta release guide

Preparing the .gmk file

Git repository

Preparing the release .zip file

It's also possible to prepare it from scratch by copying files from the git repo:

Prepare devmessages.txt
There are two devmessages.txt files, only update the appropriate one. The release file is here (http://www.ganggarrison.com/devmessages.txt), the beta one is here (http://www.ganggarrison.com/devmessages_beta.txt). Change the version number to the one you put in the VERSION constant field. Update the description with a small list of changes. Use # for newline (GM style strings). Caution: The file has unix line endings (there is a newline after "Version"). Also beware of the fact that devmessages.txt specifies menu backgrounds as well. Don't touch that part unless you're changing the background too.

Prepare Dev Discissions post
Make a new non-sticky thread in Developer Discussion containing the beta version number in the title, the changelog in the body, and a download link.

Upload and cleanup
Copy the gg2update_beta.zip and devmessages_beta.txt into the betadev home directory (preferably in that order). Edit the Dev Discussions post to include the link.
Title: Re: GG2 release checklist
Post by: ajf on March 29, 2014, 07:35:19 pm
Since I made news.html finally not need to be manually edited, I've removed that (horrible) step.