automate publication to itch.io

This commit is contained in:
Peter Tillemans 2024-05-24 19:25:52 +02:00
parent 6685838e90
commit e71b0bb158
2 changed files with 37 additions and 2 deletions

View file

@ -36,7 +36,7 @@ let the _others_ fall in so you can pass over their head.
So now, go out, collect the keys and maintain a healthy diet! So now, go out, collect the keys and maintain a healthy diet!
* Game Plan [19/22] * Game Plan [20/22]
- [X] start project organization - [X] start project organization
- [X] select some assets to start with - [X] select some assets to start with
@ -50,7 +50,7 @@ So now, go out, collect the keys and maintain a healthy diet!
- [X] wrap the script to find the libraries - [X] wrap the script to find the libraries
- [X] ensure the assets can be found by the render packages - [X] ensure the assets can be found by the render packages
- [X] upload to itch.io - [X] upload to itch.io
- [ ] automate upload to itch.io - [X] automate upload to itch.io
- [X] create other's AI - [X] create other's AI
- [X] add keys and portal - [X] add keys and portal
- [X] make other avoid each other - [X] make other avoid each other

35
publish.sh Executable file
View file

@ -0,0 +1,35 @@
ITCH_CHANNEL=snamellit/Bloatrunner
if [[ ! -f Makefile ]]; then
make distclean
fi
./bootstrap.sh
./configure GUILE=$(which guile)
make -j16
make dist
SOURCETAR=$(ls bloatrunner-*.tar.gz | head -n 1)
if [ -f "$SOURCETAR" ]; then
echo "Found source tarball $SOURCE"
BASENAME=$(basename $SOURCETAR .tar.gz)
echo releasing $BASENAME
butler push $SOURCETAR $ITCH_CHANNEL:source
TARBALL=$(guix pack -R -Sbloatrunner=bin -L .guix/modules bloatrunner)
echo created $TARBALL
TARGETNAME=/tmp/$BASENAME-linux-x86_64.tar.gz
echo copy $TARBALL to $TARGETNAME
rm -f $TARGETNAME
cp $TARBALL $TARGETNAME
echo push $TARGETNAME
butler push $TARGETNAME $ITCH_CHANNEL:linux-x86_64
else
echo "No source tarball found"
exit 1
fi