diff --git a/.gitignore b/.gitignore index 15dc9b21..9d4b5b5d 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ node_modules *.local .idea .parcel-cache +.vitepress diff --git a/packages/main/bin/darwin/.gitignore b/packages/main/bin/darwin/.gitignore index 617f3d26..310f4af1 100644 --- a/packages/main/bin/darwin/.gitignore +++ b/packages/main/bin/darwin/.gitignore @@ -1,2 +1,3 @@ Downloads Logs +server* diff --git a/packages/main/bin/win32/.gitignore b/packages/main/bin/win32/.gitignore index cb66ed4e..eb39f087 100644 --- a/packages/main/bin/win32/.gitignore +++ b/packages/main/bin/win32/.gitignore @@ -1,4 +1,4 @@ Downloads Logs -server.exe* +server* diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 61491449..c9440487 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -318,55 +318,6 @@ importers: specifier: ^1.8.1 version: 1.8.27(typescript@5.1.6) - packages/plugin: - dependencies: - antd: - specifier: ^5.12.8 - version: 5.12.8(react-dom@18.2.0)(react@18.2.0) - react: - specifier: ^18.2.0 - version: 18.2.0 - react-dom: - specifier: ^18.2.0 - version: 18.2.0(react@18.2.0) - devDependencies: - '@types/node': - specifier: ^20.3.1 - version: 20.11.0 - '@types/react': - specifier: ^18.2.43 - version: 18.2.47 - '@types/react-dom': - specifier: ^18.2.17 - version: 18.2.18 - '@typescript-eslint/eslint-plugin': - specifier: ^6.14.0 - version: 6.18.1(@typescript-eslint/parser@6.18.1)(eslint@8.56.0)(typescript@5.1.6) - '@typescript-eslint/parser': - specifier: ^6.14.0 - version: 6.18.1(eslint@8.56.0)(typescript@5.1.6) - '@vitejs/plugin-react': - specifier: ^4.2.1 - version: 4.2.1(vite@5.0.11) - electron: - specifier: 25.9.8 - version: 25.9.8 - eslint: - specifier: ^8.55.0 - version: 8.56.0 - eslint-plugin-react-hooks: - specifier: ^4.6.0 - version: 4.6.0(eslint@8.56.0) - eslint-plugin-react-refresh: - specifier: ^0.4.5 - version: 0.4.5(eslint@8.56.0) - typescript: - specifier: ^5.1.3 - version: 5.1.6 - vite: - specifier: ^5.0.8 - version: 5.0.11(@types/node@20.11.0) - packages/renderer: dependencies: '@ant-design/icons': diff --git a/scripts/build-server.mjs b/scripts/build-server.mjs index c8f1da8f..c0105f2d 100644 --- a/scripts/build-server.mjs +++ b/scripts/build-server.mjs @@ -4,11 +4,9 @@ const platform = os.platform(); let GOOS = ""; let GOARCH = "amd64"; -let filename = "../packages/main/bin/win32/server"; +let filename = `../packages/main/bin/${platform}/server`; -if (platform == "linux") { - GOOS = "linux"; -} else if (platform == "darwin") { +if (platform == "darwin") { GOOS = "darwin"; } else if (platform == "win32") { GOOS = "windows";