Skip to content

Commit

Permalink
Fix debian package control and paths
Browse files Browse the repository at this point in the history
  • Loading branch information
arf20 authored Feb 14, 2024
1 parent 1594486 commit f47814a
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 <<EOT >> deb_control
Package: fcow
Version: ${{env.pkg_version}}
Architecture: all
Maintainer: Angel Ruiz Fernandez <[email protected]>
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/
Expand Down

0 comments on commit f47814a

Please sign in to comment.