diff --git a/CHANGELOG.md b/CHANGELOG.md index 70e8f9d..5de2b94 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # 更新日志 +## v4.0.9 +*2024.2.9* +- 由于 `.tk` 域名被 ICANN 暂停,切换至 guyutongxue.site 域名。 + ## v4.0.8 *2023.8.24* - 修复了 Console Pauser 启动工作路径不正确的问题 diff --git a/README.md b/README.md index eb27542..dfd718c 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ winget install Guyutongxue.Vscch ## 文档 -请看[官网](https://v4.vscch.tk/docs)。 +请看[官网](https://vscch.guyutongxue.site/docs)。 ## 开发 diff --git a/docs/CNAME b/docs/CNAME index 57567e4..b7cd1bd 100644 --- a/docs/CNAME +++ b/docs/CNAME @@ -1 +1 @@ -v4.vscch.tk \ No newline at end of file +vscch.guyutongxue.site diff --git a/docs/docs/linux.md b/docs/docs/linux.md index bfd415f..7bfb7cf 100644 --- a/docs/docs/linux.md +++ b/docs/docs/linux.md @@ -26,7 +26,7 @@ ## 第二步:获取本软件 -直接在[网站首页](https://v4.vscch.tk/)下载即可。Linux 版共有两种下载: +直接在[网站首页](https://vscch.guyutongxue.site/)下载即可。Linux 版共有两种下载: 1. (默认)AppImage。体积较大,但保证可以在各大发行版运行。 2. 可执行文件。体积较小,但可能需要外部链接库才能正常运行。 diff --git a/docs/docs/macos.md b/docs/docs/macos.md index c995a67..a8c6a1a 100644 --- a/docs/docs/macos.md +++ b/docs/docs/macos.md @@ -11,7 +11,7 @@ ## 第二步:获取本软件 -直接在[网站首页](https://v4.vscch.tk/)下载即可。macOS 版共有两种下载: +直接在[网站首页](https://vscch.guyutongxue.site/)下载即可。macOS 版共有两种下载: 1. (默认).dmg 映像文件,内含 .app 打包应用程序。总是建议你使用该版本。 2. 可执行文件。需要手动赋予可执行权限、并在安全策略允许后才可运行。 diff --git a/docs/docs/windows.md b/docs/docs/windows.md index be29936..8860ff3 100644 --- a/docs/docs/windows.md +++ b/docs/docs/windows.md @@ -15,7 +15,7 @@ ## 第二步:获取本软件 -直接在[网站首页](https://v4.vscch.tk/)下载即可。Windows 版共有两种下载: +直接在[网站首页](https://vscch.guyutongxue.site/)下载即可。Windows 版共有两种下载: - (默认)可执行文件(.exe)。该版本体积小,且操作方便;但可能需要你手动安装 WebView 2。 - 安装器(.msi)。该版本下载后需要首先运行安装器(此时会自动安装 WebView 2 等相关依赖库)才可运行。如果你希望长期使用本软件,你可以下载安装器安装。 diff --git a/docs/docs/wsl.md b/docs/docs/wsl.md index 8256ff8..d617817 100644 --- a/docs/docs/wsl.md +++ b/docs/docs/wsl.md @@ -6,7 +6,7 @@ ## Step 1:下载程序 -请在[网站下载处](https://v4.vscch.tk/#download)点击 Linux 版 - 可执行文件。AppImage 不好使。 +请在[网站下载处](https://vscch.guyutongxue.site/#download)点击 Linux 版 - 可执行文件。AppImage 不好使。 ## Step 2:安装中文字体 diff --git a/docs/index.html b/docs/index.html index b768715..ead9345 100644 --- a/docs/index.html +++ b/docs/index.html @@ -369,15 +369,15 @@

下载

downloadType = "appImage"; } function withProxy(/** @type {string} */ url) { - const proxyUrl = new URL("https://v4.vscch.tk/proxy"); + const proxyUrl = new URL("https://api.guyutongxue.site/proxy"); proxyUrl.searchParams.append("target", url); return proxyUrl.href; } const DOWNLOAD_LINKS = {}; Promise.all( [ - `//v4.vscch.tk/api/installer`, - `//v4.vscch.tk/api/portable`, + `//api.guyutongxue.site/vscch/installer`, + `//api.guyutongxue.site/vscch/portable`, ].map((url) => fetch(url).then((r) => r.json())) ).then(([i, p]) => { DOWNLOAD_LINKS.msi = i.platforms.win64.url; diff --git a/src-tauri/src/steps/compiler/mingw.rs b/src-tauri/src/steps/compiler/mingw.rs index 32535d1..e95bee5 100644 --- a/src-tauri/src/steps/compiler/mingw.rs +++ b/src-tauri/src/steps/compiler/mingw.rs @@ -91,12 +91,12 @@ fn verify( } fn install_gcc() -> Result<()> { - open::that("https://v4.vscch.tk/api/mingw")?; + open::that("https://api.guyutongxue.site/vscch/mingw")?; Ok(()) } fn install_clang() -> Result<()> { - open::that("https://v4.vscch.tk/api/llvm-mingw")?; + open::that("https://api.guyutongxue.site/vscch/llvm-mingw")?; Ok(()) } diff --git a/src-tauri/src/steps/compiler/msvc.rs b/src-tauri/src/steps/compiler/msvc.rs index df24c63..4940260 100644 --- a/src-tauri/src/steps/compiler/msvc.rs +++ b/src-tauri/src/steps/compiler/msvc.rs @@ -36,7 +36,7 @@ use windows::Win32::UI::Shell::{ static POWERSHELL: &str = "C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe"; static VSWHERE_DOWNLOAD_LINK: &str = - "http://v4.vscch.tk/proxy/?target=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fvswhere%2Freleases%2Fdownload%2F3.0.3%2Fvswhere.exe"; + "http://api.guyutongxue.site/proxy/?target=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fvswhere%2Freleases%2Fdownload%2F3.0.3%2Fvswhere.exe"; fn get_vswhere() -> Option { let choco_path = get_known_folder_path(&FOLDERID_ProgramData) diff --git a/src-tauri/src/tasks/statistics.rs b/src-tauri/src/tasks/statistics.rs index 39c809f..baeb1ac 100644 --- a/src-tauri/src/tasks/statistics.rs +++ b/src-tauri/src/tasks/statistics.rs @@ -74,7 +74,7 @@ pub fn send_error(e: &Error) -> Option { id %= 1_000_000; warn!("发送错误日志。标识码 {}", id); let res = reqwest::blocking::Client::new() - .post(format!("https://v4.vscch.tk/api/errorLog/{}", id)) + .post(format!("https://api.guyutongxue.site/vscch/errorLog/{}", id)) .header(CONTENT_TYPE, "text/plain") .body(fs::read_to_string(get_log_path())?) .send()?; diff --git a/src/App.svelte b/src/App.svelte index 551b5b0..2f3d8da 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -119,13 +119,13 @@ let checkUpdateString = "检查更新"; async function checkUpdate() { checkUpdateString = "检查更新中..."; - const result = await fetch(`https://v4.vscch.tk/api/installer`).then((r) => + const result = await fetch(`https://api.guyutongxue.site/vscch/installer`).then((r) => r.json() ); const latestVersion: string = result.name; if (compareVersions(latestVersion, version) > 0) { if (await confirm(`新版本 ${latestVersion} 可用。是否前往下载?`)) { - open(`https://v4.vscch.tk`); + open(`https://vscch.guyutongxue.site`); } } else { alert(`已是最新版本(${latestVersion})。`);