mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-09 03:04:20 -04:00
Creating a rpm workflow
This commit is contained in:
parent
f07ce17c4e
commit
f60dae1cf8
14
.github/workflows/release.yml
vendored
14
.github/workflows/release.yml
vendored
@ -72,16 +72,6 @@ jobs:
|
||||
sudo install -Dm 644 deployment/kyoo.sysusers pkg/usr/lib/sysusers.d/kyoo.conf
|
||||
sudo install -Dm 644 deployment/kyoo.tmpfiles pkg/usr/lib/tmpfiles.d/kyoo.conf
|
||||
sudo install -Dm 755 deployment/postinst -t pkg/DEBIAN/
|
||||
- uses: jiro4989/build-rpm-action@v2
|
||||
with:
|
||||
package: kyoo
|
||||
package_root: pkg
|
||||
maintainer: Zoe Roux
|
||||
version: ${{env.version}}
|
||||
arch: x86_64
|
||||
requires: postgresql-server
|
||||
desc: ${{env.description}}
|
||||
summary: ${{env.description}}
|
||||
- uses: jiro4989/build-deb-action@v2
|
||||
with:
|
||||
package: kyoo
|
||||
@ -91,6 +81,10 @@ jobs:
|
||||
depends: postgresql
|
||||
arch: amd64
|
||||
desc: ${{env.description}}
|
||||
- name: Build rpm package
|
||||
run: |
|
||||
rpmbuild -bb --buildroot . --build-in-place deployment/kyoo.specc
|
||||
tree -a
|
||||
- name: Prepare arch package
|
||||
run: |
|
||||
mkdir deployment/output
|
||||
|
@ -8,6 +8,15 @@ BuildArch: x86_64
|
||||
Requires: postgresql-server
|
||||
|
||||
|
||||
%install:
|
||||
cp -a * %{buildroot}
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
*
|
||||
|
||||
%post:
|
||||
sudo -u postgres psql << "EOF"
|
||||
DO $$
|
||||
|
Loading…
x
Reference in New Issue
Block a user