File tree Expand file tree Collapse file tree 1 file changed +32
-1
lines changed Expand file tree Collapse file tree 1 file changed +32
-1
lines changed Original file line number Diff line number Diff line change 88 - uses : actions/checkout@v3
99 - name : Build package
1010 shell : pwsh
11- run : " & \" ./Build-Installer.ps1\" "
11+ run : |
12+ $asset = gh release view `
13+ -R ryanoasis/nerd-fonts `
14+ --json assets `
15+ -q '.assets[].url|match("^.*JetBrainsMono.*$"; "g")|.string'
16+
17+ Invoke-WebRequest -Uri $asset -OutFile $PSScriptRoot\JetBrainsMono.zip
18+ Remove-Item `
19+ -Path $PSScriptRoot\JetBrainsMonoNF\Fonts `
20+ -Recurse `
21+ -Force `
22+ -ErrorAction SilentlyContinue
23+ New-Item `
24+ -Path $PSScriptRoot\JetBrainsMonoNF\Fonts `
25+ -ItemType Directory
26+ Expand-Archive `
27+ -Path $PSScriptRoot\JetBrainsMono.zip `
28+ -DestinationPath $PSScriptRoot\JetBrainsMonoNF\Fonts `
29+ -Force
30+ Remove-Item `
31+ -Path $PSScriptRoot\JetBrainsMonoNF\Fonts\* `
32+ -Exclude *Windows*
33+
34+ $asset -match '/v(?<version>[\d.]+)/'
35+ $version = $Matches.version
36+
37+ (Get-Content -Path $PSScriptRoot\JetBrainsMonoNF\Product.xml) `
38+ -creplace '(\bVersion=)"[\d.]+"', ('$1"' + $version + '"') `
39+ > $PSScriptRoot\JetBrainsMonoNF\Product.wxs
40+
41+ msbuild /p:Configuration=Release `
42+ $PSScriptRoot\JetBrainsMonoNF\JetBrainsMonoNF.wixproj
1243 env :
1344 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
1445 - uses : actions/upload-artifact@v3
You can’t perform that action at this time.
0 commit comments