Skip to content

Commit 2165075

Browse files
authored
feat: use pandoc to generate license.rtf (#29)
* feat: show license * feat: use pandoc to generate license.rtf
1 parent 0f65897 commit 2165075

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

.github/workflows/reusable-package.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ jobs:
88
- name: Install WiX v4
99
shell: pwsh
1010
run: dotnet tool install --global wix
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
12+
- name: Install Pandoc
13+
shell: pwsh
14+
run: choco install pandoc
1215
- name: Build package
1316
shell: pwsh
1417
run: ./src/Build-Installer.ps1

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ winget install --id DEVCOM.JetBrainsMonoNerdFont
1414

1515
- [WiX v4](https://wixtoolset.org/docs/intro/)
1616
- [GitHub CLI](https://cli.github.com/)
17+
- [Pandoc](https://pandoc.org/)
1718

1819
Install them with the following commands:
1920

2021
```powershell
2122
dotnet tool install --global wix
2223
winget install --id GitHub.cli
24+
winget install --id JohnMacFarlane.Pandoc
2325
```
2426

2527
## Build

src/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,3 +486,4 @@ $RECYCLE.BIN/
486486
Fonts/
487487
Package.wxs
488488
*.zip
489+
License.rtf

src/Build-Installer.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,6 @@ $version = $Matches.version
2828
-creplace '(\bVersion=)"[\d.]+"', ('$1"' + $version + '"') `
2929
> $PSScriptRoot\Package.wxs
3030

31+
pandoc -s -i $PSScriptRoot\..\License.txt -o $PSScriptRoot\License.rtf
32+
3133
dotnet build -c Release $PSScriptRoot\JetBrainsMono.wixproj

0 commit comments

Comments
 (0)