Skip to content

Commit

Permalink
Merge pull request #604 from Wolfy76700:game/pbrave
Browse files Browse the repository at this point in the history
PBRAVE: Added Dvesha
  • Loading branch information
Wolfy76700 authored Nov 21, 2024
2 parents d39f6c6 + 127e24c commit 4de9aa6
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 16 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/update_assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,21 @@ jobs:
with:
python-version: "3.9" #install the python needed

# Update version numbers
- name: Update version numbers
run: |
pip install requests
python scripts/update_calver.py
git config --global user.name 'Buildbot'
git config --global user.email '[email protected]'
git add .
if ! git diff --cached --quiet; then
git commit -m "Update version number of changed packs"
git push origin main
else
echo "No changes to commit"
fi
# Optimize images
- name: Optimize images
run: |
Expand Down Expand Up @@ -68,21 +83,6 @@ jobs:
echo "No changes to commit"
fi
# Update version numbers
- name: Update version numbers
run: |
pip install requests
python scripts/update_calver.py
git config --global user.name 'Buildbot'
git config --global user.email '[email protected]'
git add .
if ! git diff --cached --quiet; then
git commit -m "Update version number of changed packs"
git push origin main
else
echo "No changes to commit"
fi
# Generate StartGG config insights
- name: Generate StartGG config insights
run: |
Expand Down
6 changes: 6 additions & 0 deletions games/pbrave/base_files/icon/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@
"x": 1600,
"y": 1468
}
},
"Dvesha": {
"0": {
"x": 1616,
"y": 2608
}
}
},
"average_size": {
Expand Down
Binary file added games/pbrave/base_files/icon/file_Dvesha_00.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added games/pbrave/full/Dvesha_00.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions games/pbrave/full/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@
"x": 2892,
"y": 1670
}
},
"Dvesha": {
"0": {
"x": 4084,
"y": 3168
}
}
},
"uncropped_edge": [
Expand Down
12 changes: 11 additions & 1 deletion scripts/update_calver.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ def run_linux_command(command: str):
return -1, '', str(e)


_, LATEST_TAG, _ = run_linux_command("git describe --tags --abbrev=0")
LATEST_TAG = None
with open(f"{FILE_DIR}/last_tag.txt", "r", encoding="utf-8") as f:
LATEST_TAG = f.read().strip()
_, LIST_CHANGED_FILES, _ = run_linux_command(f"git diff --name-only {LATEST_TAG} head")

list_config_paths = []
Expand All @@ -46,6 +48,14 @@ def run_linux_command(command: str):
if (config_path not in list_config_paths) and (os.path.isfile(config_path)):
print(f"Detected change in pack {dir_name}")
list_config_paths.append(config_path)
if "base_files" in dir_name:
while not dir_name.endswith("base_files"):
dir_name = "/".join(dir_name.split("/")[:-1])
config_path = f"{dir_name}/config.json"
if (config_path not in list_config_paths) and (os.path.isfile(config_path)):
print(f"Detected change in pack {dir_name}")
list_config_paths.append(config_path)


for config_path in list_config_paths:
with open(config_path, "rt", encoding="utf-8") as config_file:
Expand Down

0 comments on commit 4de9aa6

Please sign in to comment.