Page 1 of 1

Git Hub, Factorio Mod Version

Posted: Sat Oct 10, 2015 11:59 pm
by Ranakastrasz
I have recently attempted to start using GitHub for my mods. However, I am unsure how to actually go about doing this.

The main issue is that I have no idea how to manage version numbers, due to how it interacts with GitHub.

I have to change the version number each time I update, which involves both the folder name and the info file. However, this prevents GitHub from being able to see the new folder. If I use my development factorio install's mod directory, then it replaces all the v13 with v14, with no information on what changes occured.

I know other people have done this, but I don't know how. I would seriously like to learn how to use automated source control, but this issue makes it infeasible.

Re: Git Hub, Factorio Mod Version

Posted: Sun Oct 11, 2015 12:21 am
by Adil
Well I've seen it being handled like this. There is releases page, along with unusuably named source code zips there can be placed any arbitrary file. So it's basically using file hosting but using github.
Rsending91 seems to ignore github sharing capabilities completelly.

Re: Git Hub, Factorio Mod Version

Posted: Sun Oct 11, 2015 12:28 am
by Zeblote
You could have your repo folder elsewhere and just make a symlink to the actual mod folder in appdata. Now you can rename it without affecting the repo at all!

Re: Git Hub, Factorio Mod Version

Posted: Sun Oct 11, 2015 8:59 am
by Choumiko
Not sure i get the problem, but i'm not versioning the root folder of the mod, so git(hub) doesn't care about the folder name:
Image

Makes the repo look like https://github.com/Choumiko/SmallFixes

Re: Git Hub, Factorio Mod Version

Posted: Sun Oct 11, 2015 10:50 am
by Ranakastrasz
Ok, those make sense, will try it out.

Re: Git Hub, Factorio Mod Version

Posted: Mon Oct 12, 2015 6:48 pm
by Afforess
The Marathon mod uses a makefile to package releases with the right name. This is another option.

https://github.com/Afforess/FactorioMod ... r/Makefile

Re: Git Hub, Factorio Mod Version

Posted: Tue Oct 20, 2015 2:08 am
by db48x
I use a Makefile as well, and mine pulls the mod name and version number from the same manifest that factorio uses; this makes new versions simple.

https://github.com/db48x/original-music ... r/Makefile