Notes/bin/build-debian.sh

20 lines
528 B
Bash
Raw Normal View History

2019-02-20 21:58:23 +01:00
#!/usr/bin/env bash
2024-07-22 21:33:07 +03:00
set -e # Fail on any command error
if ! command -v dpkg-deb &> /dev/null; then
echo "Missing command: dpkg-deb"
exit 1
fi
if dpkg-deb 2>&1 | grep BusyBox &> /dev/null; then
echo "The dpkg-deb binary provided by BusyBox is not compatible. The Debian tool needs to be used instead."
exit 1
fi
2019-02-20 21:58:23 +01:00
echo "Packaging debian x64 distribution..."
VERSION=`jq -r ".version" package.json`
./node_modules/.bin/electron-installer-debian --config bin/deb-options.json --options.version=${VERSION} --arch amd64