From 61169151a0447f7da06722c172ea16c5acdadac3 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 7 Jan 2024 16:17:33 -0800 Subject: [PATCH] create a fresh version file on every build Don't just append to the existing file. This was incorrect for both iOS and Android. Signed-off-by: Dirk Hohndel --- packaging/android/qmake-build.sh | 2 +- packaging/ios/build.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/android/qmake-build.sh b/packaging/android/qmake-build.sh index 564c978a7..229f3e0d2 100755 --- a/packaging/android/qmake-build.sh +++ b/packaging/android/qmake-build.sh @@ -85,7 +85,7 @@ pushd "$BUILDROOT"/subsurface-mobile-build # set up the Subsurface versions by hand CANONICALVERSION=$("$SUBSURFACE_SOURCE"/scripts/get-version) -echo "#define CANONICAL_VERSION_STRING \"$CANONICALVERSION\"" >> ssrf-version.h +echo "#define CANONICAL_VERSION_STRING \"$CANONICALVERSION\"" > ssrf-version.h CANONICALVERSION_4=$("$SUBSURFACE_SOURCE"/scripts/get-version 4) echo "#define CANONICAL_VERSION_STRING_4 \"$CANONICALVERSION_4\"" >> ssrf-version.h popd diff --git a/packaging/ios/build.sh b/packaging/ios/build.sh index 35fabfd57..ff374a12e 100755 --- a/packaging/ios/build.sh +++ b/packaging/ios/build.sh @@ -78,7 +78,7 @@ fi # set up the Subsurface versions by hand CANONICALVERSION=$("$SUBSURFACE_SOURCE"/scripts/get-version) -echo "#define CANONICAL_VERSION_STRING \"$CANONICALVERSION\"" >> "$SUBSURFACE_SOURCE"/ssrf-version.h +echo "#define CANONICAL_VERSION_STRING \"$CANONICALVERSION\"" > "$SUBSURFACE_SOURCE"/ssrf-version.h CANONICALVERSION_4=$("$SUBSURFACE_SOURCE"/scripts/get-version 4) echo "#define CANONICAL_VERSION_STRING_4 \"$CANONICALVERSION_4\"" >> "$SUBSURFACE_SOURCE"/ssrf-version.h