Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Velaron committed Oct 29, 2023
2 parents 55204c6 + 32c9402 commit d181a16
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
with:
fetch-depth: 0
submodules: recursive
- name: Fetch YaPB Graphs from DB
run: scripts/yapb_graph_dl.sh
- name: Setup Java
uses: actions/setup-java@v3
with:
Expand Down Expand Up @@ -189,4 +191,4 @@ jobs:
tag: continuous
overwrite: true
prerelease: true
release_name: CS16Client development build
release_name: CS16Client development build
25 changes: 25 additions & 0 deletions scripts/official_maps.lst
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
as_oilrig
cs_747
cs_assault
cs_backalley
cs_estate
cs_havana
cs_italy
cs_militia
cs_office
cs_siege
de_airstrip
de_aztec
de_cbble
de_chateau
de_dust
de_dust2
de_inferno
de_nuke
de_piranesi
de_prodigy
de_storm
de_survivor
de_torn
de_train
de_vertigo
21 changes: 21 additions & 0 deletions scripts/yapb_graph_dl.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

# Specify the YaPB Graph Database URL
DATABASE_URL="https://yapb.jeefo.net/graph/"

# Specify the path to the file with the maps list
LIST_FILE="scripts/official_maps.lst"

# Checking the presence of the list file
if [ ! -f $LIST_FILE ]; then
echo "File $LIST_FILE not found."
exit 1
fi

# Read the map list line by line and download graphs for them
while IFS= read -r graph_name; do
file_url="${DATABASE_URL}${graph_name}.graph"
wget "$file_url" -P "3rdparty/cs16client-extras/addons/yapb/data/graph"
done < "$LIST_FILE"

echo "YaPB Graphs have been downloaded for the maps specified in the list."

0 comments on commit d181a16

Please sign in to comment.