1 Star 0 Fork 112

NickYan/想天工作台

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
electron-builder-config-prd.yml 2.71 KB
一键复制 编辑 原始数据 按行查看 历史
陈一枭 提交于 2023-04-19 20:29 . 【调整】调整自动更新频道
#electron-builder打包配置文件,可参考官方文档:https://www.electron.build/configuration/configuration
directories:
output: setup-${arch}
buildResources: dist
#可以注释这里,省略公证环节,节省打包时间。此操作可节省2分半。下面 51行也影响打包速度,可以设为null,这样不签名,大幅度提高速度。
afterSign: scripts/notarize.js
files:
- dist/*.js
- dist/*.css
- css/*.css
- pages/**/*
- icons/**/*
- icons/*.svg
#- js/**/*
- db/**/*
- js/places/*
- js/defaultPreload.js
- js/main/**/*
- js/request/**/*
- js/util/**/*
- js/extras/**/*
- js/passwordManager/**/*
- ./main.build.js
- ext/**/*
- index.html
- server-config.js
- api/*
- img/*.jpg
- img/*.jpeg
- img/*.png
- reader/**/*
- resources/**/*
- src/**/*
- vite/dist/**/* #增加渲染进程
fileAssociations:
ext:
- html
- xhtml
- pdf
dmg:
sign: false
win:
extraResources:
- from: res
to: res
filter:
- "**/*"
icon: ./icons/logowin.ico
target:
- target: nsis
- target: zip
publish:
- provider : generic
url: http://d.xiangtian.ren/update/worktable/win/
channel: latest
mac:
#此处为正式打包需要用到的脚本,如果仅仅测试,可以取消这里的注释,此操作会将identity设空,以至于无法找到证书,跳过签名阶段,以提高速度。
#打出的包则没有证书公证,官方说明https://www.electron.build/code-signing
#https://duanshuo.yuque.com/hfru7g/gta7yy/pqbzh3#QCbaN
#How to Disable Code Signing During the Build Process on macOS¶
#To disable Code Signing when building for macOS leave all the above vars unset except for CSC_IDENTITY_AUTO_DISCOVERY which needs to be set to false. This can be done by running export CSC_IDENTITY_AUTO_DISCOVERY=false.
#
#Another way — set mac.identity to null. You can pass aditional configuration using CLI as well: -c.mac.identity=null.
#identity: null
entitlements: entitlements.mac.plist
entitlementsInherit: entitlements.mac.plist
hardenedRuntime: true
gatekeeperAssess: false
icon: ./icons/icon.icns
category: public.app-category.utilities
target:
- target: dmg
- target: zip
publish:
- provider : generic
url: http://d.xiangtian.ren/update/browser/mac-${arch}/
channel: latest
extendInfo: scripts/macInfo.plist
nsis:
allowToChangeInstallationDirectory: true
oneClick: false
perMachine: true
protocols:
- name: TSBrowser
schemes:
- tsb
- name: browser
schemes: ["http","https"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/yanzhigen/xiangtian-workbench.git
git@gitee.com:yanzhigen/xiangtian-workbench.git
yanzhigen
xiangtian-workbench
想天工作台
develop-80

搜索帮助