windy-package/README.md

85 lines
2.3 KiB
Markdown
Raw Normal View History

2021-09-05 16:48:26 +08:00
![kenzo github stats](https://github-readme-stats.vercel.app/api?username=kenzok8&show_icons=true&theme=merko)
<div align="center">
2021-09-07 00:43:16 +08:00
<h1 align="center">同步上游分支代码</h1>
2021-09-05 19:42:59 +08:00
<img src="https://img.shields.io/github/issues/kenzok8/small-package?color=green">
<img src="https://img.shields.io/github/stars/kenzok8/small-package?color=yellow">
<img src="https://img.shields.io/github/forks/kenzok8/small-package?color=orange">
<img src="https://img.shields.io/github/license/kenzok8/small-package?color=ff69b4">
<img src="https://img.shields.io/github/languages/code-size/kenzok8/small-package?color=blueviolet">
2021-09-05 16:48:26 +08:00
</div>
#### small-package
* 常用OpenWrt软件包源码合集同步上游更新
* 18.06版luci请使用18.06分支
* 19.07版luci请使用19.07分支
* 关于指定19.07分支下载示例:
```bash
git clone -b 19.07 https://github.com/kenzok78/small-package
```
* lean源码用18.06分支
* 官方源码用19.07分支
2021-09-05 19:42:59 +08:00
2021-09-05 19:40:31 +08:00
##### 关于Secrets、TOKEN的小知识
2021-09-07 22:54:57 +08:00
1. 首先需要获取 **Github Token**: [点击这里](https://github.com/settings/tokens/new) 获取,
`Note`项填写一个名称,`Select scopes`不理解就**全部打勾**,操作完成后点击下方`Generate token`
2. 复制页面中生成的 **Token**,并保存到本地,**Token 只会显示一次!**
3. **Fork** 我的`small-package`仓库,然后进入你的`small-package`仓库进行之后的设置
4. 点击上方菜单中的`Settings`,依次点击`Secrets`-`New repository secret`
其中`Name`项填写`ACCESS_TOKEN`,然后将你的 **Token** 粘贴到`Value`项,完成后点击`Add secert`
2021-09-05 19:40:31 +08:00
2021-09-07 22:59:30 +08:00
* 对应`.github/workflows`目录下的`yml`工作流文件里的`ACCESS_TOKEN`名称依据自己yml文件修改
2021-09-05 19:40:31 +08:00
2021-09-07 22:59:30 +08:00
* 在仓库`Settings->Secrets`中添加 `SCKEY `可通过[Server酱](http://sc.ftqq.com) 推送编译结果到微信
2021-09-05 19:40:31 +08:00
2021-09-07 22:58:25 +08:00
* 在仓库`Settings->Secrets`中添加 `TELEGRAM_CHAT_ID, TELEGRAM_TOKEN `可推送编译结果到`Telegram Bot`
2021-09-05 16:48:26 +08:00
2021-09-05 19:42:59 +08:00
2021-09-05 16:48:26 +08:00
#### 使用方式(三选一):
1. 先cd进package目录然后执行
```bash
git clone https://github.com/kenzok78/small-package
```
2. 或者添加下面代码到feeds.conf.default文件
```bash
src-git small8 https://github.com/kenzok78/small-package
```
3. lede/下运行 或者openwrt/下运行
```bash
git clone https://github.com/kenzok78/small-package package/small-package
```
2021-09-05 19:40:31 +08:00