Fix mac bundle version string.

On mac, the git-version.cpp to look at at bundle time is the one in build.
This commit is contained in:
Henrik Rydgård 2023-08-08 12:11:37 +02:00
parent 527e16c17a
commit 1f65557168

View File

@ -35,11 +35,7 @@ install_name_tool -rpath "${RPATH}" "@executable_path/../Frameworks" "${PPSSPPSD
echo "Done."
GIT_VERSION_LINE=$(grep "PPSSPP_GIT_VERSION = " "$(dirname "${0}")/../git-version.cpp")
# Hack, need to do something better here.
if [ -z "$GIT_VERSION_LINE" ]; then
GIT_VERSION_LINE=$(grep "PPSSPP_GIT_VERSION = " "$(dirname "${0}")/../build/git-version.cpp")
fi
GIT_VERSION_LINE=$(grep "PPSSPP_GIT_VERSION = " "$(dirname "${0}")/../build/git-version.cpp")
echo "Setting version to '${GIT_VERSION_LINE}'..."
SHORT_VERSION_MATCH='.*"v([0-9\.]+(-[0-9]+)?).*";'