脚本使用教程
基本使用
Github Actions
- 进入
Settings->Personal access tokens设置。 - 点击
Generate new token。 - 输入密码并点击
Confirm passwrod。 - 至少勾选
repo、workflow、gist项。 - 点击
Generate token并复制Token。 Fork本仓库。- 进入你
Fork的仓库。 - 进入仓库
Settings页面。 - 找到并进入
Security->Secrets->Actions分页。 - 点击
New repository secret。 Name为ACCESS TOKEN,Value为刚刚复制的Token。- 点击
Add secret。 - 进入
Actions页面。 - 选择任意一个
workflow。 - 右侧点击
Run workflow。 - 等待脚本执行完成。
本地执行
下载发布的版本后执行
前往
Release页面。下载
Profile for Clash Auto Getter.zip。解压
Profile for Clash Auto Getter.zip。根据系统双击
run脚本运行。undefinedLinux or macOS:运行
run.sh。undefinedWindows:运行
run.ps1。提示
建议在终端中使用
./run.ps1运行脚本以查看脚本运行日志。注意
当终端中提示
The file is not digitally signed.时,可先运行以下命令修改脚本运行策略。psSet-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Bypass -Force1
克隆本项目后执行
克隆本项目。
shgit clone https://github.com/LetsShareAll/Profiles_for_Clash.git1进入
auto_getter目录。shcd ./Profiles_for_Clash/auto-getter1安装 Python 依赖包。
shpip install -r requirements.txt1运行脚本
shpython ./main.py1等待脚本运行完成。
高级使用
即在运行脚本前根据脚本设置设置项目后运行本项目。
配置使用教程
配置文件。