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

Publish shutter-encoder builds to winget-pkgs + auto winget-releaser GA #244

Open
jo-chemla opened this issue Nov 12, 2024 · 0 comments
Open

Comments

@jo-chemla
Copy link

To streamline installation of shutter-encoder, it could be useful to have:

  • the shutter-encoder builds pushed as github-releases for anyone to access them
  • and in parallel, a winget package so that windosw people can install shutter-encoder via a simple winget install shutter-encoder

Winget package name

Initial publishing on winget-pkgs can be done via a utility like Komac. You would need to determine:

  • a package identifier, probably along the lines of paulpacifico.shutter-encoder
  • the installer url, eg installer and portable. Note that this package url need to be valid any time, since this is where the install command will fetch the package. There seem to be a key url-param, if that url breaks after a few hours/days, then the package validation will fail.
  • and a few other metadata that mostly anyone can populate. Initial release would allow anyone to install the software with the above winget install command.

That initial publishing can be done by either you or any community member.

Automated Github action workflow to push new package on github release

In order to simplify the process of pushing new releases automatically to winget-pkgs, adding a github action on this repo could be useful so that the winget shutter-encoder package gets updated on every github release.

Here is a reference article based on Winget-Releaser@v2 Github Action

There is no need for code signing mentioned in this issue; #101

Below is an action yml files made to keep the winget package up-to-date on every github release, via Github Actions.

name: Publish to WinGet
on:
  release:
    types: [ released ]
jobs:
  publish:
    runs-on: windows-latest
    steps:
      - uses: vedantmgoyal9/winget-releaser@v2
        with:
          identifier: paulpacifico.shutter-encoder
          token: ${{ secrets.WINGET_TOKEN }}
          installers-regex: '\-windows\-\w*\.zip$' 

Requires:

  • You will need to create a classic Personal Access Token (PAT) with public_repo scope.
  • This token should be added as a repository secret by creating a new repo secret with name WINGET_ACC_TOKEN and value the token
  • Fork microsoft/winget-pkgs under the same account/organization as the project's repository. If you are forking winget-pkgs on a different account (e.g. bot/personal account), you can use the fork-user input to specify the username of the account where the fork is present.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant