Skip to content

Commit

Permalink
4.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
guyutongxue committed Feb 9, 2024
1 parent 36b4d3f commit 235c6c6
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 15 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# 更新日志

## v4.0.9
*2024.2.9*
- 由于 `.tk` 域名被 ICANN 暂停,切换至 guyutongxue.site 域名。

## v4.0.8
*2023.8.24*
- 修复了 Console Pauser 启动工作路径不正确的问题
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ winget install Guyutongxue.Vscch

## 文档

请看[官网](https://v4.vscch.tk/docs)
请看[官网](https://vscch.guyutongxue.site/docs)

## 开发

Expand Down
2 changes: 1 addition & 1 deletion docs/CNAME
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v4.vscch.tk
vscch.guyutongxue.site
2 changes: 1 addition & 1 deletion docs/docs/linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
## 第二步:获取本软件
直接在[网站首页](https://v4.vscch.tk/)下载即可。Linux 版共有两种下载:
直接在[网站首页](https://vscch.guyutongxue.site/)下载即可。Linux 版共有两种下载:
1. (默认)AppImage。体积较大,但保证可以在各大发行版运行。
2. 可执行文件。体积较小,但可能需要外部链接库才能正常运行。
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/macos.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

## 第二步:获取本软件

直接在[网站首页](https://v4.vscch.tk/)下载即可。macOS 版共有两种下载:
直接在[网站首页](https://vscch.guyutongxue.site/)下载即可。macOS 版共有两种下载:
1. (默认).dmg 映像文件,内含 .app 打包应用程序。总是建议你使用该版本。
2. 可执行文件。需要手动赋予可执行权限、并在安全策略允许后才可运行。

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

## 第二步:获取本软件

直接在[网站首页](https://v4.vscch.tk/)下载即可。Windows 版共有两种下载:
直接在[网站首页](https://vscch.guyutongxue.site/)下载即可。Windows 版共有两种下载:

- (默认)可执行文件(.exe)。该版本体积小,且操作方便;但可能需要你手动安装 WebView 2。
- 安装器(.msi)。该版本下载后需要首先运行安装器(此时会自动安装 WebView 2 等相关依赖库)才可运行。如果你希望长期使用本软件,你可以下载安装器安装。
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/wsl.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

## Step 1:下载程序

请在[网站下载处](https://v4.vscch.tk/#download)点击 Linux 版 - 可执行文件。AppImage 不好使。
请在[网站下载处](https://vscch.guyutongxue.site/#download)点击 Linux 版 - 可执行文件。AppImage 不好使。

## Step 2:安装中文字体

Expand Down
6 changes: 3 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -369,15 +369,15 @@ <h3 class="mb-3" id="download">下载</h3>
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;
Expand Down
4 changes: 2 additions & 2 deletions src-tauri/src/steps/compiler/mingw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}

Expand Down
2 changes: 1 addition & 1 deletion src-tauri/src/steps/compiler/msvc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<PathBuf> {
let choco_path = get_known_folder_path(&FOLDERID_ProgramData)
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/src/tasks/statistics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ pub fn send_error(e: &Error) -> Option<u64> {
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()?;
Expand Down
4 changes: 2 additions & 2 deletions src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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})。`);
Expand Down

0 comments on commit 235c6c6

Please sign in to comment.