diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2019-08-30 13:44:35 +0200 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2019-08-30 13:44:35 +0200 |
| commit | 099ed353f5ecb281a06111073d0075f81b490232 (patch) | |
| tree | dba398d5613561c8862487bdc6426e328a893986 | |
| parent | 6798d76a451e94a3e2e1c0016d9dc61a4672ed3c (diff) | |
| parent | 017687bea5644c57fd6d9b34eb661926790fec4a (diff) | |
| download | mullvadvpn-099ed353f5ecb281a06111073d0075f81b490232.tar.xz mullvadvpn-099ed353f5ecb281a06111073d0075f81b490232.zip | |
Merge branch 'set-android-build-name-on-builds'
| -rwxr-xr-x | build.sh | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -77,6 +77,7 @@ function restore_metadata_backups() { mv mullvad-cli/Cargo.toml.bak mullvad-cli/Cargo.toml || true mv mullvad-problem-report/Cargo.toml.bak mullvad-problem-report/Cargo.toml || true mv talpid-openvpn-plugin/Cargo.toml.bak talpid-openvpn-plugin/Cargo.toml || true + mv android/build.gradle.bak android/build.gradle || true mv dist-assets/windows/version.h.bak dist-assets/windows/version.h || true popd } @@ -103,6 +104,10 @@ sed -i.bak \ mullvad-problem-report/Cargo.toml \ talpid-openvpn-plugin/Cargo.toml +cp android/build.gradle android/build.gradle.bak +sed -i.bak -Ee "s/versionName \"[^\"]+\"/versionName \"$PRODUCT_VERSION\"/g" \ + android/build.gradle + SEMVER_ARRAY=($(echo $SEMVER_VERSION | sed -Ee 's/[.-]+/ /g')) SEMVER_MAJOR=${SEMVER_ARRAY[0]} SEMVER_MINOR=${SEMVER_ARRAY[1]} |
