Skip to content
This repository has been archived by the owner on Jul 3, 2020. It is now read-only.

Commit

Permalink
Merge pull request #11 from pamidur/warp-pack
Browse files Browse the repository at this point in the history
made publish use trimming and warp pack
  • Loading branch information
ljmf00 authored Nov 18, 2019
2 parents ce8a56c + ed0d061 commit 07a1c01
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ mkdir -p artifacts/

pushd src
if [[ $1 == "netcoreapp3.0" ]]; then
dotnet publish -c Release -f $1 -r $2 /p:PublishSingleFile=true /p:UsePreviewVersion=true
dotnet new tool-manifest --force
dotnet tool install --local dotnet-warp
dotnet warp -r "$2" -p "Configuration=Release" -p "PublishTrimmed=true" -p "UsePreviewVersion=true"
if [[ $2 == win-* ]]; then
BIN_EXT=".exe"
else
BIN_EXT=""
fi
mv -f "bin/Release/$1/$2/publish/Codacy.CSharpCoverage$BIN_EXT" "../artifacts/Codacy.CSharpCoverage_$2$BIN_EXT"
mv -f "Codacy.CSharpCoverage$BIN_EXT" "../artifacts/Codacy.CSharpCoverage_$2$BIN_EXT"
else
dotnet publish -c Release -f $1 -r $2
pushd bin/Release/$1/$2/publish
Expand Down

0 comments on commit 07a1c01

Please sign in to comment.