Last active
August 12, 2023 10:23
-
-
Save demonixis/2153d540edb646c1130a282dc7694707 to your computer and use it in GitHub Desktop.
Itch.io deploy script using Butler for DVR Simulator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
readonly ITCH_GAME_URL="$ITCH_USER/$ITCH_GAME" | |
readonly FOLDER_NAME="DVR-Simulator" | |
readonly GAME_NAME="DVR Simulator" | |
readonly BUTLER_PATH="../__Tools__/Butler/Butler.exe" | |
echo "Itch.io deployer for $GAME_NAME" | |
echo "Available targets: ue5, win64, win64-trial, linux, linux-trial, osx, osx-trial, quest, quest-trial, android, all, standalone" | |
read -p "Version: " gameVersion | |
read -p "Targets: " targets | |
function CopyDocs() { | |
rm -rf ./$FOLDER_NAME-$1/Docs | |
cp -R Docs $FOLDER_NAME-$1/Docs | |
} | |
if [[ $targets == "ue5" ]]; then | |
CopyDocs "Win64" | |
./$BUTLER_PATH push $FOLDER_NAME-Win64-ue5 $ITCH_GAME_URL:windows-x64-ue5 --userversion $gameVersion | |
fi | |
if [[ $targets == "all" || $targets == "standalone" || $targets =~ "win64-trial" ]]; then | |
CopyDocs "Win64" | |
./$BUTLER_PATH push $FOLDER_NAME-Win64-Trial $ITCH_GAME_URL:windows-x64-trial --userversion $gameVersion | |
elif [[ $targets == "all" || $targets == "standalone" || $targets =~ "win64" ]]; then | |
CopyDocs "Win64" | |
./$BUTLER_PATH push $FOLDER_NAME-Win64 $ITCH_GAME_URL:windows-x64 --userversion $gameVersion | |
fi | |
if [[ $targets == "all" || $targets == "standalone" || $targets =~ "linux-trial" ]]; then | |
CopyDocs "Linux" | |
./$BUTLER_PATH push $FOLDER_NAME-Linux-Trial $ITCH_GAME_URL:linux-trial --userversion $gameVersion | |
elif [[ $targets == "all" || $targets == "standalone" || $targets =~ "linux" ]]; then | |
CopyDocs "Linux" | |
./$BUTLER_PATH push $FOLDER_NAME-Linux $ITCH_GAME_URL:linux --userversion $gameVersion | |
fi | |
if [[ $targets == "all" || $targets == "standalone" || $targets =~ "osx-trial" ]]; then | |
CopyDocs "Macos" | |
./$BUTLER_PATH push $FOLDER_NAME-Macos-Trial $ITCH_GAME_URL:osx-trial --userversion $gameVersion | |
elif [[ $targets == "all" || $targets == "standalone" || $targets =~ "osx" ]]; then | |
CopyDocs "Macos" | |
./$BUTLER_PATH push $FOLDER_NAME-Macos $ITCH_GAME_URL:osx --userversion $gameVersion | |
fi | |
if [[ $targets == "all" || $targets =~ "quest-trial" ]]; then | |
CopyDocs "Quest" | |
./$BUTLER_PATH push $FOLDER_NAME-Quest-Trial $ITCH_GAME_URL:android-quest-trial --userversion $gameVersion | |
elif [[ $targets == "all" || $targets =~ "quest" ]]; then | |
CopyDocs "Quest" | |
./$BUTLER_PATH push $FOLDER_NAME-Quest $ITCH_GAME_URL:android-quest --userversion $gameVersion | |
fi | |
if [[ $targets == "all" || $targets =~ "android" ]]; then | |
CopyDocs "Android" | |
./$BUTLER_PATH push $FOLDER_NAME-Android $ITCH_GAME_URL:android --userversion $gameVersion | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment