Fix gen_pkg.sh detection.

This commit is contained in:
Ian Walton 2020-08-22 16:22:25 -04:00
parent 8327420a98
commit 48ea46e6ec

View File

@ -27,7 +27,7 @@ function get_resource_version {
current_version=$(get_resource_version jellyfin-mpv-shim)
current_version=${current_version:1}
constants_version=$(cat jellyfin_mpv_shim/constants.py | grep '^CLIENT_VERSION' | cut -d '"' -f 2)
setup_version=$(grep 'version=' setup.py | cut -d "'" -f 2)
setup_version=$(grep 'version=' setup.py | cut -d '"' -f 2)
iss_version=$(grep '^#define MyAppVersion' "Jellyfin MPV Desktop.iss" | cut -d '"' -f 2)
appdata_version=$(grep 'release version="' jellyfin_mpv_shim/integration/com.github.iwalton3.jellyfin-mpv-shim.appdata.xml | \
head -n 1 | cut -d '"' -f 2)