diff --git a/Program.cs b/Program.cs index c5e1f3c..790dc19 100644 --- a/Program.cs +++ b/Program.cs @@ -48,7 +48,7 @@ public class Options @" / ___/_ __/ _/ |/ / |__ \ / __ \ /____/ ", @" \__ \ / / / / | / __/ / / / / / ", @" ___/ // / _/ / / | / __/_/ /_/ / ", - @" /____//_/ /___//_/|_| /____(_)____/ ", + @" /____//_/ /___//_/|_| /____(_)____/ ver 1.0.1 ", @"", @"A program to turn GuardDuty findings from the AWS API", @" into compliant STIX 2.0 ", diff --git a/dist/VERSION b/dist/VERSION new file mode 100644 index 0000000..7f20734 --- /dev/null +++ b/dist/VERSION @@ -0,0 +1 @@ +1.0.1 \ No newline at end of file diff --git a/dist/package-brew.sh b/dist/package-brew.sh new file mode 100755 index 0000000..e30a6e5 --- /dev/null +++ b/dist/package-brew.sh @@ -0,0 +1,58 @@ +#!/bin/sh + +# Clean the dist directory +rm -rf *-temp* +rm -f guardduty-stix-*.tgz +rm -f guardduty-stix-*.zip + +# Update version +VERSION=$(cat ./VERSION) +cp ../guardduty-stix.csproj ./guardduty-stix.csproj.bak +cat ./guardduty-stix.csproj.bak | sed "s/[^\<]*<\/Version>/${VERSION}<\/Version>/" > ../guardduty-stix.csproj + +## OSX + +# Prep +mkdir -p osx-x64-temp +# Build self-contained executable +dotnet publish --self-contained -c Release -r osx-x64 -o ./dist/osx-x64-temp ../guardduty-stix.csproj +# Tar it for release to GitHub +tar -cvzf ./guardduty-stix-osx-x64-${VERSION}.tgz ./osx-x64-temp/ +# Clean up +rm -rf osx-x64-temp + +## WIN PORTABLE + +# Prep +mkdir -p win-x64-temp +# Build self-contained executable +dotnet publish --self-contained -c Release -r win-x64 -o ./dist/win-x64-temp ../guardduty-stix.csproj +# Tar it for release to GitHub +zip ./guardduty-stix-win-x64-${VERSION}.zip ./win-x64-temp/* +# Clean up +rm -rf win-x64-temp + +## WIN PORTABLE + +# Prep +mkdir -p win-x64-temp +# Build self-contained executable +dotnet publish --self-contained -c Release -r win-x64 -o ./dist/win-x64-temp ../guardduty-stix.csproj +# Tar it for release to GitHub +zip ./guardduty-stix-win-x64-${VERSION}.zip ./win-x64-temp/* +# Clean up +rm -rf win-x64-temp + +## LINUX PORTABLE + +# Prep +mkdir -p linux-x64-temp +# Build self-contained executable +dotnet publish --self-contained -c Release -r linux-x64 -o ./dist/linux-x64-temp ../guardduty-stix.csproj +# Tar it for release to GitHub +tar -cvzf ./guardduty-stix-linux-x64-${VERSION}.tgz ./linux-x64-temp/ +# Clean up +rm -rf linux-x64-temp + +## CLEANUP +rm -f ./guardduty-stix.csproj.bak diff --git a/guardduty-stix.csproj b/guardduty-stix.csproj index 28f3ad4..d2372ce 100644 --- a/guardduty-stix.csproj +++ b/guardduty-stix.csproj @@ -3,7 +3,17 @@ Exe netcoreapp2.1 + win-x64;osx-x64;linux-x64 guardduty_stix + com.seanmcelroy.guardduty_stix + guardduty-stix + A program to turn GuardDuty findings from the AWS API into compliant STIX 2.0 + 1.0.0 + Sean McElroy + Copyright 2018 Sean McElroy + https://github.com/seanmcelroy/guardduty-stix/blob/master/LICENSE + https://github.com/seanmcelroy/guardduty-stix + stix;guardduty