Feature Request: 适配Linux(Ubuntu的途径)
irhawks opened this issue · comments
- 为了在ubuntu下面成功构建deb包,需要在
package.json
中添加作者信息,比如
"author": {"name": "lxfater", "email": "lxfater@gmail.com"}
-
需要修改一些文件的大小写。比如
packages/renderer/src/components/ChatGptViewer.vue
复制一份到形成packages/renderer/src/components/ChatGPTViewer.vue
-
可能需要为Electron程序配置代理。比如在
packages/main/src/mainWindow.ts
的第26行之后添加如下内容:
browserWindow.webContents.session.setProxy({
proxyRules: "socks5://localhost:9050",
});
后面希望代理能够自动识别Linux系统当中的http_proxy
或者https_proxy
等变量。
现在代理有软件对接socks5,也有直接反向代理到别人的API服务器,你觉得那个合适。
…---原始邮件---
发件人: ***@***.***>
发送时间: 2023年3月28日(周二) 下午2:59
收件人: ***@***.***>;
抄送: ***@***.***>;
主题: [lxfater/Portal] Feature Request: 适配Linux(Ubuntu的途径) (Issue #12)
为了在ubuntu下面成功构建deb包,需要在package.json中添加作者信息,比如
"author": {"name": "lxfater", "email": ***@***.***"}
需要修改一些文件的大小写。比如packages/renderer/src/components/ChatGptViewer.vue复制一份到形成packages/renderer/src/components/ChatGPTViewer.vue
可能需要为Electron程序配置代理。比如在packages/main/src/mainWindow.ts的第26行之后添加如下内容:
browserWindow.webContents.session.setProxy({ proxyRules: "socks5://localhost:9050", });
后面希望代理能够自动识别Linux系统当中的http_proxy或者https_proxy等变量。
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>