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 REQUEST] Configure environment for update per-package #2922

Open
2 tasks done
Efreak opened this issue Nov 2, 2024 · 0 comments
Open
2 tasks done

[FEATURE REQUEST] Configure environment for update per-package #2922

Efreak opened this issue Nov 2, 2024 · 0 comments
Assignees
Labels
new-feature A new feature that could be useful in WingetUI ready-to-go
Milestone

Comments

@Efreak
Copy link

Efreak commented Nov 2, 2024

Please confirm these before moving forward.

  • I have searched for my feature proposal and have not found a work-in-progress/duplicate/resolved/discarded issue.
  • This proposal is a completely new feature. If you want to suggest an improvement or an enhancement, please use this template.

Describe the new feature

For each package, one of the following options. Any of these would work, however C would work well with both of the others to make it more maintainable for the end-user.
A. add a custom prefix and suffix to the command to be run
B. location or content of a script that runs before updates
C. set custom environment variables such as PATH (and per-package-manager variables, though unigetui doesn't have to care what they are)

Describe how this new feature could help users

Cargo packages cannot all be installed with a singular default system environment; some packages need specific toolchains (nightly, stable), some need gcc (via msys2 or Cygwin), and some need Microsoft. Setting paths would allow the use of different binaries (unfortunately, gcc and Microsoft have different link.exe, so they can't share the same environment)

Some python packages have similar requirements for native dependencies, or the user may want to add a network host to download pre-built wheels from.

Ideally, there would be the ability to run the commands from inside specific msys2 environments, but I'm not sure if that's actually possible to do reliably for arbitrary commands (ie not just running pacman) without popping up a window on screen and monitoring output, given that it sets up the initial environment using a binary rather than a script, and that environment needs to then be further modified to add cargo to the path. If this is possible, it would probably also enable users to hack together some way to use WSL with UniGetUI.

@Efreak Efreak added the new-feature A new feature that could be useful in WingetUI label Nov 2, 2024
@marticliment marticliment added this to the Features milestone Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-feature A new feature that could be useful in WingetUI ready-to-go
Projects
None yet
Development

No branches or pull requests

2 participants