cd: changed the nightly versioning format

This commit is contained in:
Kingkor Roy Tirtho 2023-02-07 20:00:51 +06:00
parent 0d26bae037
commit 669e3706da
2 changed files with 9 additions and 5 deletions

View File

@ -24,7 +24,7 @@ jobs:
sudo apt-get update -y
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
curl -sS https://webi.sh/yq | sh
yq -i '.version |= sub("\+\d+", "-nightly-")' pubspec.yaml
yq -i '.version |= sub("\+\d+", "+nightly.")' pubspec.yaml
yq -i '.version += strenv(GITHUB_RUN_NUMBER)' pubspec.yaml
flutter config --enable-linux-desktop
flutter pub get
@ -82,7 +82,7 @@ jobs:
sudo apt-get update -y
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
curl -sS https://webi.sh/yq | sh
yq -i '.version |= sub("\+\d+", "-nightly-")' pubspec.yaml
yq -i '.version |= sub("\+\d+", "+nightly.")' pubspec.yaml
yq -i '.version += strenv(GITHUB_RUN_NUMBER)' pubspec.yaml
flutter pub get
@ -127,7 +127,7 @@ jobs:
- name: Installing dependencies and configuring versions
run: |
choco install sed make yq -y
yq -i '.version |= sub("\+\d+", "-nightly-")' pubspec.yaml
yq -i '.version |= sub("\+\d+", "+nightly.")' pubspec.yaml
yq -i '.version += strenv(GITHUB_RUN_NUMBER)' pubspec.yaml
sed -i "s/%{{SPOTUBE_VERSION}}%/${{ github.run_number }}/" windows/runner/Runner.rc
flutter config --enable-windows-desktop
@ -169,7 +169,7 @@ jobs:
- name: Installing dependencies and configuring versions
run: |
brew install yq
yq -i '.version |= sub("\+\d+", "-nightly-")' pubspec.yaml
yq -i '.version |= sub("\+\d+", "+nightly.")' pubspec.yaml
yq -i '.version += strenv(GITHUB_RUN_NUMBER)' pubspec.yaml
flutter config --enable-macos-desktop
flutter pub get

View File

@ -64,6 +64,10 @@ class AboutSpotube extends HookConsumerWidget {
"Version: v${packageInfo.version}",
),
const SizedBox(height: 5),
PlatformText(
"Build Number: ${packageInfo.buildNumber.replaceAll(".", " ")}",
),
const SizedBox(height: 5),
InkWell(
onTap: () {
launchUrlString(