mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-12 23:45:18 +00:00
scripts for creating linux packages added
This commit is contained in:
parent
f8b07472e5
commit
a820e8a9f6
6
.gitignore
vendored
6
.gitignore
vendored
@ -51,4 +51,8 @@ app.*.map.json
|
||||
/aur-struct/src
|
||||
/aur-struct/pkg
|
||||
|
||||
/deb-struct/usr
|
||||
/deb-struct/usr
|
||||
|
||||
/AppDir
|
||||
/appimage-builder-cache
|
||||
*.AppImage
|
47
AppImageBuilder.yml
Normal file
47
AppImageBuilder.yml
Normal file
@ -0,0 +1,47 @@
|
||||
# appimage-builder recipe see https://appimage-builder.readthedocs.io for details
|
||||
version: 1
|
||||
script:
|
||||
- rm -rf AppDir || true
|
||||
- cp -r build/linux/x64/release/bundle AppDir
|
||||
- mkdir -p AppDir/usr/share/icons/hicolor/64x64/apps/
|
||||
- cp assets/spotube-logo.png AppDir/usr/share/icons/hicolor/64x64/apps/
|
||||
AppDir:
|
||||
path: ./AppDir
|
||||
app_info:
|
||||
id: oss.krtirtho.spotube
|
||||
name: Spotube
|
||||
icon: spotube-logo
|
||||
version: 1.0.0
|
||||
exec: spotube
|
||||
exec_args: $@
|
||||
apt:
|
||||
arch: amd64
|
||||
allow_unauthenticated: true
|
||||
sources:
|
||||
- sourceline: deb http://bd.archive.ubuntu.com/ubuntu/ hirsute main restricted
|
||||
- sourceline: deb http://bd.archive.ubuntu.com/ubuntu/ hirsute-updates main restricted
|
||||
- sourceline: deb http://bd.archive.ubuntu.com/ubuntu/ hirsute universe
|
||||
- sourceline: deb http://bd.archive.ubuntu.com/ubuntu/ hirsute-updates universe
|
||||
- sourceline: deb http://bd.archive.ubuntu.com/ubuntu/ hirsute multiverse
|
||||
- sourceline: deb http://bd.archive.ubuntu.com/ubuntu/ hirsute-updates multiverse
|
||||
- sourceline: deb http://bd.archive.ubuntu.com/ubuntu/ hirsute-backports main
|
||||
restricted universe multiverse
|
||||
- sourceline: deb http://security.ubuntu.com/ubuntu hirsute-security main restricted
|
||||
- sourceline: deb http://security.ubuntu.com/ubuntu hirsute-security universe
|
||||
- sourceline: deb http://security.ubuntu.com/ubuntu hirsute-security multiverse
|
||||
- sourceline: deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg
|
||||
arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main
|
||||
- sourceline: deb [arch=amd64,arm64,armhf signed-by=/etc/apt/trusted.gpg.d/packages.microsoft.gpg]
|
||||
https://packages.microsoft.com/repos/code stable main
|
||||
include: []
|
||||
files:
|
||||
include: []
|
||||
exclude:
|
||||
- usr/share/man
|
||||
- usr/share/doc/*/README.*
|
||||
- usr/share/doc/*/changelog.*
|
||||
- usr/share/doc/*/NEWS.*
|
||||
- usr/share/doc/*/TODO.*
|
||||
AppImage:
|
||||
arch: x86_64
|
||||
update-information: guess
|
24
Makefile
Normal file
24
Makefile
Normal file
@ -0,0 +1,24 @@
|
||||
|
||||
USR_SHARE=deb-struct/usr/share
|
||||
BUNDLE_DIR=build/linux/x64/release/bundle
|
||||
deb:
|
||||
mkdir -p spotube\
|
||||
&& mkdir -p $(USR_SHARE)/applications\
|
||||
&& mkdir -p $(USR_SHARE)/icons/spotube\
|
||||
&& cp -r $(BUNDLE_DIR)/* $(USR_SHARE)/spotube\
|
||||
&& cp linux/spotube.desktop $(USR_SHARE)/applications/\
|
||||
&& cp assets/spotube-logo.png $(USR_SHARE)/icons/spotube\
|
||||
&& dpkg-deb -b deb-struct/ build/Spotube-linux-x86_64.deb
|
||||
|
||||
TEMP_DIR=/tmp/spotube-tar
|
||||
tar:
|
||||
mkdir -p $(TEMP_DIR)\
|
||||
&& cp -r $(BUNDLE_DIR)/* $(TEMP_DIR)\
|
||||
&& cp linux/spotube.desktop $(TEMP_DIR)\
|
||||
&& cp assets/spotube-logo.png $(TEMP_DIR)\
|
||||
&& tar -cJf build/Spotube-linux-x86_64.tar.xz -C $(TEMP_DIR) .\
|
||||
&& rm -rf $(TEMP_DIR)
|
||||
|
||||
appimage:
|
||||
appimage-builder --recipe AppImageBuilder.yml\
|
||||
&& mv Spotube-*-x86_64.AppImage build
|
8
linux/spotube.desktop
Normal file
8
linux/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