mirror of
https://github.com/safing/portmaster
synced 2025-04-25 13:29:10 +00:00
18 lines
457 B
Bash
Executable file
18 lines
457 B
Bash
Executable file
#!/bin/bash
|
|
|
|
baseDir="$( cd "$(dirname "$0")" && pwd )"
|
|
cd "$baseDir"
|
|
|
|
echo "building..."
|
|
GOOS=windows go build
|
|
|
|
dstFile="../../../portmaster-windows-kext/install/MINGW/amd64/trafficgen.exe"
|
|
if [[ -d $(dirname "$dstFile") ]]; then
|
|
# make path absolute
|
|
dstFile="$(cd "$(dirname "$dstFile")" && pwd)/$(basename "$dstFile")"
|
|
# copy
|
|
echo "copying to $dstFile"
|
|
cp trafficgen.exe "$dstFile"
|
|
else
|
|
echo "not copying to $dstFile (dir does not exist)"
|
|
fi
|