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

[Feature][Track] publish package to winget #142

Closed
yixinBC opened this issue Jan 4, 2023 · 13 comments
Closed

[Feature][Track] publish package to winget #142

yixinBC opened this issue Jan 4, 2023 · 13 comments
Labels
enhancement New feature or request platform: windows

Comments

@yixinBC
Copy link
Contributor

yixinBC commented Jan 4, 2023

Feature description

this issue tracks #129
All updates about the winget-pkgs pr status and the implemention/development of auto-release scripts will be discussed here first.

Motivation

No response

Alternatives

No response

Additional context

No response

@yixinBC yixinBC added the enhancement New feature or request label Jan 4, 2023
@manudss
Copy link
Contributor

manudss commented Jan 4, 2023

@lencx
Copy link
Owner

lencx commented Jan 4, 2023

@manudss Thank you very much for your contribution. Can you tell me what command I need to execute if I want to write winget install application in readme?

@maphew
Copy link

maphew commented Jan 4, 2023

There seems to be a collision between this package and https://github.com/sonnylazuardi/chatgpt-desktop/. They both install to C:\program files\chatgpt\chatgpt.exe, or ChatGPT.exe but since Windows is case insenstive one overwrites the other (last installed wins).

@yixinBC yixinBC mentioned this issue Jan 5, 2023
@yixinBC
Copy link
Contributor Author

yixinBC commented Jan 5, 2023

@manudss Thank you very much for your contribution. Can you tell me what command I need to execute if I want to write winget install application in readme?

just have a look at my pr(#148 )

@manudss
Copy link
Contributor

manudss commented Jan 5, 2023

Hi, the version was already published, you can find it here : https://winstall.app/apps/lencx.ChatGPT

The command to install is : winget install --id=lencx.ChatGPT -e

@lencx
Copy link
Owner

lencx commented Jan 5, 2023

@manudss Thanks, we've updated it in the readme. I have a question, there are two spaces before -e, I formatted it as one space, will it have any effect?

@yixinBC
Copy link
Contributor Author

yixinBC commented Jan 5, 2023

@manudss Thanks, we've updated it in the readme. I have a question, there are two spaces before -e, I formatted it as one space, will it have any effect?

one space is enough.

@yixinBC
Copy link
Contributor Author

yixinBC commented Jan 7, 2023

have a look at the github actions detail, and I think we encountered an error.

@manudss
Copy link
Contributor

manudss commented Jan 10, 2023

Hi @yixinBC, sorry for the delay in response, I didn't have time to look before. It's an access problem, the Github token doesn't have the rights to access the repos:

remote: Permission to lencx/winget-pkgs.git denied to github-actions[bot]. fatal: unable to access 'https://github.com/lencx/winget-pkgs.git/': The requested URL returned error: 403

In the script for the releaser, https://github.com/vedantmgoyal2009/winget-releaser it specifies that the token must have the following rights: (Is this the case?)

The token should have the public_repo scope.
Note Do not directly put the token in the action. Instead, create a repository secret containing the token and use that in the workflow. See using encrypted secrets in a workflow for more details.

@lencx
Copy link
Owner

lencx commented Jan 10, 2023

@manudss token I have modified, just not released a new version to verify.

@manudss
Copy link
Contributor

manudss commented Jan 10, 2023

The version 0.8 have already been published by someone else : microsoft/winget-pkgs#93238

@lencx
Copy link
Owner

lencx commented Jan 12, 2023

The script is already working properly microsoft/winget-pkgs#93598

@JoscarTheDane
Copy link

I fixed this by instructing an uninstall and then a reinstall:

Installer failed with exit code: 1603
Installer log is available at: C:\Users\jshev\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir\WinGet-lencx.ChatGPT.0.11.0-2023-02-25-12-01-15.773.log
(base) PS C:\Users\jshev> winget uninstall chatgpt
Found ChatGPT [lencx.ChatGPT]
Starting package uninstall...
Successfully uninstalled
(base) PS C:\Users\jshev> winget uninstall sonnylab.chatgpt
No installed package found matching input criteria.
(base) PS C:\Users\jshev> winget uninstall chatgpt
No installed package found matching input criteria.
(base) PS C:\Users\jshev> winget install --id=lencx.ChatGPT -e --version 0.11.0
Found ChatGPT [lencx.ChatGPT] Version 0.11.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Successfully verified installer hash
Starting package install...
Successfully installed
(base) PS C:\Users\jshev>

SsomsakTH pushed a commit to SsomsakTH/ChatGPT that referenced this issue Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request platform: windows
Projects
None yet
Development

No branches or pull requests

5 participants