From cef5841e4bbe72592aaf426faff60062a0bc4bbb Mon Sep 17 00:00:00 2001 From: Baudin Date: Tue, 24 Dec 2019 14:57:02 +0100 Subject: [PATCH] Changed the local release to be able to release easier --- local_release.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) mode change 100644 => 100755 local_release.sh diff --git a/local_release.sh b/local_release.sh old mode 100644 new mode 100755 index 793961d..16b181a --- a/local_release.sh +++ b/local_release.sh @@ -1,12 +1,15 @@ -# The following variables are defaults, but can be overwritten as cli arguments, such as by running zdragon_release /usr/local/tempBinForDev -# This can be useful for one-time changes, but it is recommended to just edit the file if you want to do this often. - + # Default bin location for mac OUTPUT_DIR="${1:-/usr/local/bin/}" + # Defaults to mac OS="${2:-osx-x64}" -# If your zdragon source location differs from this, edit this variable. -SOURCE_DIR="${3:-$HOME/Projects/dotnet/ZDragon.NET/CLI}" + +# The name of the cli app APP_NAME="${4:-ckc}" -dotnet publish "$SOURCE_DIR" -c Release --runtime "$OS" /p:PublishSingleFile=true -o "$OUTPUT_DIR" + +# publish the app +dotnet publish ./CLI -c Release --runtime "$OS" /p:PublishSingleFile=true -o "$OUTPUT_DIR" + +# rename mv -v "$OUTPUT_DIR"CLI "$OUTPUT_DIR""$APP_NAME" \ No newline at end of file