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
+42
View File
@@ -0,0 +1,42 @@
name: Chocolatey Release
on:
release:
types: [published]
workflow_dispatch:
inputs:
tag:
description: 'Release tag (e.g. v1.4.2)'
required: true
jobs:
push:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Build and push Chocolatey package
shell: pwsh
env:
CHOCO_API_KEY: ${{ secrets.CHOCOLATEY_API_KEY }}
run: |
$releaseTag = if ("${{ github.event_name }}" -eq "workflow_dispatch") { "${{ github.event.inputs.tag }}" } else { "${{ github.event.release.tag_name }}" }
$version = $releaseTag.TrimStart('v')
$exeUrl = "https://github.com/SteveTheKiller/KillerPDF/releases/download/$releaseTag/KillerPDF.exe"
# Download release EXE and compute hash
Write-Host "Downloading $exeUrl..."
Invoke-WebRequest -Uri $exeUrl -OutFile "$env:RUNNER_TEMP\KillerPDF.exe"
$hash = (Get-FileHash "$env:RUNNER_TEMP\KillerPDF.exe" -Algorithm SHA256).Hash
Write-Host "SHA256: $hash"
# Stamp version and hash into package files
$nuspec = "choco\killerpdf.nuspec"
$install = "choco\tools\chocolateyInstall.ps1"
(Get-Content $nuspec) -replace 'REPLACE_VERSION', $version | Set-Content $nuspec
(Get-Content $install) -replace 'REPLACE_HASH', $hash | Set-Content $install
# Pack and push
choco pack choco\killerpdf.nuspec --out "$env:RUNNER_TEMP"
choco push "$env:RUNNER_TEMP\killerpdf.$version.nupkg" --source https://push.chocolatey.org --api-key $env:CHOCO_API_KEY
+33
View File
@@ -0,0 +1,33 @@
name: WinGet Release
on:
release:
types: [published]
workflow_dispatch:
inputs:
tag:
description: 'Release tag (e.g. v1.4.1)'
required: true
jobs:
submit:
runs-on: windows-latest
steps:
- name: Install Komac
run: |
$tag = (Invoke-RestMethod "https://api.github.com/repos/russellbanks/Komac/releases/latest").tag_name
$ver = $tag.TrimStart('v')
$url = "https://github.com/russellbanks/Komac/releases/download/$tag/komac-$ver-x86_64-pc-windows-msvc.exe"
Invoke-WebRequest -Uri $url -OutFile "$env:RUNNER_TEMP\komac.exe"
Add-Content $env:GITHUB_PATH $env:RUNNER_TEMP
shell: pwsh
- name: Submit to WinGet
run: |
$releaseTag = if ("${{ github.event_name }}" -eq "workflow_dispatch") { "${{ github.event.inputs.tag }}" } else { "${{ github.event.release.tag_name }}" }
$version = $releaseTag.TrimStart('v')
$url = "https://github.com/SteveTheKiller/KillerPDF/releases/download/$releaseTag/KillerPDF.exe"
komac update SteveTheKiller.KillerPDF --version $version --urls $url --submit
env:
GITHUB_TOKEN: ${{ secrets.WINGET_TOKEN }}
shell: pwsh