Compare commits
2
Commits
71133bb60e
...
57186bf105
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
57186bf105 | ||
|
|
7b41761437 |
@@ -1,18 +0,0 @@
|
|||||||
name: 同步到 CNB
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
push:
|
|
||||||
jobs:
|
|
||||||
run:
|
|
||||||
name: 同步到 CNB
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
- uses: yesolutions/mirror-action@master
|
|
||||||
with:
|
|
||||||
REMOTE: https://cnb.cool/bin456789/reinstall.git
|
|
||||||
GIT_USERNAME: cnb
|
|
||||||
GIT_PASSWORD: ${{ secrets.CNB_TOKEN }}
|
|
||||||
PUSH_ALL_REFS: false
|
|
||||||
@@ -86,16 +86,8 @@
|
|||||||
|
|
||||||
## 下载(当前系统是 <img width="20" height="20" src="https://www.kernel.org/theme/images/logos/favicon.png" /> Linux)
|
## 下载(当前系统是 <img width="20" height="20" src="https://www.kernel.org/theme/images/logos/favicon.png" /> Linux)
|
||||||
|
|
||||||
国外服务器:
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -O https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh || wget -O ${_##*/} $_
|
curl -O https://git.dr1997.com/public/reinstall/raw/main/reinstall.sh || wget -O ${_##*/} $_
|
||||||
```
|
|
||||||
|
|
||||||
国内服务器:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
curl -O https://cnb.cool/bin456789/reinstall/-/git/raw/main/reinstall.sh || wget -O ${_##*/} $_
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## 下载(当前系统是 <img width="20" height="20" src="https://blogs.windows.com/wp-content/uploads/prod/2022/09/cropped-Windows11IconTransparent512-32x32.png" /> Windows)
|
## 下载(当前系统是 <img width="20" height="20" src="https://blogs.windows.com/wp-content/uploads/prod/2022/09/cropped-Windows11IconTransparent512-32x32.png" /> Windows)
|
||||||
@@ -111,7 +103,7 @@ curl -O https://cnb.cool/bin456789/reinstall/-/git/raw/main/reinstall.sh || wget
|
|||||||
|
|
||||||
用 IE 下载 (先在 IE 高级设置里启用 TLS 1.2),或者通过远程桌面,将这两个文件保存到同一个目录
|
用 IE 下载 (先在 IE 高级设置里启用 TLS 1.2),或者通过远程桌面,将这两个文件保存到同一个目录
|
||||||
|
|
||||||
- <https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.bat>
|
- <https://git.dr1997.com/public/reinstall/raw/main/reinstall.bat>
|
||||||
|
|
||||||
- <https://www.cygwin.com/setup-x86.exe>
|
- <https://www.cygwin.com/setup-x86.exe>
|
||||||
|
|
||||||
@@ -119,16 +111,8 @@ curl -O https://cnb.cool/bin456789/reinstall/-/git/raw/main/reinstall.sh || wget
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
国外服务器:
|
|
||||||
|
|
||||||
```batch
|
```batch
|
||||||
certutil -urlcache -f -split https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.bat
|
certutil -urlcache -f -split https://git.dr1997.com/public/reinstall/raw/main/reinstall.bat
|
||||||
```
|
|
||||||
|
|
||||||
国内服务器:
|
|
||||||
|
|
||||||
```batch
|
|
||||||
certutil -urlcache -f -split https://cnb.cool/bin456789/reinstall/-/git/raw/main/reinstall.bat
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## 使用
|
## 使用
|
||||||
@@ -584,11 +568,11 @@ bash reinstall.sh reset
|
|||||||
|
|
||||||
如果遇到新的 Bug,可以试下旧版本是否正常
|
如果遇到新的 Bug,可以试下旧版本是否正常
|
||||||
|
|
||||||
从 <https://github.com/bin456789/reinstall/commits/main> 右侧找到旧版本的 `commit_id`
|
从 <https://git.dr1997.com/public/reinstall/commits/branch/main> 右侧找到旧版本的 `commit_id`
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
commit_id=xxxxxxx
|
commit_id=xxxxxxx
|
||||||
curl -O https://raw.githubusercontent.com/bin456789/reinstall/$commit_id/reinstall.sh || wget -O ${_##*/} $_
|
curl -O https://git.dr1997.com/public/reinstall/raw/$commit_id/reinstall.sh || wget -O ${_##*/} $_
|
||||||
sed -i "/^confhome.*main$/s/main/$commit_id/" reinstall.sh
|
sed -i "/^confhome.*main$/s/main/$commit_id/" reinstall.sh
|
||||||
bash reinstall.sh ...
|
bash reinstall.sh ...
|
||||||
```
|
```
|
||||||
|
|||||||
+4
-3
@@ -2,9 +2,10 @@
|
|||||||
mode con cp select=437 >nul
|
mode con cp select=437 >nul
|
||||||
setlocal EnableDelayedExpansion
|
setlocal EnableDelayedExpansion
|
||||||
|
|
||||||
set confhome=https://raw.githubusercontent.com/bin456789/reinstall/main
|
set confhome=https://git.dr1997.com/public/reinstall/raw/main
|
||||||
set confhome_cn=https://cnb.cool/bin456789/reinstall/-/git/raw/main
|
set confhome_cn=
|
||||||
rem set confhome_cn=https://www.ghproxy.cc/https://raw.githubusercontent.com/bin456789/reinstall/main
|
rem 本仓库自用 fork: confhome 指向 git.dr1997.com/public/reinstall
|
||||||
|
rem confhome_cn=https://git.dr1997.com/public/reinstall/raw/main
|
||||||
|
|
||||||
set pkgs=curl,cpio,p7zip,dos2unix,jq,xz,gzip,zstd,openssl,bind-utils,libiconv,binutils
|
set pkgs=curl,cpio,p7zip,dos2unix,jq,xz,gzip,zstd,openssl,bind-utils,libiconv,binutils
|
||||||
set cmds=curl,cpio,p7zip,dos2unix,jq,xz,gzip,zstd,openssl,nslookup,iconv,ar
|
set cmds=curl,cpio,p7zip,dos2unix,jq,xz,gzip,zstd,openssl,nslookup,iconv,ar
|
||||||
|
|||||||
+5
-3
@@ -6,9 +6,11 @@
|
|||||||
# alpine 默认没有 bash,因此 shebang 用 sh,再 exec 切换到 bash
|
# alpine 默认没有 bash,因此 shebang 用 sh,再 exec 切换到 bash
|
||||||
|
|
||||||
set -eE
|
set -eE
|
||||||
confhome=https://raw.githubusercontent.com/bin456789/reinstall/main
|
confhome=https://git.dr1997.com/public/reinstall/raw/main
|
||||||
confhome_cn=https://cnb.cool/bin456789/reinstall/-/git/raw/main
|
confhome_cn=
|
||||||
# confhome_cn=https://www.ghproxy.cc/https://raw.githubusercontent.com/bin456789/reinstall/main
|
# 本仓库自用 fork: confhome 指向 git.dr1997.com/public/reinstall
|
||||||
|
# 仓库托管于腾讯云(国内), 国内/海外均直连本仓库, 无需 confhome_cn
|
||||||
|
# confhome_cn=https://git.dr1997.com/public/reinstall/raw/main
|
||||||
|
|
||||||
# 用于判断 reinstall.sh 和 trans.sh 是否兼容
|
# 用于判断 reinstall.sh 和 trans.sh 是否兼容
|
||||||
SCRIPT_VERSION=4BACD833-A585-23BA-6CBB-9AA4E08E0004
|
SCRIPT_VERSION=4BACD833-A585-23BA-6CBB-9AA4E08E0004
|
||||||
|
|||||||
Reference in New Issue
Block a user