Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into miscovet/makefile
- Loading branch information
Showing
5 changed files
with
295 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
#!/bin/bash | ||
|
||
make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
release="Debug" | ||
#!/bin/bash | ||
|
||
RELEASE="Debug" | ||
while [ "$1" != "" ]; do | ||
case $1 in | ||
-r | --release ) shift | ||
release=$1 | ||
case "$1" in | ||
-r | --release ) | ||
shift | ||
RELEASE="$1" | ||
esac | ||
shift | ||
done | ||
|
||
if ["$release" = "Debug"); then | ||
if [ "$RELEASE" == "Debug" ]; then | ||
dotnet build | ||
elif [ "$RELEASE" == "Release" ]; then | ||
VERSION=$(nbgv get-version -v AssemblyInformationalVersion) | ||
dotnet publish -c "$RELEASE" -r osx-x64 --self-contained true && ../Tools/macos-x64.warp-packer --arch macos-x64 --input_dir bin/Release/netcoreapp2.2/osx-x64/publish/ --exec AttackSurfaceAnalyzerCli --output bin/AttackSurfaceAnalyzerCli-macos-$VERSION.bin | ||
chmod +x bin/AttackSurfaceAnalyzerCli-macos-$VERSION.bin | ||
echo "Build completed, result is located at bin/AttackSurfaceAnalyzerCli-macos-$VERSION.bin" | ||
fi | ||
if ["$release" = "Release"]; then | ||
version=`nbgv get-version -v AssemblyInformationalVersion` | ||
dotnet publish -c Release -r osx-x64 --self-contained true && ../Tools/macos-x64.warp-packer --arch macos-x64 --input_dir bin/Release/netcoreapp2.1/osx-x64/publish/ --exec AttackSurfaceAnalyzerCli --output bin/AttackSurfaceAnalyzerCli-macos-$version.bin | ||
chmod +x AttackSurfaceAnalyzerCli | ||
fi |
Oops, something went wrong.