mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 19:23:24 +00:00
Update Subsurface-mobile version to 1.0.0
And make sure the version displayed for Android includes both that version and the build version, which is our regular canonical 4 part version number - so this release will be something like "1.0.0 (4.5.2.1047)" Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
4ceb65938a
commit
6be0800704
2 changed files with 6 additions and 3 deletions
|
@ -10,7 +10,7 @@ execute_process(
|
|||
OUTPUT_VARIABLE CANONICAL_VERSION_STRING
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
)
|
||||
set(MOBILE_VERSION_STRING "0.93")
|
||||
set(MOBILE_VERSION_STRING "1.0.0")
|
||||
|
||||
configure_file(${SRC} ${DST} @ONLY)
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||
|
|
|
@ -355,10 +355,13 @@ cmake $MOBILE_CMAKE \
|
|||
sed -i -e "s/-lcrypto//g" CMakeFiles/subsurface-mobile.dir/link.txt
|
||||
|
||||
# set up the version number
|
||||
SUBSURFACE_MOBILE_VERSION=$(grep MOBILE_VERSION_STRING ssrf-version.h | awk "{ print \$3 }" )
|
||||
|
||||
SUBSURFACE_MOBILE_VERSION=$(grep MOBILE_VERSION_STRING ssrf-version.h | awk '{ print $3 }' | tr -d \" )
|
||||
SUBSURFACE_MOBILE_VERSION="${SUBSURFACE_MOBILE_VERSION} ($(grep CANONICAL_VERSION_STRING ssrf-version.h | awk '{ print $3 }' | tr -d \"))"
|
||||
|
||||
rm -rf android-mobile
|
||||
cp -a $SUBSURFACE_SOURCE/android-mobile .
|
||||
sed -i -e "s/@SUBSURFACE_MOBILE_VERSION@/$SUBSURFACE_MOBILE_VERSION/;s/@BUILD_NR@/$BUILD_NR/" android-mobile/AndroidManifest.xml
|
||||
sed -i -e "s/@SUBSURFACE_MOBILE_VERSION@/\"$SUBSURFACE_MOBILE_VERSION\"/;s/@BUILD_NR@/$BUILD_NR/" android-mobile/AndroidManifest.xml
|
||||
|
||||
# now build Subsurface and use the rest of the command line arguments
|
||||
make $@
|
||||
|
|
Loading…
Add table
Reference in a new issue