-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix debian package control and paths
- Loading branch information
Showing
1 changed file
with
19 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 <<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/ | ||
|