diff --git a/.github/workflows/spotube-release.yml b/.github/workflows/spotube-release.yml index f446af7c..4f9d1528 100644 --- a/.github/workflows/spotube-release.yml +++ b/.github/workflows/spotube-release.yml @@ -1,10 +1,8 @@ name: Spotube Release on: - workflow_dispatch: - inputs: - tag: - description: The tag to release - required: true + release: + types: + - published jobs: publish_chocolatey: @@ -16,18 +14,17 @@ jobs: repository: KRTirtho/flutter_distributor ref: deb-implementation path: build/flutter_distributor - # - name: Get latest tag - # id: tag - # uses: dawidd6/action-get-tag@v1 - # with: - # # Optionally strip `v` prefix - # strip_v: true + - name: Get latest tag + id: tag + uses: dawidd6/action-get-tag@v1 + with: + strip_v: true # Replace Version in files - run: | choco install sed make -y - sed -i "s/%{{SPOTUBE_VERSION}}%/${{ github.event.inputs.tag }}/" windows/runner/Runner.rc - sed -i "s/%{{SPOTUBE_VERSION}}%/${{ github.event.inputs.tag }}/" choco-struct/tools/VERIFICATION.txt - sed -i "s/%{{SPOTUBE_VERSION}}%/${{ github.event.inputs.tag }}/" choco-struct/spotube.nuspec + sed -i "s/%{{SPOTUBE_VERSION}}%/${{ steps.tag.outputs.tag }}/" windows/runner/Runner.rc + sed -i "s/%{{SPOTUBE_VERSION}}%/${{ steps.tag.outputs.tag }}/" choco-struct/tools/VERIFICATION.txt + sed -i "s/%{{SPOTUBE_VERSION}}%/${{ steps.tag.outputs.tag }}/" choco-struct/spotube.nuspec # Build Windows Executable - uses: subosito/flutter-action@v2.2.0 @@ -67,11 +64,11 @@ jobs: runs-on: macos-11 steps: - uses: actions/checkout@v2 - # - name: Get latest tag - # uses: dawidd6/action-get-tag@v1 - # id: tag - # with: - # strip_v: true + - name: Get latest tag + uses: dawidd6/action-get-tag@v1 + id: tag + with: + strip_v: true - uses: subosito/flutter-action@v2 with: cache: true @@ -82,23 +79,23 @@ jobs: - run: du -sh build/macos/Build/Products/Release/spotube.app - run: npm install -g appdmg # using a versioned path for compatibility in gensums - - run: mkdir -p build/${{ github.event.inputs.tag }} - - run: appdmg appdmg.json build/${{ github.event.inputs.tag }}/Spotube-macos-x86_64.dmg + - run: mkdir -p build/${{ steps.tag.outputs.tag }} + - run: appdmg appdmg.json build/${{ steps.tag.outputs.tag }}/Spotube-macos-x86_64.dmg - uses: actions/upload-artifact@v2 with: name: Spotube-Macos-Bundle path: | - build/${{ github.event.inputs.tag }}/Spotube-macos-x86_64.dmg + build/${{ steps.tag.outputs.tag }}/Spotube-macos-x86_64.dmg publish_linux: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - # - name: Get latest tag - # id: tag - # uses: dawidd6/action-get-tag@v1 - # with: - # strip_v: true + - name: Get latest tag + id: tag + uses: dawidd6/action-get-tag@v1 + with: + strip_v: true - uses: subosito/flutter-action@v2 with: cache: true @@ -114,7 +111,7 @@ jobs: mv appimage-builder-x86_64.AppImage /usr/local/bin/appimage-builder # replacing & adding new release version with older version - run: | - sed -i 's|%{{APPDATA_RELEASE}}%||' linux/com.github.KRTirtho.Spotube.appdata.xml + sed -i 's|%{{APPDATA_RELEASE}}%||' linux/com.github.KRTirtho.Spotube.appdata.xml - run: | flutter config --enable-linux-desktop @@ -136,11 +133,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - # - name: Get latest tag - # id: tag - # uses: dawidd6/action-get-tag@v1 - # with: - # strip_v: true + - name: Get latest tag + id: tag + uses: dawidd6/action-get-tag@v1 + with: + strip_v: true - uses: subosito/flutter-action@v2 with: cache: true @@ -187,11 +184,11 @@ jobs: with: name: Spotube-Android-Bundle path: ./Spotube-Android-Bundle - # - name: Get latest tag - # id: tag - # uses: dawidd6/action-get-tag@v1 - # with: - # strip_v: true + - name: Get latest tag + id: tag + uses: dawidd6/action-get-tag@v1 + with: + strip_v: true - run: sudo apt-get install tree -y # generating checksums for all the binary - run: | @@ -209,7 +206,7 @@ jobs: - uses: ncipollo/release-action@v1 with: token: ${{ secrets.GITHUB_TOKEN }} - tag: v${{ github.event.inputs.tag }} + tag: v${{ steps.tag.outputs.tag }} omitBodyDuringUpdate: true omitNameDuringUpdate: true omitPrereleaseDuringUpdate: true @@ -236,17 +233,17 @@ jobs: - uses: actions/checkout@v3 with: path: spotube - # - name: Get latest tag - # id: tag - # uses: dawidd6/action-get-tag@v1 - # with: - # strip_v: true + - name: Get latest tag + id: tag + uses: dawidd6/action-get-tag@v1 + with: + strip_v: true - run: | - python3 spotube/scripts/update_flathub_version.py ${{ github.event.inputs.tag }} + python3 spotube/scripts/update_flathub_version.py ${{ steps.tag.outputs.tag }} rm -rf spotube - uses: EndBug/add-and-commit@v9 with: - message: v${{ github.event.inputs.tag }} Update + message: v${{ steps.tag.outputs.tag }} Update push: origin master publish_aur: @@ -254,17 +251,17 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - # - name: Get latest tag - # id: tag - # uses: dawidd6/action-get-tag@v1 - # with: - # strip_v: true + - name: Get latest tag + id: tag + uses: dawidd6/action-get-tag@v1 + with: + strip_v: true - uses: actions/download-artifact@v3 with: name: Spotube-Linux-Bundle path: ./Spotube-Linux-Bundle - run: | - sed -i "s/%{{SPOTUBE_VERSION}}%/${{ github.event.inputs.tag }}/" aur-struct/PKGBUILD + sed -i "s/%{{SPOTUBE_VERSION}}%/${{ steps.tag.outputs.tag }}/" aur-struct/PKGBUILD sed -i "s/%{{PKGREL}}%/1/" aur-struct/PKGBUILD sed -i "s/%{{LINUX_MD5}}%/`md5sum Spotube-Linux-Bundle/Spotube-linux-x86_64.tar.xz | awk '{print $1}'`/" aur-struct/PKGBUILD - uses: KSXGitHub/github-actions-deploy-aur@v2.2.5 @@ -274,4 +271,4 @@ jobs: commit_username: ${{ secrets.AUR_USERNAME }} commit_email: ${{ secrets.AUR_EMAIL }} ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }} - commit_message: Updated to v${{ github.event.inputs.tag }} + commit_message: Updated to v${{ steps.tag.outputs.tag }} diff --git a/CHANGELOG.md b/CHANGELOG.md index fa2e2f4d..cd026aab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,23 @@ +# Changelog + +All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. + +## [2.4.1](https://github.com/KRTirtho/spotube/compare/v2.4.0...v2.4.1) (2022-09-13) + + +### Features + +* add macos audio metadata tags support ([5866b0f](https://github.com/KRTirtho/spotube/commit/5866b0fcd661cf32060bb1485ea81634fbb9b90a)) +* remove macos bounds for reading and writing audio metadata ([16064f6](https://github.com/KRTirtho/spotube/commit/16064f68e882b091401ace4b895e387f46635800)) +* **search:** horizontal swipe scroll support for Desktop platform ([d5ff927](https://github.com/KRTirtho/spotube/commit/d5ff927c7273b6e72c5d775ee777f2cbd0d6d05c)) + + +### Bug Fixes + +* **artist-page:** SpotubeMarqueeText used in ArtistCard crashes the app ([4279541](https://github.com/KRTirtho/spotube/commit/427954150ab65b250e79fc844fc864abff5b6972)) +* **layout:** Fix adaptive UI not working correctly by providing a overriding option ([8c7adde](https://github.com/KRTirtho/spotube/commit/8c7adde890105e0267b71994b7928277f84553e5)) +* **local-track:** throwing exception when downloadLocation is empty ([1a3556d](https://github.com/KRTirtho/spotube/commit/1a3556d39e8473cadb6143192c48465dc6485599)) + ## [2.4.0](https://github.com/KRTirtho/spotube/compare/v2.3.0...v2.4.0) (2022-09-09) diff --git a/lib/components/Settings/About.dart b/lib/components/Settings/About.dart index d520a3b5..33b14396 100644 --- a/lib/components/Settings/About.dart +++ b/lib/components/Settings/About.dart @@ -24,9 +24,10 @@ class About extends HookWidget { @override Widget build(BuildContext context) { final info = usePackageInfo( - appName: "Spotube", - packageName: "oss.krtirtho.Spotube", - version: "2.4.0"); + appName: "Spotube", + packageName: "oss.krtirtho.Spotube", + version: "2.4.1", + ); return ListTile( leading: Icon(Icons.info_outline_rounded), diff --git a/pubspec.yaml b/pubspec.yaml index f3557ff6..d385b518 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -3,7 +3,7 @@ description: A lightweight free Spotify crossplatform-client which handles playb publish_to: "none" -version: 2.4.0+13 +version: 2.4.1+14 environment: sdk: ">=2.17.0 <3.0.0"