求助,有Win7能用的FastGithub吗

请仔细说明自己遇到的问题,以下是参考模板。这里不要求非得按模板发帖,但内容中包含相关要素能让大家更好地帮助你。


遇到的问题

我使用的是1.0.8版本的obsidian,暂时不知道怎么操作升级 win7系统,因为里面的第三方插件打不开,我先下载了dev-sifecar,成功打开GitHup之后发现FastGithub Win7系统无法安装,所以想请问一下,还有古早版本的FastGithhub可以使用吗?

预期的效果

正常使用第三方插件功能。

把这个保存为 host.ps1 文件,使用管理员身份的powershell打开,不出意外的话就能访问Github了

$hostsFilePath = "C:\Windows\System32\drivers\etc\hosts"
$tempFilePath = "C:\hosts.txt"
$url = "https://raw.hellogithub.com/hosts"
$startLine = "# GitHub520 Host Start"
$endLine = "# GitHub520 Host End"

# Check if the line exists in the hosts file
$lineExists = Select-String -Path $hostsFilePath -Pattern $startLine -Quiet

# If the line exists, remove the old segment
if ($lineExists) {
    $content = Get-Content $hostsFilePath
    $startLineIndex = $content.IndexOf($startLine)
    $endLineIndex = $content.IndexOf($endLine)

    if ($startLineIndex -ne -1 -and $endLineIndex -ne -1) {
        if ($startLineIndex -ne 0) {
            $dns = $content[0..($startLineIndex - 1)]
        }
        if ($endLineIndex + 1 -ne $content.Length) {
          $dns = $dns + $content[($endLineIndex + 1)..($content.Length - 1)]
        }
        $dns | Out-File $hostsFilePath -Encoding UTF8
    }
}

# Download the hosts file from the specified URL and append it to the local hosts file
Invoke-WebRequest -Uri $url -OutFile $tempFilePath
Add-Content -Path $hostsFilePath -Value (Get-Content -Path $tempFilePath)

# Remove the temporary file
Remove-Item -Path $tempFilePath

# Flush the DNS cache
cmd /c ipconfig /flushdns