safing-portmaster/cmds/trafficgen/pack
2020-12-04 16:59:14 +01:00

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