This commit is contained in:
Simple-Tracker 2024-08-30 19:24:48 +08:00
parent 47952ee543
commit 8d5a3ab6e0
4 changed files with 5 additions and 6 deletions

View File

@ -84,7 +84,7 @@ jobs:
md5sum: false
sha256sum: false
binary_name: 'qBittorrent-ClientBlocker'
extra_files: 'lang/ LICENSE *.md *.json '
extra_files: 'lang/ LICENSE *.md *.txt *.json'
- name: 'Upload GitHub Artifact (Nightly)'
uses: actions/upload-artifact@v4
if: ${{ github.event_name != 'release' }}

View File

@ -17,7 +17,7 @@ RUN PROGRAM_VERSION="$(basename ${GITHUB_REF})"; \
RUN . /envfile; echo "Running on ${BUILDOS}/${BUILDARCH}, Building for ${TARGETOS}/${TARGETARCH}, Version: ${PROGRAM_VERSION}"
ADD lang/ *LICENSE* *.md *.go *.sh go.mod go.sum config.json ./
ADD lang/ *LICENSE* *.md *.go *.sh *.txt *.json go.mod go.sum ./
RUN go mod download
RUN . /envfile; go build -ldflags "-w -X \"main.programVersion=${PROGRAM_VERSION}\"" -o qBittorrent-ClientBlocker

View File

@ -14,7 +14,7 @@
"skipCertVerification": false,
"blockListFile": [
"blockList.json",
// "blockBackList.json",
// "blockList-Optional.json"
],
"blockListURL": [
"https://bta.iaalai.cn/qBittorrent-ClientBlocker/blockList.json",
@ -22,14 +22,13 @@
],
"portBlockList": [],
"ipBlockList": [
"customIpBlock.txt",
"ipBlockList.txt"
],
"ipBlockListURL": [
"https://bta.iaalai.cn/BTN-Collected-Rules/combine/all.txt",
"https://cdn.jsdelivr.net/gh/PBH-BTN/BTN-Collected-Rules@main/combine/all.txt",
"https://bta.iaalai.cn/BTN-Collected-Rules/qBittorrent-ClientBlocker/blockIP.txt",
"https://cdn.jsdelivr.net/gh/Simple-Tracker/qBittorrent-ClientBlocker@dev/blockIP.txt"
"https://bta.iaalai.cn/BTN-Collected-Rules/qBittorrent-ClientBlocker/ipBlockList.txt",
"https://cdn.jsdelivr.net/gh/Simple-Tracker/qBittorrent-ClientBlocker@dev/ipBlockList.txt"
],
"ipBlockListFile": []
/*