chore: restructure project and add i18n support

- Reorganize project structure with new electron and shared directories
- Add comprehensive i18n support with Chinese, English, and Japanese locales
- Update build configurations and TypeScript paths for new structure
- Add various UI components including chat interface and task management
- Include Windows release binaries and localization files
- Update dependencies and fix import paths throughout the codebase
This commit is contained in:
duanshuwen
2026-04-06 14:39:06 +08:00
parent e76b034d50
commit 6615d11dd6
311 changed files with 823682 additions and 4460 deletions

121
electron-builder.yml Normal file
View File

@@ -0,0 +1,121 @@
appId: com.znkj.znai
productName: NIANXX
copyright: Copyright © 2026 智念科技
compression: maximum
artifactName: ${productName}-${version}-${os}-${arch}.${ext}
directories:
output: release
buildResources: public
files:
- dist
- dist-electron
- package.json
extraResources:
- from: public/
to: public/
filter:
- "**/*"
- from: electron/scripts/
to: scripts/
filter:
- "**/*"
asar: true
asarUnpack:
- "**/*.node"
# Disable native module rebuilding.
# Native modules belong to dependencies that run in their own process
npmRebuild: false
afterPack: ./scripts/after-pack.cjs
# Auto-update configuration (to be configured later)
# publish:
# - provider: generic
# url: https://your-update-server.com/latest
# useMultipleRangeRequest: false
# macOS Configuration
mac:
category: public.app-category.productivity
icon: public/logo.icns
target:
- target: dmg
arch:
- x64
- arm64
- target: zip
arch:
- x64
- arm64
darkModeSupport: true
hardenedRuntime: true
gatekeeperAssess: false
entitlements: entitlements.mac.plist
entitlementsInherit: entitlements.mac.plist
notarize: false # Set to true when you have Apple Developer account
dmg:
size: 1g
icon: public/logo.icns
iconSize: 100
window:
width: 540
height: 380
contents:
- type: file
x: 130
y: 220
- type: link
path: /Applications
x: 410
y: 220
# Windows Configuration
win:
verifyUpdateCodeSignature: false
# icon: public/logo.ico
target:
- target: nsis
arch: x64
nsis:
oneClick: false
perMachine: false
warningsAsErrors: false
allowToChangeInstallationDirectory: true
deleteAppDataOnUninstall: false
differentialPackage: true
createDesktopShortcut: true
createStartMenuShortcut: true
shortcutName: NIANXX
uninstallDisplayName: NIANXX
license: LICENSE
# installerIcon: public/logo.ico
# uninstallerIcon: public/logo.ico
# Linux Configuration
linux:
icon: public/
target:
- target: AppImage
arch:
- x64
- target: deb
arch:
- x64
category: Utility
maintainer: 智念科技 <duanshuwen@gogpay.cn>
vendor: 智念科技
synopsis: 智念AI - 一款应用智能的多功能桌面应用
description: 智念AI是一款基于Electron的智能桌面应用提供AI助手、任务管理、数据分析等多种功能。
desktop:
entry:
Name: NIANXX
Comment: 智念AI - 智能桌面应用
Categories: Utility;Network;
Keywords: ai;assistant;automation;chat;
StartupWMClass: zn-ai