From c469933cb903c42c8846bfce558e08b6e7993120 Mon Sep 17 00:00:00 2001 From: Jeroen Willemsen Date: Fri, 1 Mar 2024 09:54:38 +0100 Subject: [PATCH] Add badge to readme https://github.com/OWASP/wrongsecrets/issues/1243 --- prep_quickbuild.sh | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100755 prep_quickbuild.sh diff --git a/prep_quickbuild.sh b/prep_quickbuild.sh new file mode 100755 index 0000000..4cc6b11 --- /dev/null +++ b/prep_quickbuild.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +ehco "this script is to prepare your mac to be able to run quickbuild.sh" + +echo "preparing dockcross" +git clone https://github.com/dockcross/dockcross.git +cd dockcross +docker run --rm dockcross/linux-arm64-lts > ./dockcross-linux-arm64-lts +chmod +x ./dockcross-linux-arm64-lts && mv ./dockcross-linux-arm64-lts .. +docker run --rm dockcross/linux-x64 > ./dockcross-linux-x64 +chmod +x ./dockcross-linux-x64 && mv ./dockcross-linux-x64 .. +docker run --rm dockcross/windows-static-x64 > ./dockcross-windows-static-x64 +chmod +x ./dockcross-windows-static-x64 && mv ./dockcross-windows-static-x64 .. +docker run --rm dockcross/linux-arm64-musl > ./dockcross-linux-arm64-musl +chmod +x ./dockcross-linux-arm64-musl && mv ./dockcross-linux-arm64-musl .. + +echo "preparing musl cross, which requires brew to be installed" +brew install FiloSottile/musl-cross/musl-cross +ln -s /usr/local/opt/musl-cross/bin/x86_64-linux-musl-gcc /usr/local/bin/musl-gcc + + +echo "preparing golang" +brew install go + +echo "preparing rust" +brew install rust +cargo install -f cross +rustup target add x86_64-apple-darwin +rustup target add aarch64-apple-darwin +rustup target add x86_64-pc-windows-gnu +rustup target add x86_64-unknown-linux-musl +rustup target add aarch64-unknown-linux-musl +rustup component add rust-std +rustup update + + +echo "preparing dotnet" +brew install dotnet \ No newline at end of file