You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
455 B

echo "wireguird: cleaning..."
rm -r ./build/wireguird_amd64.deb
rm -r ./deb/opt/wireguird/
mkdir -p ./deb/opt/wireguird
echo "wireguird: building go binary..."
go build -ldflags "-s -w" -trimpath -o ./deb/opt/wireguird/wireguird
echo "wireguird: copying icons..."
cp -r ./Icon/ ./deb/opt/wireguird/
echo "wireguird: building debian package..."
mkdir ./build/
dpkg-deb --root-owner-group --build ./deb ./build/wireguird_amd64.deb
echo "wireguird: done"