mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
new: added script to build on a preconfigured windows vm
This commit is contained in:
parent
f2f07959bc
commit
eee49d4245
3 changed files with 18 additions and 238 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,4 +1,5 @@
|
|||
*.sw*
|
||||
pcaps
|
||||
bettercap-ng
|
||||
bettercap-ng*.*
|
||||
bettercap-ng*
|
||||
bettercap.history
|
||||
|
|
16
build_win.sh
Executable file
16
build_win.sh
Executable 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
Loading…
Add table
Add a link
Reference in a new issue