📦 Add Linux packaging (AppImage/Flatpak/DEB)
🧹 Minor Codebase cleanup ⚡ Implement automatic starting of the relay
This commit is contained in:
parent
89fcaa9aa6
commit
f402ff04ab
19 changed files with 519 additions and 119 deletions
51
electron.vite.config.ts
Normal file
51
electron.vite.config.ts
Normal file
|
@ -0,0 +1,51 @@
|
|||
import { fileURLToPath, URL } from "node:url";
|
||||
import { defineConfig, externalizeDepsPlugin } from "electron-vite";
|
||||
import { resolve } from "path";
|
||||
|
||||
export default defineConfig({
|
||||
main: {
|
||||
plugins: [externalizeDepsPlugin()],
|
||||
build: {
|
||||
lib: {
|
||||
entry: resolve(__dirname, "src/electron/main.ts"),
|
||||
},
|
||||
},
|
||||
},
|
||||
preload: {
|
||||
plugins: [externalizeDepsPlugin()],
|
||||
build: {
|
||||
lib: {
|
||||
entry: resolve(__dirname, "src/electron/preload.ts"),
|
||||
},
|
||||
},
|
||||
},
|
||||
renderer: {
|
||||
root: resolve(__dirname, "src"),
|
||||
build: {
|
||||
target: "es2024",
|
||||
rollupOptions: {
|
||||
input: {
|
||||
index: resolve(__dirname, "src/index.html"),
|
||||
},
|
||||
},
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
"@utils": fileURLToPath(new URL("./src/utils", import.meta.url)),
|
||||
"@routes": fileURLToPath(new URL("./src/routes", import.meta.url)),
|
||||
"@styles": fileURLToPath(new URL("./src/styles", import.meta.url)),
|
||||
"@widgets": fileURLToPath(
|
||||
new URL("./src/components/Widgets", import.meta.url)
|
||||
),
|
||||
"@components": fileURLToPath(
|
||||
new URL("./src/components", import.meta.url)
|
||||
),
|
||||
"@": fileURLToPath(new URL("./src", import.meta.url)),
|
||||
},
|
||||
},
|
||||
// server: {
|
||||
// port: 5173,
|
||||
// open: true,
|
||||
// },
|
||||
},
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue