From f8b07472e5d458ed54851d76db68f7bb0d2aedcc Mon Sep 17 00:00:00 2001 From: Kingkor Roy Tirtho Date: Thu, 13 Jan 2022 23:18:38 +0600 Subject: [PATCH] debian package creation --- .gitignore | 4 +++- control | 10 ---------- deb-config.json | 4 ---- deb-struct/DEBIAN/control | 6 +++--- deb-struct/DEBIAN/postinst | 8 ++++++++ deb-struct/DEBIAN/postrm | 7 +++++++ spotube.desktop | 8 -------- 7 files changed, 21 insertions(+), 26 deletions(-) delete mode 100644 control delete mode 100644 deb-config.json create mode 100755 deb-struct/DEBIAN/postinst create mode 100755 deb-struct/DEBIAN/postrm delete mode 100644 spotube.desktop diff --git a/.gitignore b/.gitignore index 4133abe4..ca99c4aa 100644 --- a/.gitignore +++ b/.gitignore @@ -49,4 +49,6 @@ app.*.map.json *.pkg.tar.zst /aur-struct/*.tar /aur-struct/src -/aur-struct/pkg \ No newline at end of file +/aur-struct/pkg + +/deb-struct/usr \ No newline at end of file diff --git a/control b/control deleted file mode 100644 index b5926483..00000000 --- a/control +++ /dev/null @@ -1,10 +0,0 @@ -Package: Spotube -Version: 0.0.3 -Section: sound -Priority: optional -Architecture: all -Essential: no -Installed-Size: 31000 -Maintainer: KR Tirtho -Description: A music streaming app combining the power of Spotify & Youtube -Homepage: https://github.com/KRTirtho/spotube diff --git a/deb-config.json b/deb-config.json deleted file mode 100644 index 350df166..00000000 --- a/deb-config.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "appName": "name", - "version": "0.1" -} \ No newline at end of file diff --git a/deb-struct/DEBIAN/control b/deb-struct/DEBIAN/control index d6dba387..a3ddd5cd 100644 --- a/deb-struct/DEBIAN/control +++ b/deb-struct/DEBIAN/control @@ -4,7 +4,7 @@ Section: sound Priority: optional Architecture: all Essential: no -Installed-Size: 31000 -Maintainer: KR Tirtho -Description: A music streaming app combining the power of Spotify & Youtube +Installed-Size: 24400 +Maintainer: Kingkor Roy Tirtho +Description: A lightweight free Spotify desktop-client which handles playback manually, streams music using Youtube & no Spotify premium account is needed Homepage: https://github.com/KRTirtho/spotube diff --git a/deb-struct/DEBIAN/postinst b/deb-struct/DEBIAN/postinst new file mode 100755 index 00000000..3bb1bee0 --- /dev/null +++ b/deb-struct/DEBIAN/postinst @@ -0,0 +1,8 @@ +#!/usr/bin/env sh + +echo Creating symlink + +ln -s /usr/share/spotube/spotube /usr/bin +chmod +x /usr/bin/spotube + +exit 0 \ No newline at end of file diff --git a/deb-struct/DEBIAN/postrm b/deb-struct/DEBIAN/postrm new file mode 100755 index 00000000..6518efc3 --- /dev/null +++ b/deb-struct/DEBIAN/postrm @@ -0,0 +1,7 @@ +#!/usr/bin/env sh + +echo Removing symlink + +rm /usr/bin/spotube + +exit 0 \ No newline at end of file diff --git a/spotube.desktop b/spotube.desktop deleted file mode 100644 index f7abfe7b..00000000 --- a/spotube.desktop +++ /dev/null @@ -1,8 +0,0 @@ -[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;