-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Use nix paths for updater script
- Loading branch information
1 parent
2246f14
commit 90696a2
Showing
2 changed files
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
import { parseArgs } from 'https://deno.land/[email protected]/cli/parse_args.ts'; | ||
import * as path from "https://deno.land/[email protected]/path/mod.ts"; | ||
import { LockFile, SteamObject, parseObject } from './parser.ts' | ||
|
||
const __filename = path.fromFileUrl(import.meta.url); | ||
// Without trailing slash | ||
const __dirname = path.dirname(path.fromFileUrl(import.meta.url)); | ||
|
||
const utf8Decoder = new TextDecoder(); | ||
|
||
/** | ||
|
@@ -94,6 +99,7 @@ async function updateLockFile( | |
const main = async () => { | ||
const args = parseArgs(Deno.args, { | ||
alias: { | ||
"a": "add-to-store", | ||
"d": "dry-run" | ||
}, | ||
boolean: ["add-to-store", "dry-run", "help"], | ||
|
@@ -131,7 +137,7 @@ async function prefetch( | |
branch: string, | ||
addToStore: boolean, | ||
): Promise<string> { | ||
const command = new Deno.Command("./apps/updater/prefetch.sh", { | ||
const command = new Deno.Command(`${__dirname}/prefetch.sh`, { | ||
env: { | ||
appId, depotId, manifestId, branch, | ||
name: `${name}-depot`, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters