|
@@ -19,8 +19,13 @@ dotnet publish $appProject `
|
|
|
--self-contained true `
|
|
--self-contained true `
|
|
|
-p:PublishSingleFile=true `
|
|
-p:PublishSingleFile=true `
|
|
|
-p:IncludeNativeLibrariesForSelfExtract=true `
|
|
-p:IncludeNativeLibrariesForSelfExtract=true `
|
|
|
|
|
+ -p:EnableCompressionInSingleFile=true `
|
|
|
|
|
+ -p:DebugType=None `
|
|
|
|
|
+ -p:DebugSymbols=false `
|
|
|
--output $publishDir
|
|
--output $publishDir
|
|
|
|
|
|
|
|
|
|
+Get-ChildItem -LiteralPath $publishDir -Filter "*.pdb" -File | Remove-Item -Force
|
|
|
|
|
+
|
|
|
if (Test-Path $installerZip) {
|
|
if (Test-Path $installerZip) {
|
|
|
Remove-Item -LiteralPath $installerZip -Force
|
|
Remove-Item -LiteralPath $installerZip -Force
|
|
|
}
|
|
}
|
|
@@ -35,8 +40,13 @@ dotnet publish $installerProject `
|
|
|
--self-contained true `
|
|
--self-contained true `
|
|
|
-p:PublishSingleFile=true `
|
|
-p:PublishSingleFile=true `
|
|
|
-p:IncludeNativeLibrariesForSelfExtract=true `
|
|
-p:IncludeNativeLibrariesForSelfExtract=true `
|
|
|
|
|
+ -p:EnableCompressionInSingleFile=true `
|
|
|
|
|
+ -p:DebugType=None `
|
|
|
|
|
+ -p:DebugSymbols=false `
|
|
|
--output $distDir
|
|
--output $distDir
|
|
|
|
|
|
|
|
|
|
+Get-ChildItem -LiteralPath $distDir -Filter "*.pdb" -File | Remove-Item -Force
|
|
|
|
|
+
|
|
|
Write-Host ""
|
|
Write-Host ""
|
|
|
Write-Host "Installer is ready:"
|
|
Write-Host "Installer is ready:"
|
|
|
Write-Host " $(Join-Path $distDir 'AutorentSetup.exe')"
|
|
Write-Host " $(Join-Path $distDir 'AutorentSetup.exe')"
|