Files
SecScore/electron-builder.yml
T
Fox_block 6d2346f3b1 feat: 添加自定义 URL 协议支持及悬浮侧边栏显隐控制
- 新增 `secscore://` 自定义 URL 协议,支持通过链接直接导航至应用内页面(如 `secscore://settings`)和控制悬浮侧边栏(如 `secscore://sidebar/toggle`)
- 在系统托盘菜单中添加“显隐悬浮侧边栏”选项
- 在设置页面添加“URL 链接”选项卡,提供协议说明和手动注册按钮
- 应用支持单实例运行,后续协议调用将转发至现有实例
- 更新构建配置以注册 URL 协议,并添加详细的使用说明文档
- 修复 WindowManager 中可能因 settings 未初始化导致的潜在错误
2026-01-23 11:06:27 +08:00

58 lines
1.6 KiB
YAML

appId: com.secscore.app
productName: SecScore
directories:
buildResources: build
protocols:
- name: SecScore URL Protocol
schemes:
- secscore
role: Viewer
files:
- '!**/.vscode/*'
- '!src/*'
- '!electron.vite.config.{js,ts,mjs,cjs}'
- '!{.eslintcache,eslint.config.mjs,.prettierignore,.prettierrc.yaml,dev-app-update.yml,CHANGELOG.md,README.md}'
- '!{.env,.env.*,.npmrc,pnpm-lock.yaml}'
- '!{tsconfig.json,tsconfig.node.json,tsconfig.web.json}'
asarUnpack:
- resources/**
afterPack: ./scripts/afterPack.cjs
extraFiles:
- from: themes
to: themes
extraResources:
- from: resources
to: assets
win:
target:
- zip
executableName: SecScore
icon: resources/SecScore_logo.ico
nsis:
artifactName: ${name}-${version}-setup.${ext}
shortcutName: ${productName}
uninstallDisplayName: ${productName}
createDesktopShortcut: always
allowToChangeInstallationDirectory: true
mac:
entitlementsInherit: build/entitlements.mac.plist
extendInfo:
- NSCameraUsageDescription: Application requests access to the device's camera.
- NSMicrophoneUsageDescription: Application requests access to the device's microphone.
- NSDocumentsFolderUsageDescription: Application requests access to the user's Documents folder.
- NSDownloadsFolderUsageDescription: Application requests access to the user's Downloads folder.
notarize: false
dmg:
artifactName: ${name}-${version}.${ext}
linux:
target:
- AppImage
- deb
maintainer: electronjs.org
category: Utility
appImage:
artifactName: ${name}-${version}.${ext}
npmRebuild: false
electronDownload:
mirror: https://npmmirror.com/mirrors/electron/