Merge branch 'master' into dev

This commit is contained in:
Kingkor Roy Tirtho 2023-04-15 00:26:19 +06:00
commit 6e164313ce
5 changed files with 31 additions and 9 deletions

View File

@ -46,7 +46,7 @@ body:
attributes: attributes:
label: Spotube version label: Spotube version
description: In which version of Spotube did you encounter this bug? description: In which version of Spotube did you encounter this bug?
placeholder: (e.g.) v2.7.0 placeholder: (e.g.) v2.7.1
- type: dropdown - type: dropdown
attributes: attributes:
label: Installation source label: Installation source

View File

@ -3,18 +3,24 @@ on:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
version: version:
description: Version to release (x.x.x) description: Version to publish (x.x.x)
default: 2.7.0 default: 2.7.1
required: true required: true
dry_run: dry_run:
description: Dry run description: Dry run
required: true required: true
type: boolean type: boolean
default: true default: true
jobs:
description: Jobs to run (flathub,aur,winget,chocolatey)
required: true
type: string
default: "flathub,aur,winget,chocolatey"
jobs: jobs:
flathub: flathub:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
if: contains(inputs.jobs, 'flathub')
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
@ -42,20 +48,21 @@ jobs:
aur: aur:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
if: contains(inputs.jobs, 'aur')
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: dsaltares/fetch-gh-release-asset@master - uses: dsaltares/fetch-gh-release-asset@master
with: with:
version: tags/v${{ inputs.version }} # mind the "v" prefix version: tags/v${{ inputs.version }} # mind the "v" prefix
file: Spotube-linux-x86_64.tar.xz file: spotube-linux-${{inputs.version}}-x86_64.tar.xz
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
- name: Update PKGBUILD versions - name: Update PKGBUILD versions
run: | run: |
sed -i "s/%{{SPOTUBE_VERSION}}%/${{ inputs.version }}/" aur-struct/PKGBUILD sed -i "s/%{{SPOTUBE_VERSION}}%/${{ inputs.version }}/" aur-struct/PKGBUILD
sed -i "s/%{{PKGREL}}%/1/" aur-struct/PKGBUILD sed -i "s/%{{PKGREL}}%/1/" aur-struct/PKGBUILD
sed -i "s/%{{LINUX_MD5}}%/`md5sum Spotube-linux-x86_64.tar.xz | awk '{print $1}'`/" aur-struct/PKGBUILD sed -i "s/%{{LINUX_MD5}}%/`md5sum spotube-linux-${{inputs.version}}-x86_64.tar.xz | awk '{print $1}'`/" aur-struct/PKGBUILD
- name: Release to AUR - name: Release to AUR
if: ${{ !inputs.dry_run }} if: ${{ !inputs.dry_run }}
@ -70,6 +77,7 @@ jobs:
winget: winget:
runs-on: windows-latest runs-on: windows-latest
if: contains(inputs.jobs, 'winget')
steps: steps:
- name: Release winget package - name: Release winget package
if: ${{ !inputs.dry_run }} if: ${{ !inputs.dry_run }}
@ -82,6 +90,7 @@ jobs:
chocolatey: chocolatey:
runs-on: windows-latest runs-on: windows-latest
if: contains(inputs.jobs, 'chocolatey')
steps: steps:
- uses: dsaltares/fetch-gh-release-asset@master - uses: dsaltares/fetch-gh-release-asset@master
with: with:

View File

@ -4,7 +4,7 @@ on:
inputs: inputs:
version: version:
description: Version to release (x.x.x) description: Version to release (x.x.x)
default: 2.7.0 default: 2.7.1
required: true required: true
channel: channel:
type: choice type: choice
@ -68,7 +68,7 @@ jobs:
dart pub global activate flutter_distributor dart pub global activate flutter_distributor
make innoinstall make innoinstall
flutter_distributor package --platform=windows --targets=exe --skip-clean flutter_distributor package --platform=windows --targets=exe --skip-clean
mv dist/**/spotube-*-windows.exe dist/Spotube-windows-x86_64-setup.exe mv dist/**/spotube-*-windows-setup.exe dist/Spotube-windows-x86_64-setup.exe
- name: Create Chocolatey Package and set hash - name: Create Chocolatey Package and set hash
if: ${{ inputs.channel == 'stable' }} if: ${{ inputs.channel == 'stable' }}
@ -141,7 +141,10 @@ jobs:
- name: Build Linux Packages - name: Build Linux Packages
run: | run: |
dart pub global activate flutter_distributor dart pub global activate flutter_distributor
flutter_distributor package --platform=linux --targets=deb,appimage,rpm --skip-clean alias dpkg-deb="dpkg-deb --Zxz"
flutter_distributor package --platform=linux --targets=appimage
flutter_distributor package --platform=linux --targets=rpm
flutter_distributor package --platform=linux --targets=deb
- name: Create tar.xz (stable) - name: Create tar.xz (stable)
if: ${{ inputs.channel == 'stable' }} if: ${{ inputs.channel == 'stable' }}

View File

@ -2,6 +2,16 @@
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. 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.7.1](https://github.com/KRTirtho/spotube/compare/v2.7.0...v2.7.1) (2023-04-10)
### Bug Fixes
* fallback for lyrics when anonymous ([f160ec7](https://github.com/KRTirtho/spotube/commit/f160ec767d9941d33f83aba1752b28df629d0e10))
* **android:** audio notification stuck in play state ([448c9b3](https://github.com/KRTirtho/spotube/commit/448c9b39f407668ad92a695afe3c9741baeca20d))
* **macos:** crashing on startup ([c46b428](https://github.com/KRTirtho/spotube/commit/c46b4284b1d46a614cbcebc8c2f2e52714921b9b))
* spotify query hooks overriding default query params ([ec9a02e](https://github.com/KRTirtho/spotube/commit/ec9a02e8b8d988e15ed58027054d2a9090d98873))
## [2.7.0](https://github.com/KRTirtho/spotube/compare/v2.6.0...v2.7.0) (2023-03-07) ## [2.7.0](https://github.com/KRTirtho/spotube/compare/v2.6.0...v2.7.0) (2023-03-07)

View File

@ -3,7 +3,7 @@ description: Open source Spotify client that doesn't require Premium nor uses El
publish_to: "none" publish_to: "none"
version: 2.7.0+17 version: 2.7.1+18
environment: environment:
sdk: ">=2.17.0 <3.0.0" sdk: ">=2.17.0 <3.0.0"