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 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 diff --git a/release/winget/winget.md b/release/winget/winget.md new file mode 100644 index 0000000000..2828fe9da6 --- /dev/null +++ b/release/winget/winget.md @@ -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 + \ No newline at end of file