File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 3131 - name : Checkout repository
3232 uses : actions/checkout@v4
3333 with :
34+ fetch-depth : 0 # Fetch full git history for accurate commit count
3435 token : ${{ secrets.GITHUB_TOKEN }}
3536
3637 - name : Set up JDK 17
6768 cd mobile
6869 # Update pubspec.yaml version to use Flutter format (version+build)
6970 if [[ "$IMAGE_TAG" != "latest" ]]; then
70- # Remove 'v' prefix if present and create build number from commit hash
71+ # Remove 'v' prefix if present and create build number from git count with offset
7172 VERSION_NAME=${IMAGE_TAG#v}
72- BUILD_NUMBER=$(git rev-parse --short HEAD)
73+ BUILD_NUMBER=$(($( git rev-list --count HEAD) + 20250000) )
7374 sed -i "s/^version: .*/version: ${VERSION_NAME}+${BUILD_NUMBER}/" pubspec.yaml
7475
7576 # Also update environment.dart constants
Original file line number Diff line number Diff line change @@ -32,8 +32,8 @@ class Environment {
3232 static const _applicationName = 'Pinepods' ;
3333 static const _applicationUrl =
3434 'https://github.com/madeofpendletonwool/pinepods' ;
35- static const _projectVersion = '1.1.2 ' ;
36- static const _build = '3b63d38 ' ;
35+ static const _projectVersion = '0.8.0 ' ;
36+ static const _build = '20252158 ' ;
3737
3838 static var _agentString = userAgentAppString;
3939
Original file line number Diff line number Diff line change 11name : pinepods_mobile
22description : Pinepods Podcast Server
33
4- version : 1.1.2+3b63d38
4+ version : 0.8.0+20252158
55
66environment :
77 sdk : " >=3.8.0 <4.0.0"
You can’t perform that action at this time.
0 commit comments