new: added script to build on a preconfigured windows vm

This commit is contained in:
evilsocket 2018-02-10 07:19:09 +01:00
commit eee49d4245
3 changed files with 18 additions and 238 deletions

3
.gitignore vendored
View file

@ -1,4 +1,5 @@
*.sw*
pcaps
bettercap-ng
bettercap-ng*.*
bettercap-ng*
bettercap.history

16
build_win.sh Executable file
View file

@ -0,0 +1,16 @@
# nothing to see here, just what i use to build for Windows
DIR=c:/Users/evilsocket/gopath/src/github.com/evilsocket/bettercap-ng
AMD64_EXE=bettercap-ng_win32_x86_64.exe
I386_EXE=bettercap-ng_win32_i386.exe
echo "@ Updating repo ..."
ssh winvm "cd $DIR && del *.exe && git pull"
echo "@ Building $AMD64_EXE ..."
ssh winvm "cd $DIR && go build -o $AMD64_EXE ."
# not worth the effort of installing the 32bit toolchain to be honest ...
# echo "@ Building $I386_EXE ..."
# ssh winvm "cd $DIR && set GOARCH=386 && go build -o $I386_EXE . && dir *.exe"
scp winvm:$DIR/$AMD64_EXE .

File diff suppressed because one or more lines are too long