mirror of
https://github.com/YouHaveTrouble/KillTheTower.git
synced 2026-06-29 15:56:18 +00:00
update build process to include building for steam workshop
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
.idea/
|
.idea/
|
||||||
target/
|
target/
|
||||||
KillTheTower.iml
|
KillTheTower.iml
|
||||||
|
steam/uploader/*
|
||||||
|
|||||||
+31
-3
@@ -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
|
mkdir ./target
|
||||||
rm ./target/*
|
rm target/*
|
||||||
|
rm -r steam/target/*
|
||||||
godotpcktool \
|
godotpcktool \
|
||||||
--pack ./target/KillTheTower.pck \
|
--pack target/KillTheTower.pck \
|
||||||
--action add --remove-prefix staging \
|
--action add --remove-prefix staging \
|
||||||
--file staging/KillTheTower
|
--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 .
|
cd target && zip -r KillTheTower.zip .
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 349 KiB |
@@ -0,0 +1 @@
|
|||||||
|
3747590353
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"title": "KillTheTower",
|
||||||
|
"changeNote": "Update to add search tags",
|
||||||
|
"tags": ["Humor"],
|
||||||
|
"dependencies": []
|
||||||
|
}
|
||||||
@@ -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.
|
||||||
Reference in New Issue
Block a user