-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add electron version for Linux
add electron frontend using tauri-invoke-http remove old incomplete dev-only electron version
- Loading branch information
1 parent
2b573df
commit 76362fb
Showing
149 changed files
with
10,934 additions
and
7,219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ node_modules | |
/out | ||
/build | ||
/.svelte-kit | ||
/.vite | ||
/package | ||
.env | ||
.env.* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { VitePlugin } from '@electron-forge/plugin-vite'; | ||
import type { ForgeConfig } from '@electron-forge/shared-types'; | ||
|
||
const config: ForgeConfig = { | ||
rebuildConfig: {}, | ||
plugins: [ | ||
new VitePlugin({ | ||
// `build` can specify multiple entry builds, which can be Main process, Preload scripts, Worker process, etc. | ||
// If you are familiar with Vite configuration, it will look really familiar. | ||
build: [ | ||
{ | ||
entry: 'src/electron/main.ts', | ||
config: 'vite.electron-main.config.ts', | ||
target: 'main', | ||
}, | ||
{ | ||
entry: 'src/electron/preload.cjs', | ||
config: 'vite.electron-preload.config.ts', | ||
target: 'preload', | ||
}, | ||
], | ||
renderer: [ | ||
{ | ||
name: 'main_window', | ||
config: 'vite.config.ts', | ||
}, | ||
], | ||
}), | ||
], | ||
}; | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"$schema": "https://unpkg.com/knip@5/schema.json", | ||
"entry": ["src/main/index.ts", "src/preload/index.ts", "src/renderer/src/main.ts"], | ||
"entry": ["src/main.ts", "src/electron/main.ts", "src/electron/preload.cjs"], | ||
"project": [ | ||
"*/*.{js,cjs,mjs,jsx,ts,cts,mts,tsx}", | ||
"src/**/*.{js,cjs,mjs,jsx,ts,cts,mts,tsx,svelte}" | ||
], | ||
"ignore": ["electron.vite.config.ts", "svelte.config.mjs"] | ||
"ignoreDependencies": ["@electron-forge/cli", "@electron-forge/plugin-vite"] | ||
} |
Oops, something went wrong.