Is there any way to allow an app to have different install options? Specifically, I want to install busybox (from the main archive) but I only want the busybox executable, not all of the individual commands (as I already have better versions of some of them). The only way I can see of doing this is to copy and edit the busybox manifest to exclude all the entries in "bin" apart from busybox.exe, and put the resulting manifest in my own bucket.
It would be really useful to be able to say something like scoop install busybox --combined-binary-only.
Homebrew support this too. And I think it will help installing apps that can integrate with windows shell like powertoys or vscode context menu.
So, I can just use scoop install vscode --with-context-menu.
And it also will helps combining multiple versions too. I can use scoop install ffmpeg --nightly to install the nightly versions, and apps that depends on ffmpeg will be able to work with ffmpeg-nightly too. And I won't need to use scoop update -i anymore now...
Examples of existing apps which would benefit from this feature:
"notes": "Add Sublime Text as a context menu option by running: \"reg import '$dir\install-context.reg'\"",
"notes": "Allow applications and third-party installers to find python by running: \"$dir\install-pep-514.reg\"",
"notes": "Run 'git config --global sequence.editor interactive-rebase-tool' to configure as your rebase tool.",
Installing pshazz without changing the prompt - #2595
I propose adding "options" and "features" to scoop manifests, which might look like this:
{
...
"options": [
"install-with-plugin-support"
],
"features": {
"add-to-context-menu": {
"installer": [
"reg import \"$dir\\install-context.reg\""
],
"uninstaller": [
"reg import \"$dir\\uninstall-context.reg\""
],
}
}
}
The options are relevant to the installer script, which would maybe access them with $optionInstallWithPluginSupport, and the features are like options except they can also be installed or uninstalled later.
Maybe you could install with: scoop install sublime-text#install-with-plugin-support#add-to-context-menu
(listing options/features separated by hashtags after the package name)
It can't be an option to scoop install itself because you can install multiple apps with it (scoop install git vim), and then it wouldn't be possible to specify options for a specific app.
For reference, this is how Chocolatey does this:
https://chocolatey.org/docs/how-to-parse-package-parameters-argument
choco install git --params="'/GitAndUnixToolsOnPath /NoAutoCrlf'"
is still still not possible?! I mean... it really would be a very important feature...