diff --git a/index.html b/index.html index cb01677..ea9cf07 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,6 @@ Vynte Connect -
@@ -65,6 +64,6 @@
- + diff --git a/resources/VynteIcon.png b/resources/VynteIcon.png new file mode 100644 index 0000000..7f28e8b Binary files /dev/null and b/resources/VynteIcon.png differ diff --git a/scripts/fetch-netbird-assets.mjs b/scripts/fetch-netbird-assets.mjs index e1c573e..a047ad0 100644 --- a/scripts/fetch-netbird-assets.mjs +++ b/scripts/fetch-netbird-assets.mjs @@ -2,24 +2,24 @@ import { createWriteStream, existsSync, mkdirSync, rmSync } from "node:fs"; import { basename, join } from "node:path"; import { pipeline } from "node:stream/promises"; import { spawnSync } from "node:child_process"; +import { tmpdir } from "node:os"; -const root = join(import.meta.dirname, ".."); const versionInput = process.env.NETBIRD_VERSION || "latest"; const release = await getRelease(versionInput); const version = release.tag_name.replace(/^v/, ""); -const tmpDir = join(root, ".tmp-netbird-assets"); +const tmpDir = tmpdir(); const targets = [ { label: "macOS arm64", assetName: `netbird_${version}_darwin_arm64.tar.gz`, - outputDir: join(root, "apps", "vynte-connect", "Resources"), + outputDir: join(import.meta.dirname, "resources"), files: [{ source: "netbird", destination: "netbird" }] }, { label: "Windows amd64", assetName: `netbird_${version}_windows_amd64_signed.tar.gz`, - outputDir: join(root, "apps", "vynte-connect-windows", "resources"), + outputDir: join(import.meta.dirname, "resources"), files: [ { source: "netbird.exe", destination: "netbird.exe" }, { source: "wintun.dll", destination: "wintun.dll" } @@ -27,9 +27,6 @@ const targets = [ } ]; -rmSync(tmpDir, { recursive: true, force: true }); -mkdirSync(tmpDir, { recursive: true }); - for (const target of targets) { const asset = release.assets.find((candidate) => candidate.name === target.assetName); if (!asset) { diff --git a/src/netbird.ts b/src/netbird.ts index 2c80c48..0a16005 100644 --- a/src/netbird.ts +++ b/src/netbird.ts @@ -7,7 +7,7 @@ export interface CommandResult { stdout: string; stderr: string; error: Error | null; -}; +} export class NetBirdClient { private executablePath: string; diff --git a/src/renderer.ts b/src/renderer.ts index 5439553..5d85417 100644 --- a/src/renderer.ts +++ b/src/renderer.ts @@ -26,6 +26,7 @@ * ``` */ +import './index.css' import type { NetworkStatus } from './status'; const body = document.body;