Comments (27)
提供一个测试成功的 ci
https://github.com/inRm3D/clash-verge-1/actions/runs/2005500818
from clash-verge.
可能要蹲得比较久...
from clash-verge.
可能要蹲得比较久...
哈哈,期待大佬代码适配下 Linux平台,目前这些地方都没定义。
yarn dev
yarn run v1.22.17
$ tauri dev
[tauri:dev] Running `yarn run web:dev`
[tauri:dev] Waiting for your frontend dev server to start on http://localhost:3000/...
$ vite
vite v2.8.6 dev server running at:
> Local: http://localhost:3000/
> Network: use `--host` to expose
ready in 240ms.
Compiling clash-verge v0.1.0 (/home/jack/clash-verge/src-tauri)
Compiling tauri-runtime-wry v0.3.2
Compiling tauri v1.0.0-rc.3
error[E0425]: cannot find value `DEFAULT_BYPASS` in this scope
--> src/utils/sysopt.rs:34:32
|
34 | bypass: bypass.unwrap_or(DEFAULT_BYPASS.into()),
| ^^^^^^^^^^^^^^ not found in this scope
warning: unused import: `std::io`
--> src/utils/sysopt.rs:2:5
|
2 | use std::io;
| ^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
error[E0599]: no function or associated item named `get_sys` found for struct `SysProxyConfig` in the current scope
--> src/core/verge.rs:101:49
|
101 | self.old_sysproxy = match SysProxyConfig::get_sys() {
| ^^^^^^^ function or associated item not found in `SysProxyConfig`
|
::: src/utils/sysopt.rs:13:1
|
13 | pub struct SysProxyConfig {
| ------------------------- function or associated item `get_sys` not found for this
error[E0599]: no method named `set_sys` found for struct `SysProxyConfig` in the current scope
--> src/core/verge.rs:110:21
|
110 | if sysproxy.set_sys().is_err() {
| ^^^^^^^ method not found in `SysProxyConfig`
|
::: src/utils/sysopt.rs:13:1
|
13 | pub struct SysProxyConfig {
| ------------------------- method `set_sys` not found for this
error[E0599]: no method named `set_sys` found for struct `SysProxyConfig` in the current scope
--> src/core/verge.rs:125:22
|
125 | match sysproxy.set_sys() {
| ^^^^^^^ method not found in `SysProxyConfig`
|
::: src/utils/sysopt.rs:13:1
|
13 | pub struct SysProxyConfig {
| ------------------------- method `set_sys` not found for this
error[E0599]: no method named `set_sys` found for struct `SysProxyConfig` in the current scope
--> src/core/verge.rs:214:21
|
214 | if sysproxy.set_sys().is_err() {
| ^^^^^^^ method not found in `SysProxyConfig`
|
::: src/utils/sysopt.rs:13:1
|
13 | pub struct SysProxyConfig {
| ------------------------- method `set_sys` not found for this
error[E0599]: no method named `set_sys` found for struct `SysProxyConfig` in the current scope
--> src/core/verge.rs:233:23
|
233 | if sysproxy.set_sys().is_err() {
| ^^^^^^^ method not found in `SysProxyConfig`
|
::: src/utils/sysopt.rs:13:1
|
13 | pub struct SysProxyConfig {
| ------------------------- method `set_sys` not found for this
error[E0599]: no method named `set_sys` found for struct `SysProxyConfig` in the current scope
--> src/core/verge.rs:316:34
|
316 | log_if_err!(sysproxy.set_sys());
| ^^^^^^^ method not found in `SysProxyConfig`
|
::: src/utils/sysopt.rs:13:1
|
13 | pub struct SysProxyConfig {
| ------------------------- method `set_sys` not found for this
error[E0599]: no function or associated item named `get_sys` found for struct `SysProxyConfig` in the current scope
--> src/cmds.rs:243:29
|
243 | wrap_err!(SysProxyConfig::get_sys())
| ^^^^^^^ function or associated item not found in `SysProxyConfig`
|
::: src/utils/sysopt.rs:13:1
|
13 | pub struct SysProxyConfig {
| ------------------------- function or associated item `get_sys` not found for this
Some errors have detailed explanations: E0425, E0599.
For more information about an error, try `rustc --explain E0425`.
warning: `clash-verge` (bin "clash-verge") generated 1 warning
error: could not compile `clash-verge` due to 8 previous errors; 1 warning emitted
from clash-verge.
@breakings 这些都是和设置系统代理有关的内容,有关linux系统代理的设置我还不懂。。。这个问题只需要针对linux实现两个函数即可,有没有兴趣来个PR啥的呢
from clash-verge.
写个判断不是Windows就用iproute2和nftables的透明代理呢
系统代理,Linux一条指令就OK了(
from clash-verge.
现在应该可以在linux上编译了,关于linux系统代理实现的讨论在 #15 ,先这样实现看看有没有什么问题。
from clash-verge.
现在应该可以在linux上编译了,关于linux系统代理实现的讨论在 #15 ,先这样实现看看有没有什么问题。
好家伙,但我尝试yarn dev出来的包三百多兆 运行 yarn release又提示要github token
from clash-verge.
现在应该可以在linux上编译了,关于linux系统代理实现的讨论在 #15 ,先这样实现看看有没有什么问题。
好家伙,但我尝试yarn dev出来的包三百多兆 运行 yarn release又提示要github token
如果你不需要代理全局的话,可以试一试我的分支,我看了下只需要十几兆
from clash-verge.
好家伙,但我尝试yarn dev出来的包三百多兆 运行 yarn release又提示要github token
yarn dev生成的是包含debug信息啥的没优化的执行文件,但也不会是几百M这么多吧,你可能找错了?
yarn release是给ci执行的,你需要构建的话,执行yarn build就好。
from clash-verge.
现在应该可以在linux上编译了,关于linux系统代理实现的讨论在 #15 ,先这样实现看看有没有什么问题。
好家伙,但我尝试yarn dev出来的包三百多兆 运行 yarn release又提示要github token
如果你不需要代理全局的话,可以试一试我的分支,我看了下只需要十几兆
好的,我尝试一下
from clash-verge.
好家伙,但我尝试yarn dev出来的包三百多兆 运行 yarn release又提示要github token
yarn dev生成的是包含debug信息啥的没优化的执行文件,但也不会是几百M这么多吧,你可能找错了?
yarn release是给ci执行的,你需要构建的话,执行yarn build就好。
这次构建成功了,十几兆是正常了,deb和appimage都打包成功了,另外不支持导入本地yml配置文件吗
from clash-verge.
@breakings 支持导入本地配置的,可以看看pinned issue 使用指南。
from clash-verge.
@inRm3D 已经加了linux的ci,感谢
from clash-verge.
@inRm3D 已经加了 linux 的 ci,感谢
不客气,ubuntu 这个缺包挺折磨人的(拆包狂魔)。我一开始试了 5,6 次,每次 rust build 到最后提示缺包。后面突然发现 https://github.com/tauri-apps/tauri-action 这个有提示依赖,就试成功了。
from clash-verge.
@inRm3D 方便提供一个ubuntu里的界面截图吗,印象中我没有对linux的窗口做啥处理,ui上可能多了一点元素。
from clash-verge.
我用的是 Arch + appimage, 一开始用 deb 包 + debtap 转换,结果无法检测流量。appimage 除了似乎开机自启无效都能用。
另外默认的窗口可以大一些。不然有时会挤到一起。
from clash-verge.
@inRm3D 右上角最小化最大化关闭那几个按键是不是多余了,linux应该有自己的窗口了
from clash-verge.
@inRm3D 右上角最小化最大化关闭那几个按键是不是多余了,linux 应该有自己的窗口了
好像是的。
from clash-verge.
@inRm3D ok,感谢
from clash-verge.
@inRm3D ok,感谢
@breakings 支持导入本地配置的,可以看看pinned issue 使用指南。
这种 yarn build的缓存怎么清理好些 这依赖的包好多 占用空间
from clash-verge.
@inRm3D ok,感谢
@breakings 支持导入本地配置的,可以看看 pinned issue 使用指南。
这种 yarn build 的缓存怎么清理好些 这依赖的包好多 占用空间
debian 及衍生版就拿 deb 安装。其余的拿 AppImage. 然后可以删了整个项目。
以及已经提供了 ci, 作者加上了。后面可以不手动编译了。
from clash-verge.
@inRm3D ok,感谢
我搞错了,好像还是要画的。现在没有那几个按钮了。可能是 tauri 实现机制不一样?
from clash-verge.
@inRm3D 可以来一个完整的窗口截图吗
from clash-verge.
@inRm3D 可以来一个完整的窗口截图吗
那张就是完整的
from clash-verge.
这个 issue 应该可以关了。
from clash-verge.
@zzzgydi
这个是咋回事啊
from clash-verge.
各位大神帮忙看看
from clash-verge.
Related Issues (20)
- 代理使用规则模式有时上不了网,用全局模式好像没有出现过 HOT 1
- Does CV support load balance with group like CFW HOT 2
- [BUG] 开启Clash Verge的系统代理时Conda安装Python包会出现SSL错误
- [BUG]卸载clash verge后网络适配器里还是有meta选项无法彻底删除 HOT 1
- telegram应用程序无法联网 HOT 7
- 更多协议支持 HOT 3
- [BUG] 从未使用该软件成功翻墙过 HOT 8
- [Feature]希望增加配置文件预处理功能 HOT 13
- [BUG] 延迟测试的原理是什么,为啥我这边到所有节点的连接都是Error HOT 3
- [Feature] 增加 PowerShell 一键复制环境变量功能 HOT 1
- [BUG]v1.3.8的上下行流量统计都是0B HOT 4
- Clash HOT 1
- 隔壁CFW无了,转来这里了 HOT 14
- [Feature] ARM64 Linux support HOT 6
- [BUG] error "invalid peer certificate: UnknownIssuer" for HTTPS profile without full-chain certification
- 兼容问题,寻求帮助 HOT 3
- clash core 404了会对这个有影响吗 HOT 1
- [Feature] 希望关闭 GUI 后结束 tauri 进程 HOT 1
- [BUG]WiFi连接时可用,拨号上网时系统代理与TUN均不可用 HOT 1
- [BUG] 服务安装时候报 failed to install service with status -1,但实际是安装成功了
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clash-verge.