@jixoai/gh-runner 0.2.6 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/main.mjs +6 -4
  2. package/package.json +1 -1
package/dist/main.mjs CHANGED
@@ -1,16 +1,16 @@
1
1
  #!/usr/bin/env node
2
2
  import { mkdir, open, readFile, readdir, realpath, rename, rm, stat, writeFile } from "node:fs/promises";
3
+ import { dirname, isAbsolute, join } from "node:path";
4
+ import { fileURLToPath } from "node:url";
3
5
  import { createTray } from "opentray";
4
6
  import { attachDialog } from "@opentray/ext-dialog";
5
7
  import { attachOpener } from "@opentray/ext-opener";
6
8
  import { arch, homedir, platform } from "node:os";
7
- import { dirname, isAbsolute, join } from "node:path";
8
9
  import { createWriteStream, existsSync, readFileSync } from "node:fs";
9
10
  import { execFile, spawn } from "node:child_process";
10
11
  import { promisify } from "node:util";
11
12
  import { Readable } from "node:stream";
12
13
  import { pipeline } from "node:stream/promises";
13
- import { fileURLToPath } from "node:url";
14
14
  import { WebviewExt } from "@opentray/ext-webview";
15
15
  // src/platform.ts
16
16
  const IS_WIN = platform() === "win32";
@@ -1273,7 +1273,7 @@ var TrayProjection = class {
1273
1273
  }
1274
1274
  };
1275
1275
  // src/version.ts
1276
- const APP_VERSION = "0.2.6";
1276
+ const APP_VERSION = "0.2.7";
1277
1277
  // src/window.ts
1278
1278
  const DRAIN_INTERVAL_MS = 150;
1279
1279
  const PUSH_DEBOUNCE_MS = 120;
@@ -1593,6 +1593,7 @@ function extendWebview(tray) {
1593
1593
  }
1594
1594
  // src/main.ts
1595
1595
  const APP_ID = "com.jixoai.gh-runner";
1596
+ const packageRoot = join(dirname(fileURLToPath(import.meta.url)), "..");
1596
1597
  /** 导入本地分发包:系统文件选择框(ext-dialog;darwin NSOpenPanel / win32 对话框)。 */
1597
1598
  async function pickPackageFile(tray) {
1598
1599
  try {
@@ -1743,7 +1744,8 @@ async function main() {
1743
1744
  }, {
1744
1745
  appId: APP_ID,
1745
1746
  appName: "GH Runner",
1746
- appIcon: appIcon()
1747
+ appIcon: appIcon(),
1748
+ packageRoot
1747
1749
  });
1748
1750
  const projection = new TrayProjection(tray, {
1749
1751
  openWindow: () => void uiHost.open(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jixoai/gh-runner",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "Menu-bar (tray) manager for multiple GitHub Actions self-hosted runners: discover, register from downloaded/imported packages, start/stop, and live job-result analysis. macOS & Windows.",
5
5
  "type": "module",
6
6
  "license": "MIT",