Add special “open” handling for cointop

This commit is contained in:
Max Howell 2023-05-01 10:03:05 -04:00
parent d05e545ec1
commit ac67330636
No known key found for this signature in database
GPG key ID: 741BB84EF5BB9EEC

View file

@ -123,9 +123,14 @@ const notifyPackageInstalled = (rawPkg: string, notifyMainWindow: MainWindowNoti
export async function openPackageEntrypointInTerminal(pkg: string) {
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`;
} else {
break
case "cointop.sh":
sh += "cointop";
break
default:
sh += "sh";
}