mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 13:09:49 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
53c2bf7ff3
commit
e7ecd1133d
1 changed files with 4 additions and 7 deletions
11
build.sh
11
build.sh
|
@ -1,11 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
BUILD_FOLDER=build
|
||||||
VERSION=$(cat core/banner.go | grep Version | cut -d '"' -f 2)
|
VERSION=$(cat core/banner.go | grep Version | cut -d '"' -f 2)
|
||||||
|
|
||||||
clean() {
|
|
||||||
rm -rf build
|
|
||||||
mkdir build
|
|
||||||
}
|
|
||||||
|
|
||||||
bin_dep() {
|
bin_dep() {
|
||||||
BIN=$1
|
BIN=$1
|
||||||
which $BIN > /dev/null || { echo "@ Dependency $BIN not found !"; exit 1; }
|
which $BIN > /dev/null || { echo "@ Dependency $BIN not found !"; exit 1; }
|
||||||
|
@ -94,8 +90,9 @@ build_windows_amd64() {
|
||||||
scp -C winvm:$DIR/$OUTPUT . > /dev/null
|
scp -C winvm:$DIR/$OUTPUT . > /dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
clean
|
rm -rf $BUILD_FOLDER
|
||||||
cd build
|
mkdir $BUILD_FOLDER
|
||||||
|
cd $BUILD_FOLDER
|
||||||
|
|
||||||
build_linux_amd64 bettercap-ng_linux_amd64_$VERSION
|
build_linux_amd64 bettercap-ng_linux_amd64_$VERSION
|
||||||
build_linux_arm7 bettercap-ng_linux_arm7_$VERSION
|
build_linux_arm7 bettercap-ng_linux_arm7_$VERSION
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue