Skip to content

Commit

Permalink
Copyright included to the package.
Browse files Browse the repository at this point in the history
Also:
- Ignore *.md files on build flow
- Additional description how to install/remove
  • Loading branch information
boonya committed Oct 14, 2020
1 parent 86519bf commit a98d3e3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Build

on: push
on:
push:
paths-ignore:
- '*.md'

env:
PACKAGE_ROOT: pkg-src
Expand Down Expand Up @@ -34,6 +37,8 @@ jobs:
cp main.py ${{env.PACKAGE_ROOT}}/usr/bin/raspi-fan-control
mkdir -p ${{env.PACKAGE_ROOT}}/etc/systemd/system/
cp raspi-fan-control.service ${{env.PACKAGE_ROOT}}/etc/systemd/system/raspi-fan-control.service
mkdir -p ${{env.PACKAGE_ROOT}}/usr/share/doc/raspi-fan-control
cp LICENSE ${{env.PACKAGE_ROOT}}/usr/share/doc/raspi-fan-control/copyright
PYTHON_PACKAGES=$(cat requirements.txt | xargs)
sed -i "s/{{python-packages}}/$PYTHON_PACKAGES/" ${{env.PACKAGE_ROOT}}/DEBIAN/postinst
sed -i "s/{{python-packages}}/$PYTHON_PACKAGES/" ${{env.PACKAGE_ROOT}}/DEBIAN/postrm
Expand Down
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

## Installation

```bash
wget https://github.com/boonya/raspi-fan-control/releases/download/v1.0.1/raspi-fan-control_1.0.1_arm64.deb
sudo dpkg -i raspi-fan-control_1.0.1_arm64.deb
```

OR

```bash
cd /usr/local/
sudo git clone https://github.com/boonya/raspi-fan-control
Expand All @@ -17,6 +24,12 @@ sudo systemctl enable raspi-fan-control

## Deinstallation

```bash
sudo apt purge raspi-fan-control
```

OR

```bash
sudo systemctl disable raspi-fan-control
sudo systemctl stop raspi-fan-control
Expand All @@ -29,7 +42,7 @@ sudo rm -rf /usr/local/raspi-fan-control

## Additional

If you working on Ubuntu Server rather then the Rasbian you may want to give your
If you working on Ubuntu Server rather then the Raspbian you may want to give your
user rights to interact with `GPIO` interface.

For doing that you need:
Expand Down

0 comments on commit a98d3e3

Please sign in to comment.