Skip to content

Commit

Permalink
Adjust build scripts to produce AoT
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikwidlund committed Jan 18, 2025
1 parent bfa8fab commit 59dab58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.cmd
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
SET currentDirectory=%cd%
IF EXIST "%currentDirectory%\artifacts" ( RMDIR /s /q "%currentDirectory%\artifacts" )
dotnet publish "%currentDirectory%\src\HostsParser\HostsParser.csproj" -c Release -o artifacts
dotnet publish "%currentDirectory%\src\HostsParser\HostsParser.csproj" -c Release -o artifacts -p:PublishAot=true
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
if [ -d "./artifacts" ]; then
rm -r ./artifacts
fi
dotnet publish "./src/HostsParser/HostsParser.csproj" -c Release -o artifacts
dotnet publish "./src/HostsParser/HostsParser.csproj" -c Release -o artifacts -p:PublishAot=true

0 comments on commit 59dab58

Please sign in to comment.