Artifact Content
Not logged in

Artifact 1774d8e86bf739614370b3193b1f583b01e43784:


#!/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 'python3' \
    -d $click --no-python-dependencies \
    --python-install-bin '/usr/bin' \
    --python-install-lib '/usr/lib/python3/dist-packages' \
    --after-install 'deb-postinst.sh' \
    --deb-interest '/usr/share/applications' \
    --before-remove 'deb-prerm.sh' \
    --after-remove 'deb-postrm.sh' \
    --iteration 1 \
    ../setup.py