From bb0d3c3ac35669d3aa239a8eed3447b39bb9843d Mon Sep 17 00:00:00 2001 From: matt wilkie Date: Fri, 13 Dec 2024 23:09:10 -0700 Subject: [PATCH 1/4] 1st crack at Winget package manifest Add to Winget package repository #773 https://github.com/microsoft/winget-pkgs/pull/198907 --- .github/workflows/release-winget.yml | 13 +++++++ .../winget/TriliumNext.Notes.installer.yaml | 26 +++++++++++++ .../TriliumNext.Notes.locale.en-US.yaml | 39 +++++++++++++++++++ release/winget/TriliumNext.Notes.yaml | 8 ++++ 4 files changed, 86 insertions(+) create mode 100644 .github/workflows/release-winget.yml create mode 100644 release/winget/TriliumNext.Notes.installer.yaml create mode 100644 release/winget/TriliumNext.Notes.locale.en-US.yaml create mode 100644 release/winget/TriliumNext.Notes.yaml diff --git a/.github/workflows/release-winget.yml b/.github/workflows/release-winget.yml new file mode 100644 index 0000000000..28555efe7c --- /dev/null +++ b/.github/workflows/release-winget.yml @@ -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 }} \ No newline at end of file diff --git a/release/winget/TriliumNext.Notes.installer.yaml b/release/winget/TriliumNext.Notes.installer.yaml new file mode 100644 index 0000000000..50b24f95a8 --- /dev/null +++ b/release/winget/TriliumNext.Notes.installer.yaml @@ -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 \ No newline at end of file diff --git a/release/winget/TriliumNext.Notes.locale.en-US.yaml b/release/winget/TriliumNext.Notes.locale.en-US.yaml new file mode 100644 index 0000000000..79371d91e7 --- /dev/null +++ b/release/winget/TriliumNext.Notes.locale.en-US.yaml @@ -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 diff --git a/release/winget/TriliumNext.Notes.yaml b/release/winget/TriliumNext.Notes.yaml new file mode 100644 index 0000000000..b7948738ba --- /dev/null +++ b/release/winget/TriliumNext.Notes.yaml @@ -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 From ca27b0a3fe762ba787089b32a374d3856fab4306 Mon Sep 17 00:00:00 2001 From: matt wilkie Date: Fri, 13 Dec 2024 23:12:55 -0700 Subject: [PATCH 2/4] symlink to CI release-winget.yml --- release/winget/release-winget.yml | 1 + 1 file changed, 1 insertion(+) create mode 120000 release/winget/release-winget.yml diff --git a/release/winget/release-winget.yml b/release/winget/release-winget.yml new file mode 120000 index 0000000000..65382755b4 --- /dev/null +++ b/release/winget/release-winget.yml @@ -0,0 +1 @@ +../../.github/workflows/release-winget.yml \ No newline at end of file From decbdf97e85b8286309a177bdc4dd78ac0b6f386 Mon Sep 17 00:00:00 2001 From: matt wilkie Date: Mon, 16 Dec 2024 20:15:11 -0700 Subject: [PATCH 3/4] a quick readme --- release/winget/winget.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 release/winget/winget.md diff --git a/release/winget/winget.md b/release/winget/winget.md new file mode 100644 index 0000000000..a859f6fe0d --- /dev/null +++ b/release/winget/winget.md @@ -0,0 +1,8 @@ +# ./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 + +## References + * https://github.com/russellbanks/Komac + * https://github.com/vedantmgoyal9/winget-releaser + \ No newline at end of file From 466694989578e72492b5dbcf33cd6fc0202f869e Mon Sep 17 00:00:00 2001 From: matt wilkie Date: Mon, 16 Dec 2024 20:34:10 -0700 Subject: [PATCH 4/4] expect to wait for a release to be ready to use --- release/winget/winget.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/release/winget/winget.md b/release/winget/winget.md index a859f6fe0d..2828fe9da6 100644 --- a/release/winget/winget.md +++ b/release/winget/winget.md @@ -2,6 +2,8 @@ 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