mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-17 15:25:08 +08:00
feat:修改配置
This commit is contained in:
15
.github/workflows/build_release.yml
vendored
15
.github/workflows/build_release.yml
vendored
@@ -1,6 +1,9 @@
|
||||
name: build_release
|
||||
|
||||
on: workflow_dispatch
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: 0 16 * * *
|
||||
|
||||
jobs:
|
||||
build_release:
|
||||
@@ -56,13 +59,3 @@ jobs:
|
||||
tag_name: v${{ steps.version.outputs.version }}
|
||||
release_name: Release ${{ steps.version.outputs.version }}
|
||||
body_path: ./CHANGELOG.md
|
||||
|
||||
- name: Publish package
|
||||
if: ${{ steps.commit.outcome == 'success' }}
|
||||
run: |
|
||||
pnpm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
|
||||
pnpm publish
|
||||
|
||||
- name: sync npmmirror
|
||||
if: ${{ steps.commit.outcome == 'success' }}
|
||||
run: curl -X PUT 'https://registry-direct.npmmirror.com/@gkd-kit/subscription/sync'
|
||||
|
||||
2
.github/workflows/pull_request_check.yml
vendored
2
.github/workflows/pull_request_check.yml
vendored
@@ -7,7 +7,7 @@ on:
|
||||
|
||||
jobs:
|
||||
check:
|
||||
if: github.repository == 'gkd-kit/subscription'
|
||||
if: github.repository == 'AIsouler/subscription'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
10
README.md
10
README.md
@@ -1,10 +1,8 @@
|
||||
# @gkd-kit/subscription
|
||||
|
||||
重要说明: 本人审核精力有限,所有规则均暂时停止维护, 你可以自行编写规则, 导入本地订阅使用
|
||||
# @AIsouler/subscription
|
||||
|
||||
---
|
||||
|
||||
`默认规则` 仅启用 `开屏广告` 一类规则, 其它所有规则均需用户手动打开
|
||||
AIsouler维护的GKD规则, 仅启用 `开屏广告` 一类规则, 其它所有规则均需用户手动打开
|
||||
|
||||
在 GKD 内添加以下链接即可使用此规则
|
||||
|
||||
@@ -23,3 +21,7 @@ https://fastly.jsdelivr.net/npm/@gkd-kit/subscription
|
||||
## 感谢以下开发者的贡献
|
||||
|
||||

|
||||
|
||||
## 感谢以下项目
|
||||
|
||||
[gkd-kit/subscription](https://github.com/gkd-kit/subscription)
|
||||
|
||||
4
dist/AIsouler_gkd.version.json
vendored
Normal file
4
dist/AIsouler_gkd.version.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"id": 666,
|
||||
"version": 186
|
||||
}
|
||||
4
dist/gkd.version.json
vendored
4
dist/gkd.version.json
vendored
@@ -1,4 +0,0 @@
|
||||
{
|
||||
"id": 0,
|
||||
"version": 185
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@gkd-kit/subscription",
|
||||
"type": "module",
|
||||
"version": "1.185.0",
|
||||
"version": "1.186.0",
|
||||
"main": "./dist/gkd.json5",
|
||||
"unpkg": "./dist/gkd.json5",
|
||||
"jsdelivr": "./dist/gkd.json5",
|
||||
|
||||
@@ -6,9 +6,9 @@ import type { RawSubscription } from './types';
|
||||
const subsConfig: RawSubscription = {
|
||||
id: 0,
|
||||
version: 0,
|
||||
name: '默认订阅',
|
||||
author: 'lisonge',
|
||||
supportUri: 'https://github.com/gkd-kit/subscription',
|
||||
name: 'AIsouler的GKD订阅',
|
||||
author: 'AIsouler',
|
||||
supportUri: 'https://github.com/AIsouler/subscription',
|
||||
updateUrl:
|
||||
'https://registry.npmmirror.com/@gkd-kit/subscription/latest/files',
|
||||
checkUpdateUrl:
|
||||
|
||||
@@ -58,8 +58,8 @@ const pkg: typeof PkgT = JSON.parse(
|
||||
);
|
||||
const pkgKeys = Object.keys(pkg);
|
||||
|
||||
const gkdFp = process.cwd() + '/dist/gkd.json5';
|
||||
const versionFp = process.cwd() + '/dist/gkd.version.json';
|
||||
const gkdFp = process.cwd() + '/dist/AIsouler_gkd.json5';
|
||||
const versionFp = process.cwd() + '/dist/AIsouler_gkd.version.json';
|
||||
const oldConfig: RawSubscription = JSON5.parse(
|
||||
await fs.readFile(gkdFp, 'utf-8').catch(() => '{}'),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user