Compare commits

...
3 changed files with 6 additions and 3 deletions
+2 -1
View File
@@ -194,7 +194,8 @@ tasks:
# `desktop:build` run `jlink:clean` first to force a fresh build.
- cmd: chmod -R u+w runtime/jre
platforms: [linux, darwin]
- cmd: powershell -NoProfile -Command "Get-ChildItem -Recurse runtime/jre | ForEach-Object { $_.IsReadOnly = $false }"
# Escape the $ so Task's shell doesn't expand $_/$false to empty before PowerShell sees them.
- cmd: powershell -NoProfile -Command "Get-ChildItem -Recurse runtime/jre | ForEach-Object { \$_.IsReadOnly = \$false }"
platforms: [windows]
status:
- test -f runtime/jre/release
@@ -2,6 +2,7 @@
import { readFileSync } from "node:fs";
import { dirname, resolve } from "node:path";
import { fileURLToPath } from "node:url";
import { describe, expect, it } from "vitest";
import {
validateToolChain,
@@ -24,7 +25,7 @@ interface SharedCase {
/** Shared with the backend and engine, so it lives at the repo root. */
function casesFile(): string {
let current = dirname(new URL(import.meta.url).pathname);
let current = dirname(fileURLToPath(import.meta.url));
for (let i = 0; i < 12; i++) {
const candidate = resolve(current, "testing/tool-io-cases.json");
try {
@@ -1,5 +1,6 @@
import { readFileSync } from "node:fs";
import { dirname, resolve } from "node:path";
import { fileURLToPath } from "node:url";
import { describe, expect, it } from "vitest";
import { TOOL_FORMATS, type ToolFormat } from "@app/types/toolIO";
import {
@@ -9,7 +10,7 @@ import {
/** The en-US `[toolFormat]` block, read straight from the locale file. */
function toolFormatLabels(): Record<string, string> {
let current = dirname(new URL(import.meta.url).pathname);
let current = dirname(fileURLToPath(import.meta.url));
for (let i = 0; i < 12; i++) {
try {
const toml = readFileSync(