Skip to content

Commit

Permalink
Removed trimming package from the packaging script
Browse files Browse the repository at this point in the history
  • Loading branch information
hmlendea committed May 15, 2021
1 parent 7fdddf4 commit 7ae6c3e
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,7 @@ function dotnet-pub {
dotnet publish -c Release -r "$ARCH" -o "$OUTPUT_DIR" --self-contained=true /p:TrimUnusedDependencies=true /p:LinkDuringPublish=true
}

function prepare {
echo "Adding the temporary NuGet packages"
dotnet add package Microsoft.Packaging.Tools.Trimming --version 1.1.0-preview1-26619-01
#dotnet add package ILLink.Tasks --version 0.1.5-preview-1841731 --source https://dotnet.myget.org/F/dotnet-core/api/v3/index.json
}

function cleanup {
echo "Removing the temporary NuGet packages"
dotnet remove package Microsoft.Packaging.Tools.Trimming
#dotnet remove package ILLink.Task

echo "Cleaning build output"
rm -rf "$PUBLISH_DIR"
}
Expand All @@ -56,12 +46,10 @@ function build-release {
package $1
}

prepare

build-release linux-arm
build-release linux-arm64
build-release linux-x64
build-release osx-x64
build-release win-x64
build-release osx-x64

cleanup

0 comments on commit 7ae6c3e

Please sign in to comment.