From f47814a6b0a28f172ff54c115aaac02c2a2d85f6 Mon Sep 17 00:00:00 2001 From: arf20 <35542215+arf20@users.noreply.github.com> Date: Wed, 14 Feb 2024 03:33:26 +0100 Subject: [PATCH] Fix debian package control and paths --- .github/workflows/deb.yml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deb.yml b/.github/workflows/deb.yml index dfd6f09..b62197a 100644 --- a/.github/workflows/deb.yml +++ b/.github/workflows/deb.yml @@ -3,7 +3,8 @@ name: Create debian package on: [push, pull_request] env: - pkg_name: fcow_1.2-${{github.run_number}} + pkg_version: 1.2-${{github.run_number}} + pkg_name: fcow_1.2-${{github.run_number}}_all jobs: build: @@ -18,11 +19,26 @@ jobs: cd ${{env.pkg_name}} mkdir -p DEBIAN usr/local/bin usr/local/man/man6 usr/local/share/fcow + - name: Write control + run: | + cat <> deb_control + Package: fcow + Version: ${{env.pkg_version}} + Architecture: all + Maintainer: Angel Ruiz Fernandez + Installed-Size: 5000 + Depends: fortune, cowsay, lolcat + Section: game + Priority: optional + Homepage: https://github.com/informaticapau/fcow + Description: A full colored cow will advice your future + EOT + - name: Copy stuff inside run: | cp deb_control ${{env.pkg_name}}/DEBIAN/control - cp src/* ${{env.pkg_name}}/usr/local/bin/ - chmod +x ${{env.pkg_name}}/usr/local/bin/* + cp src/* ${{env.pkg_name}}/usr/local/games/ + chmod +x ${{env.pkg_name}}/usr/local/games/* cp share/* ${{env.pkg_name}}/usr/local/share/fcow/ cp man/* ${{env.pkg_name}}/usr/local/man/man6/