From 76deb3d0affd3f123165dd448aa9208e46592604 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A2=96=E9=80=B8?= <49649786+Zuoqiu-Yingyi@users.noreply.github.com> Date: Sun, 30 Oct 2022 13:53:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=20`HEVC`=20=E7=BC=96?= =?UTF-8?q?=E7=A0=81=E8=A7=86=E9=A2=91=E6=92=AD=E6=94=BE=20(#6406)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * :bug: fix #5857 * :art: #5990 桌面端 `SiYuan` 可执行程序支持使用参数连接非本机内核服务 * :art: style * :art: style * :art: style * 🎨 改进伺服代码片段 `/snippets/` #6356 * :art: 调整 win 安装包打包选项 * :art: 鉴权支持 IPv6 本机回环地址 * :art: 支持 HEVC 编码视频播放 --- app/electron/main.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/electron/main.js b/app/electron/main.js index 52de8bbe7..aed57b04f 100644 --- a/app/electron/main.js +++ b/app/electron/main.js @@ -692,9 +692,12 @@ const initKernel = (initData) => { } app.setAsDefaultProtocolClient('siyuan') + app.commandLine.appendSwitch('disable-web-security') app.commandLine.appendSwitch('auto-detect', 'false') app.commandLine.appendSwitch('no-proxy-server') +app.commandLine.appendSwitch('enable-features', 'PlatformHEVCDecoderSupport') + app.setPath('userData', app.getPath('userData') + '-Electron') // `~/.config` 下 Electron 相关文件夹名称改为 `SiYuan-Electron` https://github.com/siyuan-note/siyuan/issues/3349 app.whenReady().then(() => {