Last active
August 12, 2023 10:23
-
-
Save demonixis/2153d540edb646c1130a282dc7694707 to your computer and use it in GitHub Desktop.
Revisions
-
demonixis renamed this gist
Aug 12, 2023 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
demonixis revised this gist
Aug 12, 2023 . No changes.There are no files selected for viewing
-
demonixis created this gist
Aug 12, 2023 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,58 @@ #!/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