Clean up project setup

This commit is contained in:
Tien Tran 2024-10-19 11:11:09 +11:00
parent 6dac3cd878
commit c8b27fdab8
4 changed files with 7 additions and 162 deletions

6
.gitignore vendored
View File

@ -16,4 +16,8 @@
./wireguird ./wireguird
./wireguird.glade~ ./wireguird.glade~
./wireguird.settings ./wireguird.settings
deb/
build/
static/*.go

View File

@ -1,3 +1,5 @@
#!/usr/bin/env sh
echo "wireguird: cleaning..." echo "wireguird: cleaning..."
deb_file="./build/wireguird_amd64.deb" deb_file="./build/wireguird_amd64.deb"
@ -13,10 +15,8 @@ fi
mkdir -p "$opt_w_dir" mkdir -p "$opt_w_dir"
echo "wireguird: building go binary..." echo "wireguird: building go binary..."
time {
go generate go generate
go build -ldflags "-s -w" -trimpath -o "$opt_w_dir""wireguird" go build -ldflags "-s -w" -trimpath -o "$opt_w_dir""wireguird"
}
echo "wireguird: copying icons..." echo "wireguird: copying icons..."
cp -r ./Icon/ "$opt_w_dir" cp -r ./Icon/ "$opt_w_dir"

0
static/.gitkeep Normal file
View File

File diff suppressed because one or more lines are too long