Explorar el Código

Add compressed Windows installer

icp0 hace 2 semanas
padre
commit
56a3326775
Se han modificado 2 ficheros con 10 adiciones y 0 borrados
  1. BIN
      dist/AutorentSetup.exe
  2. 10 0
      scripts/build_installer.ps1

BIN
dist/AutorentSetup.exe


+ 10 - 0
scripts/build_installer.ps1

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