7 stable releases

2.6.0 Aug 31, 2024
2.5.0 Aug 27, 2024
2.3.0 Jun 24, 2024
2.2.1 Apr 15, 2024
2.1.1 Feb 23, 2024

#33 in Development tools

Download history 267/week @ 2024-07-18 1521/week @ 2024-07-25 1508/week @ 2024-08-01 1514/week @ 2024-08-08 1512/week @ 2024-08-15 2020/week @ 2024-08-22 1965/week @ 2024-08-29 1669/week @ 2024-09-05 1862/week @ 2024-09-12 1762/week @ 2024-09-19 1792/week @ 2024-09-26 1825/week @ 2024-10-03 1914/week @ 2024-10-10 2118/week @ 2024-10-17 2110/week @ 2024-10-24 2025/week @ 2024-10-31

8,433 downloads per month

GPL-3.0-or-later

1.5MB
10K SLoC

Komac logoKomac - Another WinGet Manifest Creator Komac banner

GitHub release (release name instead of tag name) GitHub Repo stars Issues License

Komac is an advanced CLI designed to create manifests for the WinGet Community Repository.

Komac is both blazingly fast πŸ”₯ and incredibly low on memory, using just ~3.5MB of memory on my machine.

Komac-demo

Installation

Komac is cross-platform and binaries are built for Windows, Linux, and macOS.

All platforms

If you have cargo installed, you can compile Rust for any platform

cargo install --locked komac

Komac also supports cargo-binstall:

cargo binstall komac

Nightly

Nightly releases that are built on every commit are available here. These are useful for debugging or if you want the latest features and fixes.

Windows

Both portable EXEs and installers are available from the releases.

WinGet

winget install komac

Scoop

scoop install komac

Linux

Portable binaries are available from the releases. Debian (.deb) and Red Hat (.rpm) installers are also available.

macOS

Portable binaries for macOS are available from the releases.

Homebrew

brew install russellbanks/tap/komac

GitHub Token

Komac is currently only able to use a classic token. Whilst Komac can fully create manifests and commit with a fine-grained token, it fails to create a pull request to winget-pkgs. This may change as fine-grained tokens improve. See https://github.com/russellbanks/Komac/issues/310.

Classic

A classic token with the public_repo scope.

firefox_IYiqtsd0Nl

Commands

Command Description Usage
New Create a package from scratch new
Update Update a pre-existing package in winget-pkgs update
Remove Remove a version from winget-pkgs remove
Sync Fork Syncs your fork of winget-pkgs to microsoft/winget-pkgs sync-fork, sync
Branch Cleanup Deletes branches that have had a merged or closed pull request to winget-pkgs cleanup
List Versions Lists all the versions for a given package list-versions, list
Analyse Analyses a file and outputs information about it. Useful for debugging analyse
Token update Update stored GitHub OAuth token token update
Token remove Delete stored GitHub OAuth token token remove
Complete Outputs an autocompletion script for the given shell complete, autocomplete

Update an existing package with a new version

komac update Package.Identifier --version 1.2.3 --urls https://www.firstUrl.com https://www.secondUrl.com --submit
Parameter Usage Notes
Package Identifier komac update Package.Identifier
Version --version
URLs --urls URLs are delimited by a space
Automatically submit --submit
Token (if one is not already stored) --token Komac will check for a GITHUB_TOKEN environment variable

Komac vs other tools πŸ†

While other manifest creation tools have made a solid foundation for the manifests in winget-pkgs, they development pace is notably slow and lacks the advanced detection capabilities that come with Komac.

Komac WingetCreate YamlCreate
Parameters βœ… βœ… ❌
Download progress bar & ETA βœ… ❌ ❌
Fully cross-platform βœ… ❌ Limited
Works without Git βœ… βœ… ❌
Full Inno Setup value retrieval βœ… ❌ ❌
Full MSI value retrieval βœ… Partial Partial
Linux & macOS MSI support βœ… ❌ ❌
Full MSIX value retrieval βœ… Partial Partial - https://github.com/Trenly/winget-pkgs/issues/180
Get information from GitHub βœ… βœ… ❌
Formatted GitHub release notes retrieval βœ… ❌ ❌
Release date identification βœ… ❌ ❌
No telemetry βœ… β­• [^1] βœ…
Fully standalone (w/o winget-pkgs clone) βœ… βœ… ❌
Inno setup detection βœ… [^2] βœ… βœ… [^3]
Nullsoft detection βœ… [^2] βœ… βœ… [^3]
Burn installer detection βœ… [^2] βœ… Opt-in feature (not enabled by default due to slow processing)
Programming Language Rust C# PowerShell

[^1]: Telemetry is enabled by default in WingetCreate. Use wingetcreate settings to manually disable telemetry. [^2]: There is much more accurate detection for Inno, Nullsoft, and Burn installers since Komac v2. [^3]: The logic for this was contributed by me :) Check issues that I've opened to request this feature for YamlCreate.

Usage with GitHub Actions: WinGet Releaser 🌟

WinGet Releaser is a GitHub Action that invokes Komac, passing in your release's URLs. This completely automates publishing to WinGet.

Example πŸ“

name: Publish to WinGet
on:
  release:
    types: [ released ]
jobs:
  publish:
    runs-on: windows-latest
    steps:
      - uses: vedantmgoyal9/winget-releaser@main
        with:
          identifier: Package.Identifier
          token: ${{ secrets.WINGET_TOKEN }}
          # installers-regex: '\.exe$' # Only .exe files

Alternative actions πŸ”„

How can I support Komac? ❀️

  • 🀝 Sponsor this project through GitHub Sponsors
  • ⭐ Star this project! :)
  • πŸ§‘β€πŸ’» Use Komac and create an issue for feature requests or bugs.

Star History ⭐

Star History Chart

License

GNU GPLv3 Logo

Komac is Free Software: You can use, study share and improve it at your will. Specifically you can redistribute and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Dependencies

~90MB
~1.5M SLoC