Skip to content

Commit

Permalink
Add: Python mirror source of HuaweiCloud
Browse files Browse the repository at this point in the history
  • Loading branch information
LussacZheng committed Sep 17, 2019
1 parent f1fa99c commit 6254c94
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion res/dev/AutoGenerateLatestSourcesLists.bat
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,9 @@ echo [origin]>> %filePath%
echo https://www.python.org/ftp/python/%pyLatestVersion%/python-%pyLatestVersion%-embed-win32.zip>> %filePath%
echo [cn]>> %filePath%
echo @ https://npm.taobao.org/mirrors/python/%pyLatestVersion%/python-%pyLatestVersion%-embed-win32.zip>> %filePath%
echo $ https://mirrors.huaweicloud.com/python/%pyLatestVersion%/python-%pyLatestVersion%-embed-win32.zip>> %filePath%
echo [test]>> %filePath%
echo @ https://www.python.org/ftp/python/%pyLatestVersion%/python-%pyLatestVersion%-embed-win32.zip>> %filePath%
echo @ https://mirrors.huaweicloud.com/python/%pyLatestVersion%/python-%pyLatestVersion%-embed-win32.zip>> %filePath%
echo }>> %filePath%
echo [/portable][/quickstart][/withpip]>> %filePath%
echo.>> %filePath%
Expand Down
8 changes: 4 additions & 4 deletions res/dev/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 功能实验室 (Lab features)
# 功能实验室 / Lab Features
> [`video-downloader-deploy/res/dev/`](https://github.com/LussacZheng/video-downloader-deploy/tree/master/res/dev)
> *English translation is NOT provided for this instruction. Please translate it by yourself.*
Expand All @@ -13,7 +13,7 @@
自动生成含有 `python-embed.zip` , `you-get.tar.gz` , `youtube-dl.tar.gz` , `annie_Windows.zip` , `ffmpeg-static.zip` 的最新版本下载链接的 `sources.txt` 。可供 主程序 使用。

### 原理
自动解析 [Python](https://www.python.org/downloads/windows/), [You-Get](https://pypi.org/project/you-get/#files), [Youtube-dl](https://github.com/ytdl-org/youtube-dl/releases/latest) , [Annie](https://github.com/iawia002/annie/releases/latest) , [FFmpeg](https://ffmpeg.zeranoe.com/builds/win64/static/) 项目发布页等相关网页,获得其最新版本的下载链接。
自动解析 [Python](https://www.python.org/downloads/windows/), [You-Get](https://pypi.org/project/you-get/), [Youtube-dl](https://github.com/ytdl-org/youtube-dl/releases/latest) , [Annie](https://github.com/iawia002/annie/releases/latest) , [FFmpeg](https://ffmpeg.zeranoe.com/builds/win64/static/) , [Pip](https://pypi.org/project/pip/) 项目发布页等相关网页,获得其最新版本的下载链接。

### 使用
确保 `AutoGenerateLatestSourcesLists.bat` 当前所在目录或上级目录存在 `wget.exe` ,直接运行脚本即可。若正常运行,则会在当前目录生成 `sources.txt` ,移动并覆盖 `res\` 目录下的同名文件即可。
Expand All @@ -23,7 +23,7 @@

### 参考资料
1. Another method to get Python latest version number.
[GitHub - corpnewt/gibMacOS : gibMacOS.bat#L87](https://github.com/corpnewt/gibMacOS/blob/1d357c00cb265b40a61a50acca7405c513c19f61/gibMacOS.bat#L87)
[GitHub - corpnewt/gibMacOS : gibMacOS.bat#L87-L124](https://github.com/corpnewt/gibMacOS/blob/ce6f62c388f2bd48ec57aeca057e29ff90406dbb/gibMacOS.bat#L87-L124)
2. Another method to get YouGet latest version number.
```batch
wget -q --show-progress --progress=bar:force:noscroll --no-check-certificate -np https://github.com/soimort/you-get/releases/latest -O ygLatestRelease_Github.txt
Expand All @@ -40,4 +40,4 @@
## To be developed

如果你有任何好的想法或建议,欢迎 [提交 Issue](https://github.com/LussacZheng/video-downloader-deploy/issues)
If you have any ideas or suggestions, welcome to [Submit new issue](https://github.com/LussacZheng/video-downloader-deploy/issues) .
If you have any excellent ideas or suggestions, welcome to [Submit new issue](https://github.com/LussacZheng/video-downloader-deploy/issues) .
3 changes: 2 additions & 1 deletion res/sources.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ Mirrors{
https://www.python.org/ftp/python/3.7.4/python-3.7.4-embed-win32.zip
[cn]
@ https://npm.taobao.org/mirrors/python/3.7.4/python-3.7.4-embed-win32.zip
$ https://mirrors.huaweicloud.com/python/3.7.4/python-3.7.4-embed-win32.zip
[test]
@ https://www.python.org/ftp/python/3.7.4/python-3.7.4-embed-win32.zip
@ https://mirrors.huaweicloud.com/python/3.7.4/python-3.7.4-embed-win32.zip
}
[/portable][/quickstart][/withpip]

Expand Down

0 comments on commit 6254c94

Please sign in to comment.