ArcherGu

Results 15 comments of ArcherGu

`contextIsolation` 开启后 electron 就会认为 `require` 不可用了,所以你开启后就要在前端检查下是否还在调用`require`。而且此时 `nodeIntegration: true` 也没有什么意义了。 `contextIsolation` 开启后主进程提供的接口应该通过 `preload` 进行暴露。

你的前端部分有 `import { ipcRenderer } from 'electron'` 这样的引入,你的前端应该是和 electron 完全隔离的,所以不要直接从 electron 中引入东西。

Big Sur只要写入你自己的/Library即可,无需再写到/System/Library。[我的版本](https://github.com/ArcherGu/one-key-hidpi)

I'm having the same problem, although I can add `:key=""` now to solve it,will there be a more elegant way in the future?

你好,你是不是有用 bytenode 加密你的主进程代码?

看你的目录结构,感觉还是我以前的版本,你看下 vite.config.ts 文件,里面是不是用到了 bytenode,我以前写的一个版本里放了这个玩意,现在已经去掉了,选择权交给用户

Solution: clone [node-canvas](https://github.com/Automattic/node-canvas) and switch to right version, then build it on the device with apple arm chip. Put the build result in the corresponding path of the apitable repo:...

> how to build? you can see here: [compiling node-canvas](https://github.com/Automattic/node-canvas?tab=readme-ov-file#compiling.com/Automattic/node-canvas?tab=readme-ov-file#compiling)