update build process to include building for steam workshop

This commit is contained in:
2026-06-19 15:39:35 +02:00
parent c45f749d2e
commit 0722b9ac9c
6 changed files with 41 additions and 3 deletions
+1
View File
@@ -1,3 +1,4 @@
.idea/
target/
KillTheTower.iml
steam/uploader/*
+31 -3
View File
@@ -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 .
Binary file not shown.

After

Width:  |  Height:  |  Size: 349 KiB

+1
View File
@@ -0,0 +1 @@
3747590353
+6
View File
@@ -0,0 +1,6 @@
{
"title": "KillTheTower",
"changeNote": "Update to add search tags",
"tags": ["Humor"],
"dependencies": []
}
+2
View File
@@ -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.