From b28a6e7a7b479c9a5a5471865db052d98d81f2ae Mon Sep 17 00:00:00 2001 From: cysamurai Date: Fri, 8 Aug 2025 16:00:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A45?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tax-asst-client/electron-builder.yml | 2 ++ tax-asst-client/electron.vite.config.ts | 6 +++--- tax-asst-client/tsconfig.node.json | 4 +++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/tax-asst-client/electron-builder.yml b/tax-asst-client/electron-builder.yml index 6254f57..bdfd44e 100644 --- a/tax-asst-client/electron-builder.yml +++ b/tax-asst-client/electron-builder.yml @@ -35,6 +35,8 @@ linux: - deb - AppImage - tar.xz + arch: + - arm64 desktop: Name: "辅助报税客户端" Comment: "紫云桌面应用" diff --git a/tax-asst-client/electron.vite.config.ts b/tax-asst-client/electron.vite.config.ts index 1b29744..7cf4aaa 100644 --- a/tax-asst-client/electron.vite.config.ts +++ b/tax-asst-client/electron.vite.config.ts @@ -1,13 +1,13 @@ import { resolve } from 'path' -import { defineConfig, externalizeDepsPlugin, bytecodePlugin } from 'electron-vite' +import { defineConfig, externalizeDepsPlugin } from 'electron-vite' import vue from '@vitejs/plugin-vue' export default defineConfig({ main: { - plugins: [externalizeDepsPlugin(), bytecodePlugin()] + plugins: [externalizeDepsPlugin()] }, preload: { - plugins: [externalizeDepsPlugin(), bytecodePlugin()] + plugins: [externalizeDepsPlugin()] }, renderer: { resolve: { diff --git a/tax-asst-client/tsconfig.node.json b/tax-asst-client/tsconfig.node.json index db23a68..9161927 100644 --- a/tax-asst-client/tsconfig.node.json +++ b/tax-asst-client/tsconfig.node.json @@ -3,6 +3,8 @@ "include": ["electron.vite.config.*", "src/main/**/*", "src/preload/**/*"], "compilerOptions": { "composite": true, - "types": ["electron-vite/node"] + "types": ["electron-vite/node"], + "esModuleInterop": true, + "allowSyntheticDefaultImports": true } }