📦 Package for Arch and Fedora
This commit is contained in:
parent
0ab77aa7c8
commit
ed70f3c2ff
7 changed files with 48 additions and 4 deletions
|
@ -1,3 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
/opt/badl/venv/bin/python -m badl
|
|
16
packaging/archlinux/.fpm
Normal file
16
packaging/archlinux/.fpm
Normal 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
3
packaging/archlinux/launch.sh
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
cd /opt/badl/site-packages
|
||||||
|
/usr/bin/python3 -m badl
|
10
packaging/archlinux/package.sh
Executable file
10
packaging/archlinux/package.sh
Executable 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
|
|
@ -1,4 +1,7 @@
|
||||||
-s dir
|
-s dir
|
||||||
|
-t rpm
|
||||||
|
-p badl-0.1.0-any.rpm
|
||||||
|
-f
|
||||||
--name badl
|
--name badl
|
||||||
--version 0.1.0
|
--version 0.1.0
|
||||||
--architecture all
|
--architecture all
|
||||||
|
@ -6,6 +9,8 @@
|
||||||
--description "BiliBili Audio Downloader"
|
--description "BiliBili Audio Downloader"
|
||||||
--url "https://git.zhaozuohong.vip/zhao/badl"
|
--url "https://git.zhaozuohong.vip/zhao/badl"
|
||||||
--maintainer "Zhao Zuohong <zhbaor@zhaozuohong.vip>"
|
--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
|
launch.sh=/usr/bin/badl
|
3
packaging/fedora37/launch.sh
Executable file
3
packaging/fedora37/launch.sh
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
cd /opt/badl/site-packages
|
||||||
|
/usr/bin/python3 -m badl
|
10
packaging/fedora37/package.sh
Executable file
10
packaging/fedora37/package.sh
Executable 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
|
Loading…
Reference in a new issue