diff options
author | heqnx <root@heqnx.com> | 2025-05-17 15:32:06 +0300 |
---|---|---|
committer | heqnx <root@heqnx.com> | 2025-05-17 15:32:06 +0300 |
commit | 3fa65111a3862358f0f9f9191972d2a8c259dbff (patch) | |
tree | 2dc37771e7cc9eeabaf9f2745192aa1b5ee5565e /build.sh | |
parent | b63ed78da0af2db878abd72231e926f4a6965ba5 (diff) | |
download | SharpRIDHijack-3fa65111a3862358f0f9f9191972d2a8c259dbff.tar.gz SharpRIDHijack-3fa65111a3862358f0f9f9191972d2a8c259dbff.zip |
added build script for mono
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..2acaf16 --- /dev/null +++ b/build.sh @@ -0,0 +1,20 @@ +#!/bin/bash +set -e + +repo_name=$( basename -s .git $(git remote get-url origin) ) + +docker run --rm -it -v $(pwd):/app -w /app mono:latest bash -c ' + set -e + mkdir -p build + + nuget restore SharpRIDHijack.sln + msbuild SharpRIDHijack.sln /p:Configuration=Release /p:Platform="Any CPU" + msbuild SharpRIDHijack.sln /p:Configuration=Release /p:Platform=x64 + msbuild SharpRIDHijack.sln /p:Configuration=Release /p:Platform=x86 + + cp SharpRIDHijack/bin/Release/SharpRIDHijack.exe build/SharpRIDHijack-AnyCPU.exe + cp SharpRIDHijack/bin/x64/Release/SharpRIDHijack.exe build/SharpRIDHijack-x64.exe + cp SharpRIDHijack/bin/x86/Release/SharpRIDHijack.exe build/SharpRIDHijack-x86.exe +' + +printf "%s\n" "[inf] finished building ${repo_name}" |