diff --git a/.gitignore b/.gitignore index 0fa6b675..4133abe4 100644 --- a/.gitignore +++ b/.gitignore @@ -44,3 +44,9 @@ app.*.map.json /android/app/debug /android/app/profile /android/app/release + + +*.pkg.tar.zst +/aur-struct/*.tar +/aur-struct/src +/aur-struct/pkg \ No newline at end of file diff --git a/aur-struct/PKGBUILD b/aur-struct/PKGBUILD index bb5c0a4f..4d207f1d 100644 --- a/aur-struct/PKGBUILD +++ b/aur-struct/PKGBUILD @@ -1,6 +1,6 @@ # Maintainer: KRTirtho pkgname=spotube -pkgver=0.0.3 +pkgver=1.0.0 pkgrel=1 epoch= pkgdesc="A music streaming app combining the power of Spotify & Youtube" @@ -8,7 +8,7 @@ arch=(x86_64) url="https://github.com/KRTirtho/spotube/" license=('MIT') groups=() -depends=('mpv' 'youtube-dl') +depends=('mpv' 'yt-dlp') makedepends=() checkdepends=() optdepends=() @@ -19,15 +19,17 @@ backup=() options=() install= changelog= -source=("$url/releases/download/v$pkgver/Spotube_linux-x86_64-v$pkgver.zip") +source=("./spotube-v1.0.0-linux-x86-64.tar") noextract=() -md5sums=(ae9c6cbbe97f6dcc15a7c7dc86091174) +md5sums=(a58727a9233d7d381872be59b622f864) validpgpkeys=() package(){ + install -dm755 "${pkgdir}/usr/share/icons/${pkgname}" install -dm755 "${pkgdir}/usr/share/${pkgname}" install -dm755 "${pkgdir}/usr/bin" cp -ra ./ "${pkgdir}/usr/share/${pkgname}" cp ./spotube.desktop ~/.local/share/applications - ln -s "/usr/share/${pkgname}/qode" "${pkgdir}/usr/bin/${pkgname}" -} \ No newline at end of file + cp ./data/flutter_assets/assets/spotube-logo.png "${pkgdir}/usr/share/icons/${pkgname}" + ln -s "/usr/share/${pkgname}/spotube" "${pkgdir}/usr/bin/${pkgname}" +} diff --git a/deb-struct/DEBIAN/control b/deb-struct/DEBIAN/control index b5926483..d6dba387 100644 --- a/deb-struct/DEBIAN/control +++ b/deb-struct/DEBIAN/control @@ -1,5 +1,5 @@ Package: Spotube -Version: 0.0.3 +Version: 1.0.0 Section: sound Priority: optional Architecture: all diff --git a/lib/components/Player.dart b/lib/components/Player.dart index 132ccc6b..ef1eae77 100644 --- a/lib/components/Player.dart +++ b/lib/components/Player.dart @@ -3,7 +3,6 @@ import 'dart:io'; import 'package:cached_network_image/cached_network_image.dart'; import 'package:flutter/foundation.dart'; import 'package:hotkey_manager/hotkey_manager.dart'; -import 'package:spotify/spotify.dart'; import 'package:spotube/components/PlayerControls.dart'; import 'package:spotube/helpers/artist-to-string.dart'; import 'package:spotube/models/GlobalKeyActions.dart'; @@ -152,7 +151,7 @@ class _PlayerState extends State { Future playPlaylist(MPVPlayer player, CurrentPlaylist playlist) async { try { if (player.isRunning() && playlist.id != _currentPlaylistId) { - var playlistPath = "/tmp/playlist-${playlist.id}.json"; + var playlistPath = "/tmp/playlist-${playlist.id}.txt"; File file = File(playlistPath); var newPlaylist = playlistToStr(playlist); diff --git a/pubspec.yaml b/pubspec.yaml index 26d192e7..9c0f892e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 1.0.0+1 +version: 1.0.0 environment: sdk: ">=2.15.1 <3.0.0" diff --git a/spotube.desktop b/spotube.desktop new file mode 100644 index 00000000..f7abfe7b --- /dev/null +++ b/spotube.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Type=Application +Name=Spotube +Exec=/usr/bin/spotube +Icon=/usr/share/icons/spotube/spotube-logo.png +Comment=A music streaming app combining the power of Spotify & Youtube +Terminal=false +Categories=Music;