Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Tips for pushing builds

A topic by Newworldhorizon created Dec 18, 2018 Views: 468 Replies: 1
Viewing posts 1 to 2
(2 edits) (+1)

First let me say how much I have enjoyed using the itch app and deploying using butler. You have made the installs so much easier and frequent game updates painless to all our players and play testers. So a huge thank you.

So now a little tip from my dos days.

If you push a lot of builds and don’t want to have to retype the long butler push command with tags you can create a batch file to type it all for you. It is very easy to do. I will call this batch file wubba, so the file will be wubba.bat

So at your command prompt type

Copy con wubba.bat    

After pressing enter you can just type out your butler push command as you normally would with all the added flags

Then CTRL Z to end and save the batch file

Now anytime you need to push a build just type wubba or whatever you want to call your batch file and viola!!

I hope this helps as much as you guys have helped me.

cheers

Jeff Meade - Developer

New World Horizon

I made a butler.bat file that just calls:

C:\Users\<username>\AppData\Roaming\itch\bin\butler %*

Which is used by the upload script for my games, which call it like:

SET PROJ_SERVER=my-game
SET PROJ_EXE=MyGame
SET BUTLER_EXE=..\butler.bat

call %BUTLER_EXE% push build\%PROJ_EXE%Windows gatechgrad/%PROJ_SERVER%:win

However, in the new version of the Itch app (25), the location of butler was changed, so now I have:

C:\Users\<username>\AppData\Roaming\itch\broth\butler\versions\15.6.0\butler %*

The problem is that my butler.bat will need to be updated each time a new version of butler is released, since the version number is a part of the directory structure now.  Unfortunately, since I'm on Windows I can't just create a symbolic link.  However, it's better than having to compile butler from source myself.  There is a ".chosen-version" file, which probably could be used with some scripting magic to find the correct butler folder to use.  I'm already writing a graphical Unity build tool in Ruby (https://bitbucket.org/gatechgrad/unityhelper/src/default/UnityVersionDisplay/), so it probably wouldn't be too difficult to just go ahead and include an Itch/butler upload function as well, and just be done with the bat files.