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 LRCGET to winget and auto-update via github-action #180

Open
jo-chemla opened this issue Jan 16, 2025 · 3 comments
Open

Publish LRCGET to winget and auto-update via github-action #180

jo-chemla opened this issue Jan 16, 2025 · 3 comments

Comments

@jo-chemla
Copy link

Description

I've just made a PR here, awaiting merge, microsoft/winget-pkgs#212751 in order to publish a winget package for LRCGET so it can be installed via winget install lrcget - note two similar PRs were closed without merging due to the validation process breaking, will see if this one goes through.

It could be useful to add a github action on this repo so that the winget LRCLIB.LRCGET package gets updated on every github release. Here is a reference article based on Winget-Releaser@v2 Github Action

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

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.
name: Publish to WinGet
on:
  release:
    types: [ released ]
jobs:
  publish:
    runs-on: windows-latest
    steps:
      - uses: vedantmgoyal9/winget-releaser@v2
        with:
          identifier: LRCLIB.LRCGET
          token: ${{ secrets.WINGET_TOKEN }}
          installers-regex: ' *x64\-setup\.exe$' 
@jo-chemla
Copy link
Author

Note the winget package I submitted succesfully installs but the main window automatically closes on launch, preventing acceptance of the package on winget-pkgs, see comment. Would you have an explanation - missing dependency etc - as to why this happens? Thanks!

@jo-chemla
Copy link
Author

jo-chemla commented Jan 22, 2025

Found the culprit, the no default audio device issue causing a silent crash. Winget package PR referenced above has now been accepted and can be installed via winget install LRCLIB.LRCGET!

The suggested github action workflow would automate publishing new releases to the winget-pkgs repo

@tranxuanthang
Copy link
Owner

Thank you for your work in packaging and publishing LRCGET to winget! I apologize for not being more helpful. I’ll look into setting up GitHub Actions as you suggested when I have some time.

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

2 participants