diff --git a/docker-builder-data/build/script/packet/opentoonz-master.sh b/docker-builder-data/build/script/packet/opentoonz-master.sh index 500a3c7..07ae132 100644 --- a/docker-builder-data/build/script/packet/opentoonz-master.sh +++ b/docker-builder-data/build/script/packet/opentoonz-master.sh @@ -14,10 +14,10 @@ if [ "$PLATFORM" = "linux" ]; then fi pkhook_version() { - cat "$PK_DIRNAME/toonz/sources/toonz/main.cpp" \ - | grep "const.char.\*applicationFullName.=.\"OpenToonz." \ - | cut -d \" -f 2 \ - | cut -d " " -f 2 \ + local LOCAL_FILENAME="$PK_DIRNAME/toonz/sources/include/tversion.h" + LANG=C LC_NUMERIC=C printf "%0.1f.%g\\n" \ + `cat "$LOCAL_FILENAME" | grep applicationVersion -m1 | cut -d "=" -f 2 | cut -d ";" -f 1` \ + `cat "$LOCAL_FILENAME" | grep applicationRevision -m1 | cut -d "=" -f 2 | cut -d ";" -f 1` \ || return 1 }