Change program name to "HiddifyDesktop"

This commit is contained in:
iam54r1n4 2023-01-23 15:28:14 -08:00
parent 21c24a98d2
commit 1dfd32ea31
5 changed files with 17 additions and 133 deletions

View file

@ -1,5 +1,5 @@
{
"name": "clash-verge",
"name": "HiddifyDesktop",
"version": "1.2.1",
"license": "GPL-3.0",
"scripts": {

135
src-tauri/Cargo.lock generated
View file

@ -279,22 +279,6 @@ version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "065374052e7df7ee4047b1160cca5e1467a12351a40b3da123c870ba0b8eda2a"
[[package]]
name = "attohttpc"
version = "0.22.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1fcf00bc6d5abb29b5f97e3c61a90b6d3caa12f3faf897d4a3e3607c050a35a7"
dependencies = [
"flate2",
"http",
"log 0.4.17",
"native-tls",
"serde",
"serde_json",
"serde_urlencoded",
"url",
]
[[package]]
name = "auto-launch"
version = "0.4.0"
@ -1435,7 +1419,7 @@ dependencies = [
"libc",
"log 0.4.17",
"rustversion",
"windows 0.39.0",
"windows",
]
[[package]]
@ -2354,12 +2338,6 @@ version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
[[package]]
name = "minisign-verify"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "933dca44d65cdd53b355d0b73d380a2ff5da71f87f036053188bf1eab6a19881"
[[package]]
name = "miniz_oxide"
version = "0.5.4"
@ -2632,17 +2610,6 @@ dependencies = [
"objc_exception",
]
[[package]]
name = "objc-foundation"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1add1b659e36c9607c7aab864a76c7a4c2760cd0cd2e120f3fb8b952c7e22bf9"
dependencies = [
"block",
"objc",
"objc_id",
]
[[package]]
name = "objc_exception"
version = "0.1.2"
@ -3356,30 +3323,6 @@ dependencies = [
"winreg",
]
[[package]]
name = "rfd"
version = "0.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0149778bd99b6959285b0933288206090c50e2327f47a9c463bfdbf45c8823ea"
dependencies = [
"block",
"dispatch",
"glib-sys",
"gobject-sys",
"gtk-sys",
"js-sys",
"lazy_static 1.4.0",
"log 0.4.17",
"objc",
"objc-foundation",
"objc_id",
"raw-window-handle",
"wasm-bindgen",
"wasm-bindgen-futures",
"web-sys",
"windows 0.37.0",
]
[[package]]
name = "rquickjs"
version = "0.1.7"
@ -4090,7 +4033,7 @@ dependencies = [
"serde",
"unicode-segmentation",
"uuid 1.2.2",
"windows 0.39.0",
"windows",
"windows-implement",
"x11-dl",
]
@ -4113,8 +4056,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d8ea1d785ab2164373703817bff144c4610a69ad3f659becaca0e1ea004b98d8"
dependencies = [
"anyhow",
"attohttpc",
"base64",
"cocoa",
"dirs-next",
"embed_plist",
@ -4127,7 +4068,6 @@ dependencies = [
"heck 0.4.0",
"http",
"ignore",
"minisign-verify",
"objc",
"once_cell",
"open",
@ -4136,7 +4076,6 @@ dependencies = [
"rand 0.8.5",
"raw-window-handle",
"regex 1.7.0",
"rfd",
"semver 1.0.14",
"serde",
"serde_json",
@ -4151,14 +4090,12 @@ dependencies = [
"tauri-utils",
"tempfile",
"thiserror",
"time 0.3.17",
"tokio",
"url",
"uuid 1.2.2",
"webkit2gtk",
"webview2-com",
"windows 0.39.0",
"zip",
"windows",
]
[[package]]
@ -4234,7 +4171,7 @@ dependencies = [
"thiserror",
"uuid 1.2.2",
"webview2-com",
"windows 0.39.0",
"windows",
]
[[package]]
@ -4253,7 +4190,7 @@ dependencies = [
"uuid 1.2.2",
"webkit2gtk",
"webview2-com",
"windows 0.39.0",
"windows",
"wry",
]
@ -4282,7 +4219,7 @@ dependencies = [
"thiserror",
"url",
"walkdir",
"windows 0.39.0",
"windows",
]
[[package]]
@ -5071,7 +5008,7 @@ checksum = "b4a769c9f1a64a8734bde70caafac2b96cada12cd4aefa49196b3a386b8b4178"
dependencies = [
"webview2-com-macros",
"webview2-com-sys",
"windows 0.39.0",
"windows",
"windows-implement",
]
@ -5096,7 +5033,7 @@ dependencies = [
"serde",
"serde_json",
"thiserror",
"windows 0.39.0",
"windows",
"windows-bindgen",
"windows-metadata",
]
@ -5186,19 +5123,6 @@ dependencies = [
"windows-sys 0.42.0",
]
[[package]]
name = "windows"
version = "0.37.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "57b543186b344cc61c85b5aab0d2e3adf4e0f99bc076eff9aa5927bcc0b8a647"
dependencies = [
"windows_aarch64_msvc 0.37.0",
"windows_i686_gnu 0.37.0",
"windows_i686_msvc 0.37.0",
"windows_x86_64_gnu 0.37.0",
"windows_x86_64_msvc 0.37.0",
]
[[package]]
name = "windows"
version = "0.39.0"
@ -5285,12 +5209,6 @@ version = "0.36.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9bb8c3fd39ade2d67e9874ac4f3db21f0d710bee00fe7cab16949ec184eeaa47"
[[package]]
name = "windows_aarch64_msvc"
version = "0.37.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2623277cb2d1c216ba3b578c0f3cf9cdebeddb6e66b1b218bb33596ea7769c3a"
[[package]]
name = "windows_aarch64_msvc"
version = "0.39.0"
@ -5309,12 +5227,6 @@ version = "0.36.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "180e6ccf01daf4c426b846dfc66db1fc518f074baa793aa7d9b9aaeffad6a3b6"
[[package]]
name = "windows_i686_gnu"
version = "0.37.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d3925fd0b0b804730d44d4b6278c50f9699703ec49bcd628020f46f4ba07d9e1"
[[package]]
name = "windows_i686_gnu"
version = "0.39.0"
@ -5333,12 +5245,6 @@ version = "0.36.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e2e7917148b2812d1eeafaeb22a97e4813dfa60a3f8f78ebe204bcc88f12f024"
[[package]]
name = "windows_i686_msvc"
version = "0.37.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ce907ac74fe331b524c1298683efbf598bb031bc84d5e274db2083696d07c57c"
[[package]]
name = "windows_i686_msvc"
version = "0.39.0"
@ -5357,12 +5263,6 @@ version = "0.36.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4dcd171b8776c41b97521e5da127a2d86ad280114807d0b2ab1e462bc764d9e1"
[[package]]
name = "windows_x86_64_gnu"
version = "0.37.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2babfba0828f2e6b32457d5341427dcbb577ceef556273229959ac23a10af33d"
[[package]]
name = "windows_x86_64_gnu"
version = "0.39.0"
@ -5387,12 +5287,6 @@ version = "0.36.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c811ca4a8c853ef420abd8592ba53ddbbac90410fab6903b3e79972a631f7680"
[[package]]
name = "windows_x86_64_msvc"
version = "0.37.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f4dd6dc7df2d84cf7b33822ed5b86318fb1781948e9663bacd047fc9dd52259d"
[[package]]
name = "windows_x86_64_msvc"
version = "0.39.0"
@ -5457,7 +5351,7 @@ dependencies = [
"webkit2gtk",
"webkit2gtk-sys",
"webview2-com",
"windows 0.39.0",
"windows",
"windows-implement",
]
@ -5505,14 +5399,3 @@ checksum = "56c1936c4cc7a1c9ab21a1ebb602eb942ba868cbd44a99cb7cdc5892335e1c85"
dependencies = [
"linked-hash-map",
]
[[package]]
name = "zip"
version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "537ce7411d25e54e8ae21a7ce0b15840e7bfcff15b51d697ec3266cc76bdf080"
dependencies = [
"byteorder",
"crc32fast",
"crossbeam-utils",
]

View file

@ -38,7 +38,7 @@ tokio = { version = "1", features = ["full"] }
async-std = { version = "1", features = ["attributes", "tokio1"] }
serde = { version = "1.0", features = ["derive"] }
reqwest = { version = "0.11", features = ["json"] }
tauri = { version = "1.1.1", features = ["global-shortcut-all", "process-all", "shell-all", "system-tray", "updater", "window-all"] }
tauri = { version = "1.1.1", features = ["global-shortcut-all", "process-all", "shell-all", "system-tray", "window-all"] }
tauri-runtime-wry = { version = "0.12" }
window-vibrancy = { version = "0.3.0" }
window-shadows = { version = "0.2.0" }

View file

@ -19,9 +19,9 @@ use tauri::{api, SystemTray};
async fn main() -> std::io::Result<()> {
// Deep linking
deep_link::prepare("top.gydi.clashverg");
deep_link::prepare("app.clashverge");
let deep_link_register_result = deep_link::register("clashy",| deep_link | async move {
let deep_link_register_result = deep_link::register("clash",| deep_link | async move {
// Convert deep link to something that import_profile can use
let profile_url_and_name = help::convert_deeplink_to_url_for_import_profile(&deep_link);
// If deep link is invalid, we pop up a message to user
@ -35,6 +35,7 @@ async fn main() -> std::io::Result<()> {
if import_result.is_err(){
Handle::notice_message("set_config::error",format!("Profile url is invalid | {}", import_result.err().unwrap()));
}
Handle::notice_message("set_config::ok", "Profile added.");
}).await;
// If we couldn't register, we log it

View file

@ -1,6 +1,6 @@
{
"package": {
"productName": "Clash Verge",
"productName": "HiddifyDesktop",
"version": "1.2.1"
},
"build": {
@ -26,7 +26,7 @@
"icons/icon.ico"
],
"resources": ["resources"],
"externalBin": ["sidecar/clash", "sidecar/clash-meta"],
"externalBin": ["sidecar/clash-meta", "sidecar/clash"],
"copyright": "© 2022 zzzgydi All Rights Reserved",
"category": "DeveloperTool",
"shortDescription": "A Clash GUI based on tauri.",
@ -51,7 +51,7 @@
}
},
"updater": {
"active": true,
"active": false,
"endpoints": [
"https://github.com/zzzgydi/clash-verge/releases/download/updater/update.json",
"https://hub.fastgit.xyz/zzzgydi/clash-verge/releases/download/updater/update-proxy.json"