Skip to content

Commit

Permalink
feat: v3.1.1 (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
ateoi committed Dec 9, 2023
1 parent 23c3cfc commit d7fa7af
Show file tree
Hide file tree
Showing 18 changed files with 151 additions and 278 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/reusable-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@ jobs:
package:
runs-on: windows-latest
steps:
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Install WiX v4
shell: pwsh
run: dotnet tool install --global wix
- uses: actions/checkout@v3
- name: Build package
shell: pwsh
run: ./JetBrainsMono/Build-Installer.ps1
run: ./src/Build-Installer.ps1
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v3
with:
name: build
path: JetBrainsMono/bin/Release/*.msi
path: src/bin/Release/en-US/*.msi
if-no-files-found: error
25 changes: 0 additions & 25 deletions JetBrainsMono.sln

This file was deleted.

4 changes: 0 additions & 4 deletions JetBrainsMono/.gitignore

This file was deleted.

48 changes: 0 additions & 48 deletions JetBrainsMono/JetBrainsMono.wixproj

This file was deleted.

20 changes: 0 additions & 20 deletions JetBrainsMono/Product.xml

This file was deleted.

35 changes: 8 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# JetBrainsMono Nerd Font installer for Windows

This is a [WiX v3](https://wixtoolset.org/docs/v3/) based installer for the
This is a [WiX v4](https://wixtoolset.org/docs/intro/) based installer for the
[JetBrainsMono Nerd Font](https://www.nerdfonts.com/).

This installer is available on
Expand All @@ -12,38 +12,19 @@ winget install --id DEVCOM.JetBrainsMonoNerdFont

## Build prerequisites

- [Visual Studio 2022 (any edition)](https://visualstudio.microsoft.com/#vs-section)
- [WiX v3](https://wixtoolset.org/docs/wix3/)
- [WiX v3 - Visual Studio 2022 Extension](https://marketplace.visualstudio.com/items?itemName=WixToolset.WixToolsetVisualStudio2022Extension)
- [WiX v4](https://wixtoolset.org/docs/intro/)
- [GitHub CLI](https://cli.github.com/)

WiX v3 is available at <https://github.com/wixtoolset/wix3/releases/>. It
requires .NET Framework 3.5, which can be installed with the following command:
Install them with the following commands:

```powershell
Start-Process `
-FilePath pwsh `
-ArgumentList "-Command `"& {Enable-WindowsOptionalFeature -Online -FeatureName NetFx3}`"" `
-Wait `
-Verb RunAs
dotnet tool install --global wix
winget install --id GitHub.cli
```

## Build

Run the `JetBrainsMono\Build-Installer.ps1` PowerShell script to build the
installer.
Run the `src\Build-Installer.ps1` PowerShell script to build the installer.

If successful, the MSI file will be available in the `JetBrainsMono\bin\Release`
If successful, the MSI file will be available in the `src\bin\Release\en-US`
directory.

## Visual Studio project template

You can use the included [Visual Studio project
template](https://learn.microsoft.com/visualstudio/ide/creating-project-and-item-templates)
to build an installer for a Nerd Font of your choice. To use the template, zip
the files in the `VSTemplate` folder and copy it to your
`%USERPROFILE%\Documents\Visual Studio 2022\Templates\ProjectTemplates` folder.

After installing the template, create a new Visual Studio project using it, and
name the project with the name of one of the zip files available for download in
the [releases page](https://github.com/ryanoasis/nerd-fonts/releases) of the
Nerd Font GitHub repository.
32 changes: 0 additions & 32 deletions VSTemplate/Build-Installer.ps1

This file was deleted.

48 changes: 0 additions & 48 deletions VSTemplate/NerdFont.wixproj

This file was deleted.

23 changes: 0 additions & 23 deletions VSTemplate/NerdFontInstaller.vstemplate

This file was deleted.

20 changes: 0 additions & 20 deletions VSTemplate/Product.xml

This file was deleted.

18 changes: 0 additions & 18 deletions VSTemplate/TrueType.xsl

This file was deleted.

Binary file removed VSTemplate/__TemplateIcon.ico
Binary file not shown.
Loading

0 comments on commit d7fa7af

Please sign in to comment.