diff --git a/build.ps1 b/build.ps1 index 2d486db0..946069c8 100644 --- a/build.ps1 +++ b/build.ps1 @@ -19,11 +19,13 @@ foreach ($Folder in $Folders) { &"$MSBuildPath" /verbosity:minimal /restore /p:Configuration=Release # Build single-exe packaged projects -dotnet publish -v minimal -c Release "$PSScriptRoot\src\Update\Update.csproj" -o "$Out" +dotnet publish -v minimal -c Release "$PSScriptRoot\src\Update\Update.csproj" -o "$Out" --self-contained true -p:IncludeNativeLibrariesForSelfExtract=true -p:PublishTrimmed=true -p:TrimMode=link +Move-Item "$Out\Update.exe" -Destination "$Out\UpdateSelfContained.exe" +dotnet publish -v minimal -c Release "$PSScriptRoot\src\Update\Update.csproj" -o "$Out" --self-contained false dotnet publish -v minimal -c Release "$PSScriptRoot\src\SyncReleases\SyncReleases.csproj" -o "$Out" # Copy over all files we need -Move-Item "$Out\Update.exe" -Destination "$Out\Squirrel.exe" +Copy-Item "$Out\Update.exe" -Destination "$Out\Squirrel.exe" Move-Item "$Out\Update.com" -Destination "$Out\Squirrel.com" # Move-Item "$Out\Update.pdb" -Destination "$Out\Squirrel.pdb" @@ -37,7 +39,7 @@ Copy-Item "$In\Win32\WriteZipToSetup.exe" -Destination "$Out" Copy-Item "$In\Win32\WriteZipToSetup.pdb" -Destination "$Out" Copy-Item -Path "$PSScriptRoot\vendor\7zip\*" -Destination "$Out" -Recurse -# Copy-Item -Path "$PSScriptRoot\vendor\wix\*" -Destination "$Out" -Recurse +Copy-Item -Path "$PSScriptRoot\vendor\wix\*" -Destination "$Out" -Recurse Copy-Item "$PSScriptRoot\.nuget\NuGet.exe" -Destination "$Out" Remove-Item "$Out\*.pdb" diff --git a/src/Update/Update.csproj b/src/Update/Update.csproj index b101e7d7..34249d25 100644 --- a/src/Update/Update.csproj +++ b/src/Update/Update.csproj @@ -1,4 +1,4 @@ - + @@ -7,7 +7,6 @@ app.manifest en true - false win-x64 squirrel.ico