Electron forge migration #2

Merged
ishan-karmakar merged 3 commits from electron-forge-migration into main 2026-06-01 00:28:32 +00:00
5 changed files with 7 additions and 10 deletions
Showing only changes of commit 4b3c791402 - Show all commits
+1 -2
View File
@@ -5,7 +5,6 @@
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:;">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Vynte Connect</title>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<main class="panel">
@@ -65,6 +64,6 @@
<button id="quit" class="icon-button" title="Quit"></button>
</footer>
</main>
<script src="./renderer.js"></script>
<script type="module" src="/src/renderer.ts"></script>
</body>
</html>
Binary file not shown.

After

Width:  |  Height:  |  Size: 168 KiB

+4 -7
View File
@@ -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) {
+1 -1
View File
@@ -7,7 +7,7 @@ export interface CommandResult {
stdout: string;
stderr: string;
error: Error | null;
};
}
export class NetBirdClient {
private executablePath: string;
+1
View File
@@ -26,6 +26,7 @@
* ```
*/
import './index.css'
import type { NetworkStatus } from './status';
const body = document.body;