mirror of
https://github.com/ivabus/gui
synced 2025-06-08 00:00:27 +03:00
Add special “open” handling for cointop
This commit is contained in:
parent
d05e545ec1
commit
ac67330636
1 changed files with 7 additions and 2 deletions
|
@ -123,9 +123,14 @@ const notifyPackageInstalled = (rawPkg: string, notifyMainWindow: MainWindowNoti
|
||||||
|
|
||||||
export async function openPackageEntrypointInTerminal(pkg: string) {
|
export async function openPackageEntrypointInTerminal(pkg: string) {
|
||||||
let sh = `${cliBinPath} --sync --env=false +${pkg} `;
|
let sh = `${cliBinPath} --sync --env=false +${pkg} `;
|
||||||
if (pkg == "github.com/AUTOMATIC1111/stable-diffusion-webui") {
|
switch (pkg) {
|
||||||
|
case "github.com/AUTOMATIC1111/stable-diffusion-webui":
|
||||||
sh += `~/.tea/${pkg}/v*/entrypoint.sh`;
|
sh += `~/.tea/${pkg}/v*/entrypoint.sh`;
|
||||||
} else {
|
break
|
||||||
|
case "cointop.sh":
|
||||||
|
sh += "cointop";
|
||||||
|
break
|
||||||
|
default:
|
||||||
sh += "sh";
|
sh += "sh";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue