Electron forge migration #2
+1
-2
@@ -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 |
@@ -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
@@ -7,7 +7,7 @@ export interface CommandResult {
|
||||
stdout: string;
|
||||
stderr: string;
|
||||
error: Error | null;
|
||||
};
|
||||
}
|
||||
|
||||
export class NetBirdClient {
|
||||
private executablePath: string;
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
* ```
|
||||
*/
|
||||
|
||||
import './index.css'
|
||||
import type { NetworkStatus } from './status';
|
||||
|
||||
const body = document.body;
|
||||
|
||||
Reference in New Issue
Block a user