Skip to content

Commit

Permalink
pre-commit fix
Browse files Browse the repository at this point in the history
  • Loading branch information
florianvazelle committed Sep 7, 2023
1 parent 3bb0bf4 commit 5649f9c
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .reuse/REUSE-compliant.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions bump_version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
#
# Updates the game version for export (based on the file .version)
#

game_version=$(cat .version)
datetime=$(date '+%Y%m%d')

sed -i "s,application/file_version=.*$,application/file_version=\"${game_version}.${datetime}\",g" ./export_presets.cfg
sed -i "s,application/product_version=.*$,application/product_version=\"${game_version}.${datetime}\",g" ./export_presets.cfg
sed -i "s,application/version=.*$,application/version=\"${game_version}\",g" ./export_presets.cfg
sed -i "s,application/short_version=.*$,application/short_version=\"${game_version::-2}\",g" ./export_presets.cfg
Loading

0 comments on commit 5649f9c

Please sign in to comment.