mirror of
https://github.com/UnnoTed/wireguird
synced 2024-11-24 10:35:29 +00:00
7508f721d1
- Add settings window - Fix libappindicator3 dependency problem - Add support for multiple tunnels - Add tunnel name length check - Add wireguard error messages
34 lines
632 B
Bash
Executable File
34 lines
632 B
Bash
Executable File
echo "wireguird: cleaning..."
|
|
|
|
deb_file="./build/wireguird_amd64.deb"
|
|
if [ -e "$deb_file" ]; then
|
|
rm -r "$deb_file"
|
|
fi
|
|
|
|
opt_w_dir="./deb/opt/wireguird/"
|
|
if [ -e "$opt_w_dir" ]; then
|
|
rm -r "$opt_w_dir"
|
|
fi
|
|
|
|
mkdir -p "$opt_w_dir"
|
|
|
|
echo "wireguird: building go binary..."
|
|
time {
|
|
go generate
|
|
go build -ldflags "-s -w" -trimpath -o "$opt_w_dir""wireguird"
|
|
}
|
|
|
|
echo "wireguird: copying icons..."
|
|
cp -r ./Icon/ "$opt_w_dir"
|
|
|
|
echo "wireguird: building deb package..."
|
|
|
|
touch "$opt_w_dir""wireguird.settings"
|
|
|
|
if [ ! -d "./build/" ]; then
|
|
mkdir ./build/
|
|
fi
|
|
|
|
dpkg-deb --root-owner-group --build ./deb $deb_file
|
|
echo "wireguird: done"
|