ScoopInstaller / Install

📥 Next-generation Scoop (un)installer

Home Page:https://get.scoop.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enhance Scoop Installation for Chinese Users by Updating get.scoop.sh Redirect URL

StarsbySea opened this issue · comments

Hello,

I'm not sure which member, team, or repository is responsible for controlling the redirect for get.scoop.sh, so I'm posting this issue here.

As you may know, the domain raw.githubusercontent.com is subject to DNS poisoning and SNI filtering in mainland China, which makes it difficult to install Scoop via get.scoop.sh. One could argue that users can specify a proxy, but that's not an ideal user experience, especially for system-level proxies or proxies that can only be used after Scoop is installed. It's worth noting that the main Github.com domain is not completely blocked.

To improve the installation experience for users in mainland China, I propose the following change: modify the behavior of get.scoop.sh, which currently redirects to https://raw.githubusercontent.com/scoopinstaller/install/master/install.ps1, to instead redirect to https://cdn.jsdelivr.net/gh/scoopinstaller/install/install.ps1. This alternative link provides the same content as the original link and has better connectivity in mainland China. This change should enhance the out-of-the-box installation experience for users in the region. No other modifications are necessary at this time.

Thank you for your attention to this matter.

Even if the installation file is downloaded normally, the subsequent package installation/update is also a problem, so a stable "ladder" is needed.

The resource pointed to by the get.scoop.sh URL is handled by Luke.

@lukesampson and @ScoopInstaller/maintainers, any thoughts on this?

any thoughts on this?

I personally just don't like the idea. Yeah, changing it as said may/might help in some cases and I know exactly what it means cuz I'm suffering from the same gfw. However I also perceive that despite a different host it may still be unreachable12 which did happen3 before. Hence, my philosophy on this would be if you can't solve it perfectly just keep the way it is, and do not bother Luke to update/maintain the settings. There are many alternatives people can use to access when you have a desire to reach that.

Footnotes

  1. https://linustechtips.com/topic/1515725-i-need-help-with-cdnjsdelivrnet-blocked-in-egypt/

  2. https://twitter.com/m_saleh_eg/status/1673248480351879168

  3. https://github.com/jsdelivr/jsdelivr/issues/18392

Can we point to both URLs with the JSDelivr URL specified as an alternative if you can't reach raw.githubusercontent.com?

This could be done either by specifying the full URL on the homepage, or creating a get-mirror.scoop.sh subdomain.

If supporting the following actions can significantly improve my experience

  1. Provide an offline version of Scoop (older versions of the main library are acceptable)
  2. package before Windows OOBE
    Why is this happening?
    some bucket in china http://gitee.com, no proxy required
    or scoop install clash or v2ray and more

I have a idea.
build exe or msi install file, Convenient for beginners and ordinary users, even without the need for a proxy to complete the installation. After installation, you can run the command
"set proxy" and "scoop update && scoop update *"
Or input during installation "set proxy"