run bin
shim while using shortcut
for jar files
#5873
-
titles:
hi!
i tried specifying like so in the manifest file, and on trying to install, i get shown an error like so: "bin": [ [ "java.exe", "program", "-jar program.jar" ] ],
"shortcuts": [ [ "java.exe", "Program", "-jar program.jar" ] ],
i can understand why this behaviour is currently implemented like so. but is there any way to accomplish for this use case? earlier, i had manually gathered those source file to local storage, and had created a manual $ history | grep "scoop shim add"
scoop shim add program 'java' -- -jar "...\program-1.2.3.jar" --console
scoop shim add program 'java' -- -jar "...\program-1.2.3.jar"
$ scoop shim info program
Name : program
Path : ...\scoop\shims\program.exe
Source : temurin-jdk
Type : Application
IsGlobal : False
IsHidden : False
$ bat -p $(!! | yq .Path | sd "exe$" "shim")
path = "...\scoop\apps\temurin-jdk\current\bin\java.exe"
args = -jar program.jar versions and os:$ scoop --version | head -n2
Current Scoop version:
v0.3.1 - Released at 2022-11-15
$ scoop config
root_path : ...\scoop
global_path : ...\scoop_global
last_update : 2024-04-11T07:19:06.4988281+00:00
alias : @{cat-dum=scoop-cat-dum}
debug : True
scoop_branch : master
scoop_repo : https://github.com/ScoopInstaller/Scoop
$ systeminfo | grep -iA1 "os name"
OS Name: Microsoft Windows 10 Home Single Language
OS Version: 10.0.19045 N/A Build 19045
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Just use |
Beta Was this translation helpful? Give feedback.
Just use
xx.jar
orxx.py
as bin, since scoop will automatically addjava
orpython
when creating shims. See manifests in https://github.com/search?q=repo%3AScoopInstaller%2FMain%20.jar&type=code as reference.