vendor: import KillerPDF 1.7.5 source (GPL-3.0) as the base for MMD PDF

This commit is contained in:
2026-08-27 06:58:22 +02:00
commit 532485a830
577 changed files with 149058 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
$ErrorActionPreference = 'Stop'
$toolsDir = Split-Path -Parent $MyInvocation.MyCommand.Definition
$version = $env:ChocolateyPackageVersion
$installDir = Join-Path $env:ProgramFiles 'KillerPDF'
$installExe = Join-Path $installDir 'KillerPDF.exe'
$packageArgs = @{
packageName = $env:ChocolateyPackageName
fileFullPath = Join-Path $toolsDir 'KillerPDF.exe'
url64bit = "https://github.com/SteveTheKiller/KillerPDF/releases/download/v$version/KillerPDF.exe"
checksum64 = 'REPLACE_HASH'
checksumType64 = 'sha256'
}
Get-ChocolateyWebFile @packageArgs
# Copy to Program Files
New-Item -ItemType Directory -Force -Path $installDir | Out-Null
Copy-Item (Join-Path $toolsDir 'KillerPDF.exe') $installExe -Force
# Start Menu shortcut (All Users)
$startMenuPath = Join-Path $env:ProgramData 'Microsoft\Windows\Start Menu\Programs\KillerPDF.lnk'
Install-ChocolateyShortcut -ShortcutFilePath $startMenuPath -TargetPath $installExe
+7
View File
@@ -0,0 +1,7 @@
$ErrorActionPreference = 'Stop'
$installDir = Join-Path $env:ProgramFiles 'KillerPDF'
if (Test-Path $installDir) { Remove-Item $installDir -Recurse -Force }
$startMenuPath = Join-Path $env:ProgramData 'Microsoft\Windows\Start Menu\Programs\KillerPDF.lnk'
if (Test-Path $startMenuPath) { Remove-Item $startMenuPath -Force }