Skip to content

Commit 669e370

Browse files
committed
cd: changed the nightly versioning format
1 parent 0d26bae commit 669e370

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/spotube-nightly.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
sudo apt-get update -y
2525
sudo apt-get install -y tar clang cmake ninja-build pkg-config libgtk-3-dev make python3-pip python3-setuptools patchelf desktop-file-utils libgdk-pixbuf2.0-dev fakeroot strace fuse libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
2626
curl -sS https://webi.sh/yq | sh
27-
yq -i '.version |= sub("\+\d+", "-nightly-")' pubspec.yaml
27+
yq -i '.version |= sub("\+\d+", "+nightly.")' pubspec.yaml
2828
yq -i '.version += strenv(GITHUB_RUN_NUMBER)' pubspec.yaml
2929
flutter config --enable-linux-desktop
3030
flutter pub get
@@ -82,7 +82,7 @@ jobs:
8282
sudo apt-get update -y
8383
sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev make python3-pip python3-setuptools patchelf desktop-file-utils libgdk-pixbuf2.0-dev fakeroot strace fuse
8484
curl -sS https://webi.sh/yq | sh
85-
yq -i '.version |= sub("\+\d+", "-nightly-")' pubspec.yaml
85+
yq -i '.version |= sub("\+\d+", "+nightly.")' pubspec.yaml
8686
yq -i '.version += strenv(GITHUB_RUN_NUMBER)' pubspec.yaml
8787
flutter pub get
8888
@@ -127,7 +127,7 @@ jobs:
127127
- name: Installing dependencies and configuring versions
128128
run: |
129129
choco install sed make yq -y
130-
yq -i '.version |= sub("\+\d+", "-nightly-")' pubspec.yaml
130+
yq -i '.version |= sub("\+\d+", "+nightly.")' pubspec.yaml
131131
yq -i '.version += strenv(GITHUB_RUN_NUMBER)' pubspec.yaml
132132
sed -i "s/%{{SPOTUBE_VERSION}}%/${{ github.run_number }}/" windows/runner/Runner.rc
133133
flutter config --enable-windows-desktop
@@ -169,7 +169,7 @@ jobs:
169169
- name: Installing dependencies and configuring versions
170170
run: |
171171
brew install yq
172-
yq -i '.version |= sub("\+\d+", "-nightly-")' pubspec.yaml
172+
yq -i '.version |= sub("\+\d+", "+nightly.")' pubspec.yaml
173173
yq -i '.version += strenv(GITHUB_RUN_NUMBER)' pubspec.yaml
174174
flutter config --enable-macos-desktop
175175
flutter pub get

lib/pages/settings/about.dart

+5-1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ class AboutSpotube extends HookConsumerWidget {
6464
"Version: v${packageInfo.version}",
6565
),
6666
const SizedBox(height: 5),
67+
PlatformText(
68+
"Build Number: ${packageInfo.buildNumber.replaceAll(".", " ")}",
69+
),
70+
const SizedBox(height: 5),
6771
InkWell(
6872
onTap: () {
6973
launchUrlString(
@@ -84,7 +88,7 @@ class AboutSpotube extends HookConsumerWidget {
8488
);
8589
},
8690
child: const PlatformText(
87-
"License: BSD-4-Clause",
91+
"License: BSD-4-Clause",
8892
),
8993
),
9094
const SizedBox(height: 5),

0 commit comments

Comments
 (0)