forked from Vilsol/timeless-jewels
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate_assets.sh
executable file
·24 lines (18 loc) · 1.32 KB
/
update_assets.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env bash
if [ "$#" -ne 2 ]; then
echo "usage: $0 <tree_version> <game_version>"
echo ""
echo "example: $0 3.21.0 3.21"
exit 1
fi
set -ex
curl -L "https://raw.githubusercontent.com/grindinggear/skilltree-export/$1/data.json" | gzip > ./data/SkillTree.json.gz
curl -L "https://go-pob-data.pages.dev/data/$2/raw/AlternatePassiveAdditions.json.gz" > ./data/alternate_passive_additions.json.gz
curl -L "https://go-pob-data.pages.dev/data/$2/raw/AlternatePassiveSkills.json.gz" > ./data/alternate_passive_skills.json.gz
curl -L "https://go-pob-data.pages.dev/data/$2/raw/AlternateTreeVersions.json.gz" > ./data/alternate_tree_versions.json.gz
curl -L "https://go-pob-data.pages.dev/data/$2/raw/PassiveSkills.json.gz" > ./data/passive_skills.json.gz
curl -L "https://go-pob-data.pages.dev/data/$2/raw/Stats.json.gz" > ./data/stats.json.gz
curl -L "https://go-pob-data.pages.dev/data/$2/stat_translations/en/stat_descriptions.json.gz" > ./data/stat_descriptions.json.gz
curl -L "https://go-pob-data.pages.dev/data/$2/stat_translations/en/passive_skill_stat_descriptions.json.gz" > ./data/passive_skill_stat_descriptions.json.gz
curl -L "https://go-pob-data.pages.dev/data/$2/stat_translations/en/passive_skill_aura_stat_descriptions.json.gz" > ./data/passive_skill_aura_stat_descriptions.json.gz
go generate -tags tools -x ./...