Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/winget: adds TriliumNext Notes to winget community package repo #804

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/release-winget.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Publish to WinGet
on:
release:
types: [released]
jobs:
publish:
runs-on: windows-latest
steps:
- uses: vedantmgoyal9/winget-releaser@main
with:
identifier: TriliumNext.Notes
installers-regex: '\.exe$' # Only .exe files
token: ${{ secrets.WINGET_TOKEN }}
26 changes: 26 additions & 0 deletions release/winget/TriliumNext.Notes.installer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Created with komac v2.8.0
# yaml-language-server: $schema=https://aka.ms/winget-manifest.installer.1.9.0.schema.json

PackageIdentifier: TriliumNext.Notes
PackageVersion: 0.90.12
InstallerType: exe
InstallModes:
- interactive
- silent
UpgradeBehavior: install
ReleaseDate: 2024-11-24
Installers:
- Architecture: x64
InstallerUrl: https://github.com/TriliumNext/Notes/releases/download/v0.90.12/TriliumNextNotes-v0.90.12-windows-x64.exe
InstallerSha256: 1019333A83C6FBF26D79746134C1C0080D1094C0A4E6BB326A1C18B0726917A0
InstallerSwitches:
Silent: --silent
SilentWithProgress: --silent
- Architecture: arm64
InstallerUrl: https://github.com/TriliumNext/Notes/releases/download/v0.90.12/TriliumNextNotes-v0.90.12-windows-arm64.exe
InstallerSha256: 4B32C905580C28C58274B8A093B4211ABA8E81E3D7A3CBA87B0E92A2D1BFD320
InstallerSwitches:
Silent: --silent
SilentWithProgress: --silent
ManifestType: installer
ManifestVersion: 1.9.0
39 changes: 39 additions & 0 deletions release/winget/TriliumNext.Notes.locale.en-US.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Created with komac v2.8.0
# yaml-language-server: $schema=https://aka.ms/winget-manifest.defaultLocale.1.9.0.schema.json

PackageIdentifier: TriliumNext.Notes
PackageVersion: 0.90.12
PackageLocale: en-US
Publisher: TriliumNext Notes Team
PublisherUrl: https://github.com/TriliumNext/Notes
PublisherSupportUrl: https://github.com/orgs/TriliumNext/discussions
Author: TriliumNext
PackageName: Build your personal knowledge base with TriliumNext Notes
PackageUrl: https://github.com/TriliumNext/Notes
License: GNU Affero General Public License v3.0
LicenseUrl: https://github.com/TriliumNext/Notes/blob/master/LICENSE
Copyright: Copyright © 2024 TriliumNext Notes Team
CopyrightUrl: https://github.com/TriliumNext/Notes
ShortDescription: Build your personal knowledge base with TriliumNext Notes
Description: TriliumNext Notes is an open-source, cross-platform hierarchical note taking application with focus on building large personal knowledge bases.
Moniker: trilium
Tags:
- documentation-tool
- electron
- knowledge-graph
- knowledgebase
- local-first
- markdown
- note-managment
- note-taking-app
- notebook
- notes
- personal-wiki
- scriptable
- self-hosted
- self-hosting
- wiki
- wysiwyg
ReleaseNotesUrl: https://github.com/TriliumNext/Notes/releases/tag/v0.90.12
ManifestType: defaultLocale
ManifestVersion: 1.9.0
8 changes: 8 additions & 0 deletions release/winget/TriliumNext.Notes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Created with komac v2.8.0
# yaml-language-server: $schema=https://aka.ms/winget-manifest.version.1.9.0.schema.json

PackageIdentifier: TriliumNext.Notes
PackageVersion: 0.90.12
DefaultLocale: en-US
ManifestType: version
ManifestVersion: 1.9.0
1 change: 1 addition & 0 deletions release/winget/release-winget.yml
10 changes: 10 additions & 0 deletions release/winget/winget.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# ./release/winget

These yaml files are documentation/examples in case the Winget package installer manifest needs to be rebuilt. The authoritative files are at https://github.com/microsoft/winget-pkgs/tree/master/manifests/t/TriliumNext/Notes

It took ~1.5 hours for a new manifest & release binaries to pass the Winget validation CI, and at least 2 hours after that before it was available for install. I don't know if it'll be like that every time.

## References
* https://github.com/russellbanks/Komac
* https://github.com/vedantmgoyal9/winget-releaser