diff --git a/.gitignore b/.gitignore index aa8b180..9b17fcc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .idea/ target/ KillTheTower.iml +steam/uploader/* diff --git a/scripts/build.sh b/scripts/build.sh index c173270..a0fca05 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -1,9 +1,37 @@ +#!/bin/bash + +publish_steam=false + +while [[ $# -gt 0 ]]; do + case $1 in + --publish-steam-workshop) + publish_steam=true + shift + ;; + *) + echo "Unknown option: $1" + shift + ;; + esac +done + mkdir ./target -rm ./target/* +rm target/* +rm -r steam/target/* godotpcktool \ - --pack ./target/KillTheTower.pck \ + --pack target/KillTheTower.pck \ --action add --remove-prefix staging \ --file staging/KillTheTower -cp ./KillTheTower.json ./target/KillTheTower.json +cp ./KillTheTower.json target/KillTheTower.json + +mkdir -p steam/target/ +mkdir -p steam/target/content +cp -r steam/meta/* steam/target +cp -r target/KillTheTower.* steam/target/content + +if $publish_steam; then + echo "Publishing the mod to steam workshop" + ./steam/uploader/ModUploader upload -w steam/target +fi cd target && zip -r KillTheTower.zip . diff --git a/steam/meta/image.png b/steam/meta/image.png new file mode 100644 index 0000000..729036a Binary files /dev/null and b/steam/meta/image.png differ diff --git a/steam/meta/mod_id.txt b/steam/meta/mod_id.txt new file mode 100644 index 0000000..766bf3a --- /dev/null +++ b/steam/meta/mod_id.txt @@ -0,0 +1 @@ +3747590353 diff --git a/steam/meta/workshop.json b/steam/meta/workshop.json new file mode 100644 index 0000000..0d835c5 --- /dev/null +++ b/steam/meta/workshop.json @@ -0,0 +1,6 @@ +{ + "title": "KillTheTower", + "changeNote": "Update to add search tags", + "tags": ["Humor"], + "dependencies": [] +} diff --git a/steam/uploader/uploader.md b/steam/uploader/uploader.md new file mode 100644 index 0000000..f383152 --- /dev/null +++ b/steam/uploader/uploader.md @@ -0,0 +1,2 @@ +Get latest uploader from [here](https://github.com/megacrit/sts2-mod-uploader/releases), unzip it in this +directory . You should see `ModUploader` binary.