Skip to content
Merged
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
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,33 @@ jobs:
git commit -m "Update to v${VERSION}"
git push

update-winget:
name: Update Winget manifest
needs: release
runs-on: windows-latest
steps:
- name: Install wingetcreate
shell: pwsh
run: |
$ErrorActionPreference = 'Stop'
Invoke-WebRequest -Uri "https://aka.ms/wingetcreate/latest/self-contained" -OutFile wingetcreate.exe
if (-not (Test-Path wingetcreate.exe)) { throw "Failed to download wingetcreate" }

- name: Update and submit manifest
shell: pwsh
env:
WINGET_PAT: ${{ secrets.WINGET_PAT }}
run: |
$ErrorActionPreference = 'Stop'
$version = "${{ github.ref_name }}".TrimStart("v")
$x64Url = "https://github.com/felipemorandini/smartlog/releases/download/${{ github.ref_name }}/smartlog-x86_64-pc-windows-msvc.zip"
$arm64Url = "https://github.com/felipemorandini/smartlog/releases/download/${{ github.ref_name }}/smartlog-aarch64-pc-windows-msvc.zip"
.\wingetcreate.exe update FelipeMorandini.smartlog `
--version $version `
--urls $x64Url $arm64Url `
--submit `
--token $env:WINGET_PAT

update-homebrew:
name: Update Homebrew formula
needs: release
Expand Down
15 changes: 6 additions & 9 deletions ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
- [x] Register `smartlog-bin` on the AUR and push initial PKGBUILD
- [x] Automate AUR updates in the release workflow (`update-aur` job in `release.yml`)

### 6.3 Winget Manifest (Windows) — PARTIALLY DONE
### 6.3 Winget Manifest (Windows) — DONE
- [x] Create a manifest (v1.6.0 schema) pointing to the GitHub Release `.zip` assets
- [x] Add `winget install` instructions to README
- [ ] Compute real SHA256 hashes for current release assets
- [ ] Submit initial PR to [microsoft/winget-pkgs](https://github.com/microsoft/winget-pkgs)
- [ ] Automate manifest updates via [wingetcreate](https://github.com/microsoft/winget-create) in the release workflow
- [x] Compute real SHA256 hashes for current release assets
- [x] Submit initial PR to [microsoft/winget-pkgs](https://github.com/microsoft/winget-pkgs)
- [x] Automate manifest updates via `wingetcreate` in the release workflow (`update-winget` job)

### 6.4 CHANGELOG.md — DONE
- [x] Create a `CHANGELOG.md` following [Keep a Changelog](https://keepachangelog.com) format
Expand All @@ -34,10 +34,7 @@

## Remaining Work

| Priority | Item | Effort | Description |
|----------|------|--------|-------------|
| Medium | Winget submission | Small | Compute checksums, submit initial PR to winget-pkgs |
| Medium | Winget automation | Medium | Add `wingetcreate` step to release workflow for auto-submission |
All distribution channels are complete. No remaining work.

## Completed Distribution Channels

Expand All @@ -48,4 +45,4 @@
| crates.io | Yes | Published on release |
| Debian .deb (x86_64 + ARM64) | Yes | Built and attached to release |
| AUR (Arch Linux) | Yes | `update-aur` job in release.yml, `AUR_SSH_KEY` secret configured |
| Winget (Windows) | No | Template in `packaging/winget/`, manual submission |
| Winget (Windows) | Yes | `update-winget` job in release.yml, `WINGET_PAT` secret configured |
10 changes: 5 additions & 5 deletions packaging/winget/FelipeMorandini.smartlog.installer.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# yaml-language-server: $schema=https://aka.ms/winget-manifest.installer.1.6.0.schema.json

PackageIdentifier: FelipeMorandini.smartlog
PackageVersion: 0.5.0
PackageVersion: 0.6.1
InstallerType: zip
NestedInstallerType: portable
NestedInstallerFiles:
- RelativeFilePath: smartlog.exe
PortableCommandAlias: smartlog
Installers:
- Architecture: x64
InstallerUrl: https://github.com/felipemorandini/smartlog/releases/download/v0.5.0/smartlog-x86_64-pc-windows-msvc.zip
InstallerSha256: PLACEHOLDER_UPDATE_ON_RELEASE
InstallerUrl: https://github.com/felipemorandini/smartlog/releases/download/v0.6.1/smartlog-x86_64-pc-windows-msvc.zip
InstallerSha256: 592990BEF6FDFEA5A2BA87DAA468D28F03B2D7C23AB85DB60DA615867DB946AD
- Architecture: arm64
InstallerUrl: https://github.com/felipemorandini/smartlog/releases/download/v0.5.0/smartlog-aarch64-pc-windows-msvc.zip
InstallerSha256: PLACEHOLDER_UPDATE_ON_RELEASE
InstallerUrl: https://github.com/felipemorandini/smartlog/releases/download/v0.6.1/smartlog-aarch64-pc-windows-msvc.zip
InstallerSha256: 6F5B261B2A28787B63D8DB2CF2006474E584DA071899AB8969FBD0C7F147401E
ManifestType: installer
ManifestVersion: 1.6.0
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# yaml-language-server: $schema=https://aka.ms/winget-manifest.defaultLocale.1.6.0.schema.json

PackageIdentifier: FelipeMorandini.smartlog
PackageVersion: 0.5.0
PackageVersion: 0.6.1
PackageLocale: en-US
Publisher: Felipe Pires Morandini
PublisherUrl: https://github.com/felipemorandini
Expand Down
2 changes: 1 addition & 1 deletion packaging/winget/FelipeMorandini.smartlog.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# yaml-language-server: $schema=https://aka.ms/winget-manifest.version.1.6.0.schema.json

PackageIdentifier: FelipeMorandini.smartlog
PackageVersion: 0.5.0
PackageVersion: 0.6.1
DefaultLocale: en-US
ManifestType: version
ManifestVersion: 1.6.0
Loading