Skip to content

Commit 15a5991

Browse files
committed
Use process.env.RAYCAST_SCHEME
1 parent 789d192 commit 15a5991

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

src/createDeeplink.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { environment, LaunchProps, LaunchType } from "@raycast/api";
22
import fs from "node:fs";
33
import path from "node:path";
4+
import process from "node:process";
45

56
export enum DeeplinkType {
67
/** A script command */
@@ -83,13 +84,7 @@ export type CreateExtensionDeeplinkOptions = CreateInterExtensionDeeplinkOptions
8384
export type CreateDeeplinkOptions = CreateScriptCommandDeeplinkOptions | CreateExtensionDeeplinkOptions;
8485

8586
function getProtocol() {
86-
return environment.raycastVersion.includes("alpha")
87-
? process.env.RAYCASTX
88-
? "raycast-x-internal://"
89-
: "raycastinternal://"
90-
: process.env.RAYCASTX
91-
? "raycast-x://"
92-
: "raycast://";
87+
return `${process.env.RAYCAST_SCHEME}://`;
9388
}
9489

9590
function getOwnerOrAuthorName() {

0 commit comments

Comments
 (0)