Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 6e17a8d

Browse files
committed
fix: fix deno execute path to be compatible with CI/CD
1 parent d1376c3 commit 6e17a8d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cli/upgrade.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default async function (version: string) {
2828
Deno.exit(0)
2929
}
3030
const p = Deno.run({
31-
cmd: ['deno', 'install', '-A', '-f', '-n', 'aleph', `https://deno.land/x/aleph@${version}/cli.ts`],
31+
cmd: [Deno.execPath(), 'install', '-A', '-f', '-n', 'aleph', `https://deno.land/x/aleph@${version}/cli.ts`],
3232
stdout: 'null',
3333
stderr: 'piped'
3434
})

server/app.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ export class Appliaction {
516516
}
517517

518518
const p = Deno.run({
519-
cmd: ['deno', 'info'],
519+
cmd: [Deno.execPath(), 'info'],
520520
stdout: 'piped',
521521
stderr: 'null'
522522
})
@@ -1267,7 +1267,7 @@ export class Appliaction {
12671267

12681268
const p = Deno.run({
12691269
cmd: [
1270-
'deno',
1270+
Deno.execPath(),
12711271
'cache',
12721272
this.#reloading || !versioned ? '--reload' : '',
12731273
u.toString()
@@ -1424,7 +1424,7 @@ export class Appliaction {
14241424
/** run deno bundle and compess the output with terser. */
14251425
private async runDenoBundle(bundlingFile: string, bundleFile: string, header = '', reload = false) {
14261426
const p = Deno.run({
1427-
cmd: ['deno', 'bundle', '--no-check', reload ? '--reload' : '', bundlingFile, bundleFile].filter(Boolean),
1427+
cmd: [Deno.execPath(), 'bundle', '--no-check', reload ? '--reload' : '', bundlingFile, bundleFile].filter(Boolean),
14281428
stdout: 'null',
14291429
stderr: 'piped'
14301430
})

0 commit comments

Comments
 (0)