summaryrefslogtreecommitdiff
path: root/bin/itch.sh
blob: 8ab52793b760a78462e72f43a39dbb615904651b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

VERSION=$(git describe --tags --abbrev=0)

godot --headless --rendering-driver opengl3 --export-release "Linux/X11" "exports/TicTacTux"
godot --headless --rendering-driver opengl3 --export-release "macOS" "exports/TicTacTux.zip"
godot --headless --rendering-driver opengl3 --export-release "Windows Desktop" "exports/TicTacTux.exe"

cd exports
zip TicTacTux-linux.zip TicTacTux TicTacTux.pck
mv TicTacTux.zip TicTacTux-osx.zip
zip TicTacTux-win.zip TicTacTux.exe TicTacTux.pck
cd ..

butler push exports/TicTacTux-linux.zip dweipert/tictactux:linux --userversion="$VERSION"
butler push exports/TicTacTux-osx.zip dweipert/tictactux:osx --userversion="$VERSION"
butler push exports/TicTacTux-win.zip dweipert/tictactux:win --userversion="$VERSION"