Jump to content

Github, how to build a Release zip file


Recommended Posts

I'm new to github and trying to find a tutorial or advice on the easiest way to create my release zip file. Currently I'm building it in my file browser, zipping it then uploading the zip when I create a new release.

Since Github is letting me update my files I'm guessing there might be a tool that tells Github to bundle all my changes up into a new release. I just can't find it.

Thanks!

Edited by Tyko
Link to comment
Share on other sites

You are doing it the way I do. I just automated part of the process, but essentially, it's what you are doing.

When you create a Release (and a TAG), GitHub also creates automatically a Source Code "tarrbal" (and a zip too). If all what your add-on contains is assets (textures, sounds, etc) and CFGs, (and readmes, etc) you can use that as distribution files and save some work. The filename is a little weird for a distribution file, but it will do, :D 

Link to comment
Share on other sites

  • 3 weeks later...

For creating a release archive from a git repository, I use git archive. At its simplest, from the root of your repository, you can run something like this to create a zip file without all of the extra repository junk.

git archive -o ../MyAwesomeMod-version.zip --prefix=MyAwesomeMod HEAD

Things get more complicated if you're building a plugin. For that, probably best to just write a script that assembles all the bits you need in a staging directory and zips it up.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...