Skip to content

Commit

Permalink
Changed the local release to be able to release easier
Browse files Browse the repository at this point in the history
  • Loading branch information
Baudin999 committed Dec 24, 2019
1 parent 4a0db35 commit cef5841
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions local_release.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit cef5841

Please sign in to comment.