-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added release script to automate packaging of release
- Loading branch information
Warrick FitzGerald
committed
Oct 15, 2018
1 parent
379f61d
commit b380bb3
Showing
2 changed files
with
27 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
@echo off | ||
SETLOCAL ENABLEDELAYEDEXPANSION | ||
|
||
rmdir /s /q releases | ||
md releases | ||
|
||
rmdir /s /q .\EOSEasyContract\bin\release | ||
|
||
set winOS=win-x64 | ||
# set unixOS=osx-x64 linux-x64 | ||
|
||
for %%N in (%winOS%) do ( | ||
set rid=%%N | ||
dotnet publish ./EOSEasyContract/EOSEasyContract.csproj -c release -r !rid! | ||
7z a -tzip ./releases/EOSEasyContract-!rid!.zip ./EOSEasyContract/bin/release/netcoreapp2.1/!rid!/publish/* -r | ||
) | ||
|
||
for %%N in (%unixOS%) do ( | ||
set rid=%%N | ||
dotnet publish ./EOSEasyContract/EOSEasyContract.csproj -c release -r !rid! | ||
7z a -ttar -so ./releases/EOSEasyContract-!rid!.tar ./EOSEasyContract/bin/release/netcoreapp2.1/!rid!/publish/* -r | 7z a -si ./releases/EOSEasyContract-!rid!.tar.gz | ||
) |