Skip to content

Commit 093d112

Browse files
author
yuanbin.yang
committed
修改编译
1 parent fdcd856 commit 093d112

File tree

4 files changed

+11
-16
lines changed

4 files changed

+11
-16
lines changed

.goreleaser.yaml

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# This is an example .goreleaser.yml file with some sensible defaults.
22
# Make sure to check the documentation at https://goreleaser.com
3+
version: 2
34
before:
45
hooks:
56
# You may remove this if you don't use go modules.
@@ -20,13 +21,6 @@ builds:
2021
- arm
2122
env_files:
2223
github_token: ./github_token
23-
archives:
24-
- replacements:
25-
darwin: Darwin
26-
linux: Linux
27-
windows: Windows
28-
386: i386
29-
amd64: x86_64
3024
checksum:
3125
name_template: 'checksums.txt'
3226
snapshot:

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ FROM loads/alpine:3.8
66

77
ENV WORKDIR /app
88

9-
ADD ./dist/qbAuto_linux_amd64/qBittorrentAutoLimitShare $WORKDIR/qBittorrentAutoLimitShare
9+
ADD ./qbit-auto-limit $WORKDIR/qbit-auto-limit
1010
ADD ./conf/demo.app.yaml $WORKDIR/conf/app.yaml
1111

12-
RUN chmod +x $WORKDIR/qBittorrentAutoLimitShare
12+
RUN chmod +x $WORKDIR/qbit-auto-limit
1313

1414
###############################################################################
1515
# START
1616
###############################################################################
1717
WORKDIR $WORKDIR
18-
CMD ./qBittorrentAutoLimitShare
18+
CMD ./qbit-auto-limit

conf/demo.app.yaml

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
# 限制上传速度 0 不限制
2+
qbit_upload_limit: "1"
13
# 限制上传分享率
24
qbit_upload_radio: "1.0"
35
# 限制上传分享时间
4-
qbit_upload_time: "-1"
6+
qbit_upload_time: "1"
57
# 检测跳过多少天以前的种子
6-
qbit_skip_max_complete_time: "1"
8+
qbit_skip_max_complete_time: "30"
79
# 检测时间类型 1 活动时间 2 添加时间 3完成时间
810
qbit_check_time_type: "1"
911
# 扫描间隔时间单位s
@@ -24,4 +26,4 @@ qbit_server:
2426
# 信任的tracker 不处理限制上传分享率 一行一个
2527
trust_trackers: ""
2628
# 超过这个tracker数量的自动限制分享率 为0 不处理
27-
tracker_max: "0"
29+
tracker_max: "3"

docker.sh

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
# This shell is executed before docker build.
44

5-
goreleaser release
5+
#goreleaser release
6+
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./qbit-auto-limit .
67
docker build -t xiaoyi510/qbit-auto-limit:v0.0.7 .
7-
8-

0 commit comments

Comments
 (0)