mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
AUR struct works
This commit is contained in:
parent
66a2efba4f
commit
f9d3d58398
6
.gitignore
vendored
6
.gitignore
vendored
@ -44,3 +44,9 @@ app.*.map.json
|
|||||||
/android/app/debug
|
/android/app/debug
|
||||||
/android/app/profile
|
/android/app/profile
|
||||||
/android/app/release
|
/android/app/release
|
||||||
|
|
||||||
|
|
||||||
|
*.pkg.tar.zst
|
||||||
|
/aur-struct/*.tar
|
||||||
|
/aur-struct/src
|
||||||
|
/aur-struct/pkg
|
@ -1,6 +1,6 @@
|
|||||||
# Maintainer: KRTirtho <krtirho@gmail.com>
|
# Maintainer: KRTirtho <krtirho@gmail.com>
|
||||||
pkgname=spotube
|
pkgname=spotube
|
||||||
pkgver=0.0.3
|
pkgver=1.0.0
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
epoch=
|
epoch=
|
||||||
pkgdesc="A music streaming app combining the power of Spotify & Youtube"
|
pkgdesc="A music streaming app combining the power of Spotify & Youtube"
|
||||||
@ -8,7 +8,7 @@ arch=(x86_64)
|
|||||||
url="https://github.com/KRTirtho/spotube/"
|
url="https://github.com/KRTirtho/spotube/"
|
||||||
license=('MIT')
|
license=('MIT')
|
||||||
groups=()
|
groups=()
|
||||||
depends=('mpv' 'youtube-dl')
|
depends=('mpv' 'yt-dlp')
|
||||||
makedepends=()
|
makedepends=()
|
||||||
checkdepends=()
|
checkdepends=()
|
||||||
optdepends=()
|
optdepends=()
|
||||||
@ -19,15 +19,17 @@ backup=()
|
|||||||
options=()
|
options=()
|
||||||
install=
|
install=
|
||||||
changelog=
|
changelog=
|
||||||
source=("$url/releases/download/v$pkgver/Spotube_linux-x86_64-v$pkgver.zip")
|
source=("./spotube-v1.0.0-linux-x86-64.tar")
|
||||||
noextract=()
|
noextract=()
|
||||||
md5sums=(ae9c6cbbe97f6dcc15a7c7dc86091174)
|
md5sums=(a58727a9233d7d381872be59b622f864)
|
||||||
validpgpkeys=()
|
validpgpkeys=()
|
||||||
|
|
||||||
package(){
|
package(){
|
||||||
|
install -dm755 "${pkgdir}/usr/share/icons/${pkgname}"
|
||||||
install -dm755 "${pkgdir}/usr/share/${pkgname}"
|
install -dm755 "${pkgdir}/usr/share/${pkgname}"
|
||||||
install -dm755 "${pkgdir}/usr/bin"
|
install -dm755 "${pkgdir}/usr/bin"
|
||||||
cp -ra ./ "${pkgdir}/usr/share/${pkgname}"
|
cp -ra ./ "${pkgdir}/usr/share/${pkgname}"
|
||||||
cp ./spotube.desktop ~/.local/share/applications
|
cp ./spotube.desktop ~/.local/share/applications
|
||||||
ln -s "/usr/share/${pkgname}/qode" "${pkgdir}/usr/bin/${pkgname}"
|
cp ./data/flutter_assets/assets/spotube-logo.png "${pkgdir}/usr/share/icons/${pkgname}"
|
||||||
|
ln -s "/usr/share/${pkgname}/spotube" "${pkgdir}/usr/bin/${pkgname}"
|
||||||
}
|
}
|
@ -1,5 +1,5 @@
|
|||||||
Package: Spotube
|
Package: Spotube
|
||||||
Version: 0.0.3
|
Version: 1.0.0
|
||||||
Section: sound
|
Section: sound
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Architecture: all
|
Architecture: all
|
||||||
|
@ -3,7 +3,6 @@ import 'dart:io';
|
|||||||
import 'package:cached_network_image/cached_network_image.dart';
|
import 'package:cached_network_image/cached_network_image.dart';
|
||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:hotkey_manager/hotkey_manager.dart';
|
import 'package:hotkey_manager/hotkey_manager.dart';
|
||||||
import 'package:spotify/spotify.dart';
|
|
||||||
import 'package:spotube/components/PlayerControls.dart';
|
import 'package:spotube/components/PlayerControls.dart';
|
||||||
import 'package:spotube/helpers/artist-to-string.dart';
|
import 'package:spotube/helpers/artist-to-string.dart';
|
||||||
import 'package:spotube/models/GlobalKeyActions.dart';
|
import 'package:spotube/models/GlobalKeyActions.dart';
|
||||||
@ -152,7 +151,7 @@ class _PlayerState extends State<Player> {
|
|||||||
Future playPlaylist(MPVPlayer player, CurrentPlaylist playlist) async {
|
Future playPlaylist(MPVPlayer player, CurrentPlaylist playlist) async {
|
||||||
try {
|
try {
|
||||||
if (player.isRunning() && playlist.id != _currentPlaylistId) {
|
if (player.isRunning() && playlist.id != _currentPlaylistId) {
|
||||||
var playlistPath = "/tmp/playlist-${playlist.id}.json";
|
var playlistPath = "/tmp/playlist-${playlist.id}.txt";
|
||||||
File file = File(playlistPath);
|
File file = File(playlistPath);
|
||||||
var newPlaylist = playlistToStr(playlist);
|
var newPlaylist = playlistToStr(playlist);
|
||||||
|
|
||||||
|
@ -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.
|
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
|
||||||
# Read more about iOS versioning at
|
# Read more about iOS versioning at
|
||||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||||
version: 1.0.0+1
|
version: 1.0.0
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=2.15.1 <3.0.0"
|
sdk: ">=2.15.1 <3.0.0"
|
||||||
|
8
spotube.desktop
Normal file
8
spotube.desktop
Normal file
@ -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;
|
Loading…
Reference in New Issue
Block a user