From b32ec9ccf92f8e2f07e1832ce56cb55a7062ecc6 Mon Sep 17 00:00:00 2001 From: Kingkor Roy Tirtho Date: Sat, 10 Aug 2024 23:21:48 +0600 Subject: [PATCH] chore: bump version and generate changelog --- .github/workflows/spotube-publish-binary.yml | 2 +- CHANGELOG.md | 37 +++++++++++++++++++- cli/commands/build/windows.dart | 19 ++++++++++ lib/modules/root/sidebar.dart | 2 +- pubspec.lock | 4 +-- pubspec.yaml | 6 ++-- windows/runner/Runner.rc | 4 +-- 7 files changed, 64 insertions(+), 10 deletions(-) diff --git a/.github/workflows/spotube-publish-binary.yml b/.github/workflows/spotube-publish-binary.yml index 7f85173f..9d3ce470 100644 --- a/.github/workflows/spotube-publish-binary.yml +++ b/.github/workflows/spotube-publish-binary.yml @@ -4,7 +4,7 @@ on: inputs: version: description: Version to publish (x.x.x) - default: 3.7.1 + default: 3.8.0 required: true dry_run: description: Dry run diff --git a/CHANGELOG.md b/CHANGELOG.md index 22919a32..7e434574 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,42 @@ 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. -## [3.7.1](https://github.com/krtirtho/spotube/compare/v3.7.1...v3.7.1) (2024-06-06) +## [3.8.0](https://github.com/krtirtho/spotube/compare/v3.7.1...v3.8.0) (2024-06-06) + +### Features + +- translations: make state page's hard coded strings translatable (#1719) +- discord: add listening activity type +- discord: album art, playing time and play pause support (#1765) +- linux: Use XDG_STATE_HOME to storage logs (#1675) +- discord rpc for macOS, windows-arm64 and linux-arm64 (#1713) +- desktop: implement webview based login +- stats: add lazy loading support + +### Bug Fixes + +- translations: fix Russian translations (#1696) +- ios: permission exception +- linux: tray icon wrong name for flatpak +- windows: app crashes when no internet +- windows: local tracks plays but disabled playback controls +- go to track album shows up for local tracks +- local track metadata timeout +- windows: window stretching #1553 +- android: app getting killed from background +- linux: OS Media control not working for Flatpak #1627 +- incorrect datatype used for MPRIS position property #1521 +- Too many artists for a track causing overflows +- playlist share button does not work #1639 +- unescape html escape values #1300 +- lyrics page doesn't scroll to top after song ends #885 +- changed source doesn't get saved and uses the wrong once again +- null exception in album page navigated from /home +- popup menu item opacity +- linux: change app id in flatpak environment + + +## [3.7.1](https://github.com/krtirtho/spotube/compare/v3.7.0...v3.7.1) (2024-06-06) ### Bug Fixes diff --git a/cli/commands/build/windows.dart b/cli/commands/build/windows.dart index 15e0bf17..c44ed52f 100644 --- a/cli/commands/build/windows.dart +++ b/cli/commands/build/windows.dart @@ -41,6 +41,25 @@ class WindowsBuildCommand extends Command with BuildCommandCommonSteps { await bootstrap(); await innoDependInstall(); + final runnerRCFile = File( + join(cwd.path, "windows", "runner", "Runner.rc"), + ); + + runnerRCFile.writeAsStringSync( + runnerRCFile + .readAsStringSync() + .replaceAll("%{{SPOTUBE_VERSION}}%", versionWithoutBuildNumber) + .replaceAll( + "%{{SPOTUBE_VERSION_AS_NUMBER}}%", + [ + pubspec.version!.major, + pubspec.version!.minor, + pubspec.version!.patch, + 0 + ].join(","), + ), + ); + await shell.run( "flutter_distributor package --platform=windows --targets=exe --skip-clean", ); diff --git a/lib/modules/root/sidebar.dart b/lib/modules/root/sidebar.dart index 8f7f495c..f29644fb 100644 --- a/lib/modules/root/sidebar.dart +++ b/lib/modules/root/sidebar.dart @@ -75,7 +75,7 @@ class Sidebar extends HookConsumerWidget { final bg = theme.colorScheme.surfaceContainerHighest; final bgColor = useBrightnessValue( - Color.lerp(bg, Colors.white, 0.7), + Color.lerp(bg, Colors.white, 0.6), Color.lerp(bg, Colors.black, 0.45)!, ); diff --git a/pubspec.lock b/pubspec.lock index 0bc24dff..6f0f3e73 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1764,10 +1764,10 @@ packages: dependency: "direct dev" description: name: pubspec_parse - sha256: c63b2876e58e194e4b0828fcb080ad0e06d051cb607a6be51a9e084f47cb9367 + sha256: c799b721d79eb6ee6fa56f00c04b472dcd44a30d258fac2174a6ec57302678f8 url: "https://pub.dev" source: hosted - version: "1.2.3" + version: "1.3.0" quiver: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 7f6f0f29..77aa3f5b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -3,7 +3,7 @@ description: Open source Spotify client that doesn't require Premium nor uses El publish_to: "none" -version: 3.7.1+32 +version: 3.8.0+33 homepage: https://spotube.krtirtho.dev repository: https://github.com/KRTirtho/spotube @@ -156,8 +156,8 @@ dev_dependencies: custom_lint: ^0.6.4 riverpod_lint: ^2.3.10 process_run: ^0.14.2 - pubspec_parse: ^1.2.2 - pub_api_client: ^2.4.0 + pubspec_parse: ^1.3.0 + pub_api_client: ^2.7.0 xml: ^6.5.0 io: ^1.0.4 drift_dev: ^2.18.0 diff --git a/windows/runner/Runner.rc b/windows/runner/Runner.rc index 62e150f8..c77ce0c6 100644 --- a/windows/runner/Runner.rc +++ b/windows/runner/Runner.rc @@ -63,13 +63,13 @@ IDI_APP_ICON ICON "resources\\app_icon.ico" #if defined(FLUTTER_VERSION_MAJOR) && defined(FLUTTER_VERSION_MINOR) && defined(FLUTTER_VERSION_PATCH) && defined(FLUTTER_VERSION_BUILD) #define VERSION_AS_NUMBER FLUTTER_VERSION_MAJOR,FLUTTER_VERSION_MINOR,FLUTTER_VERSION_PATCH,FLUTTER_VERSION_BUILD #else -#define VERSION_AS_NUMBER 1,0,0,0 +#define VERSION_AS_NUMBER %{{SPOTUBE_VERSION_AS_NUMBER}}% #endif #if defined(FLUTTER_VERSION) #define VERSION_AS_STRING FLUTTER_VERSION #else -#define VERSION_AS_STRING "1.0.0" +#define VERSION_AS_STRING "%{{SPOTUBE_VERSION}}%" #endif VS_VERSION_INFO VERSIONINFO