forked from firka/firka
Increment base build number
Since we rebased the commit count is smaller
This commit is contained in:
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@@ -98,7 +98,7 @@ pipeline {
|
|||||||
|
|
||||||
# Calculate version code based on git commits (same logic as build script)
|
# Calculate version code based on git commits (same logic as build script)
|
||||||
COMMIT_COUNT=$(git rev-list --count HEAD)
|
COMMIT_COUNT=$(git rev-list --count HEAD)
|
||||||
BASE_BUILD_NUMBER=$((1000 + COMMIT_COUNT))
|
BASE_BUILD_NUMBER=$((1300 + COMMIT_COUNT))
|
||||||
|
|
||||||
if [ "$BRANCH_NAME" = "main" ]; then
|
if [ "$BRANCH_NAME" = "main" ]; then
|
||||||
# For main branch, highest version code is BASE + 3000 (x64 build)
|
# For main branch, highest version code is BASE + 3000 (x64 build)
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ cd firka
|
|||||||
set -e
|
set -e
|
||||||
SHORT_SHA=$(git rev-parse --short HEAD)
|
SHORT_SHA=$(git rev-parse --short HEAD)
|
||||||
COMMIT_COUNT=$(git rev-list --count HEAD)
|
COMMIT_COUNT=$(git rev-list --count HEAD)
|
||||||
BASE_BUILD_NUMBER=$((1000 + COMMIT_COUNT))
|
BASE_BUILD_NUMBER=$((1300 + COMMIT_COUNT))
|
||||||
ORIGINAL_VERSION=$(grep "^version:" pubspec.yaml | sed 's/version: *//' | sed 's/+.*//')
|
ORIGINAL_VERSION=$(grep "^version:" pubspec.yaml | sed 's/version: *//' | sed 's/+.*//')
|
||||||
|
|
||||||
update_version_for_abi() {
|
update_version_for_abi() {
|
||||||
|
|||||||
Reference in New Issue
Block a user