Skip to content

Commit

Permalink
Added release script to automate packaging of release
Browse files Browse the repository at this point in the history
  • Loading branch information
Warrick FitzGerald committed Oct 15, 2018
1 parent 379f61d commit b380bb3
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
5 changes: 5 additions & 0 deletions EOSCPPManagerLib/Util.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,10 @@ public static string getContainerName(string sourceCodePath)
string pathMD5 = Util.CreateMD5(sourceCodePath);
return "EOSCDT" + "-" + pathMD5;
}

public static void copyLibs(string destinationPath)
{

}
}
}
22 changes: 22 additions & 0 deletions release.bat
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
)

0 comments on commit b380bb3

Please sign in to comment.