Переглянути джерело

Добавление установщика

icp0 2 тижнів тому
батько
коміт
cde09989d0
2 змінених файлів з 10 додано та 0 видалено
  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')"