Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ This will allow you to run NethLink on your Linux machine. You can also move the

## 📦 Requirements

- **macOS**: Version 10.15 (Catalina) or later.
- **macOS**: Version 13 (Ventura) or later.
- **Windows**: Windows 10 or later.
- **Rosetta**: Required on macOS for ARM architectures.

Expand Down
20 changes: 17 additions & 3 deletions electron.vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,25 @@
import react from '@vitejs/plugin-react'
import { defineConfig, externalizeDepsPlugin } from 'electron-vite'
import { defineConfig } from 'electron-vite'
import { resolve } from 'path'

if (
process.platform === 'linux' &&
(process.env['XDG_SESSION_TYPE'] === 'wayland' ||
!!process.env['WAYLAND_DISPLAY'])
) {
const electronArgs: string[] = process.env['ELECTRON_CLI_ARGS']
? JSON.parse(process.env['ELECTRON_CLI_ARGS'])
: []
if (!electronArgs.some((arg) => arg.startsWith('--ozone-platform'))) {
process.env['ELECTRON_CLI_ARGS'] = JSON.stringify([
'--ozone-platform=x11',
...electronArgs,
])
}
}

export default defineConfig({
main: {
plugins: [externalizeDepsPlugin()],
resolve: {
alias: {
'@/lib': resolve('src/main/lib'),
Expand All @@ -14,7 +29,6 @@ export default defineConfig({
},
},
preload: {
plugins: [externalizeDepsPlugin()],
resolve: {
alias: {
'@shared': resolve('src/shared'),
Expand Down
Loading
Loading