1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00
PySolFC/buildozer/aversion
lufebe16 34292e2743 Kivy/android:
- version 3.0.0 metadata updates
- fixed card flip duration
2024-04-04 19:30:48 +02:00

19 lines
471 B
Bash
Executable file

#!/bin/bash
appdir=""
if [ "$1" ]
then
appdir=$1
else
exit 1
fi
# current android version mumber.
version="3.0.0"
sversion=$(echo $version | sed -E "s:(.*)\..*:\1:")
tuple=$(echo $version | sed -E "s:(.*)\.(.*)\.(.*):(\1, \2, \3):")
# patch different version info accordingly.
sed -E "s:VERSION_TUPLE =.*:VERSION_TUPLE = $tuple:" -i $appdir/pysollib/settings.py
sed -E "s:(.*\(')dev(',.*):\1fc-$sversion\2:" -i $appdir/pysollib/gamedb.py
echo "VERSION = $version"