📦 Package for Arch and Fedora

This commit is contained in:
zhbaor 2023-03-07 11:30:10 +08:00
parent 0ab77aa7c8
commit ed70f3c2ff
7 changed files with 48 additions and 4 deletions

View file

@ -1,3 +0,0 @@
#!/bin/bash
/opt/badl/venv/bin/python -m badl

16
packaging/archlinux/.fpm Normal file
View file

@ -0,0 +1,16 @@
-s dir
-t pacman
-p badl-0.1.0-any.pkg.tar.zst
-f
--name badl
--version 0.1.0
--architecture all
--license gpl3
--description "BiliBili Audio Downloader"
--url "https://git.zhaozuohong.vip/zhao/badl"
--maintainer "Zhao Zuohong <zhbaor@zhaozuohong.vip>"
--directories /opt/badl
--depends python-gobject --depends gtk3 --depends webkit2gtk
venv/lib/python3.10/site-packages=/opt/badl/
launch.sh=/usr/bin/badl

3
packaging/archlinux/launch.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
cd /opt/badl/site-packages
/usr/bin/python3 -m badl

10
packaging/archlinux/package.sh Executable file
View file

@ -0,0 +1,10 @@
#!/bin/bash
rm -fr venv
python3 -m venv venv
source venv/bin/activate
cd ../..
pip install .
deactivate
cd packaging/archlinux
fpm

View file

@ -1,4 +1,7 @@
-s dir
-t rpm
-p badl-0.1.0-any.rpm
-f
--name badl
--version 0.1.0
--architecture all
@ -6,6 +9,8 @@
--description "BiliBili Audio Downloader"
--url "https://git.zhaozuohong.vip/zhao/badl"
--maintainer "Zhao Zuohong <zhbaor@zhaozuohong.vip>"
--directories /opt/badl
--depends python3-gobject --depends webkit2gtk4.0
venv=/opt/badl
venv/lib/python3.11/site-packages=/opt/badl/
launch.sh=/usr/bin/badl

3
packaging/fedora37/launch.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
cd /opt/badl/site-packages
/usr/bin/python3 -m badl

10
packaging/fedora37/package.sh Executable file
View file

@ -0,0 +1,10 @@
#!/bin/bash
rm -fr venv
python3 -m venv venv
source venv/bin/activate
cd ../..
pip install .
deactivate
cd packaging/fedora37
fpm