aboutsummaryrefslogtreecommitdiffhomepage
path: root/release/make-deb.bash
blob: a7e4dd7d7c0d907e12977bcebd4f90b355ff8440 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env bash
OS=$1

if [[ $OS = 'debian' ]]; then
    echo 'Building deb for Debian'
    click='python3-click'
else
    echo 'Building deb for Ubuntu'
    click='python3-click-cli'
fi

fpm -s python -t deb \
    --python-bin python3 --python-pip pip3 \
    -n 'firectl' \
    -d 'firejail' \
    -d $click --no-python-dependencies \
    --after-install 'deb-postinst.sh' \
    --deb-interest '/usr/share/applications' \
    --before-remove 'deb-prerm.sh' \
    --after-remove 'deb-postrm.sh' \
    --iteration 1 \
    ../setup.py