Skip to content

Commit

Permalink
Release 2.1.1 (#725)
Browse files Browse the repository at this point in the history
* feat: listen ctrl+c at the very beginning

* test: qinglong cron

* test: qinglong cron

* test: qinglong cron

* test: qinglong cron

* fix: fix qinglong cron read error

* fix: fix qinglong read cron error

* chore: update change log
  • Loading branch information
RayWangQvQ authored May 13, 2024
1 parent e2a122b commit 1c088d0
Show file tree
Hide file tree
Showing 21 changed files with 31 additions and 23 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 2.1.1
- Feature: listen ctrl+c at the very beginning
- Fix: fix qinglong read cron error
## 2.1.0
- Feature[#691]: 重构并优化基于qinglong的部署方式,尝试解决偶发的安装失败的问题
- Feature[#670]: 新增针对App的AppUserAgent配置项,用于解决大会员大积分异常问题
Expand Down
2 changes: 1 addition & 1 deletion common.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<Authors>Ray</Authors>
<Version>2.1.0</Version>
<Version>2.1.1</Version>
<NoWarn>$(NoWarn);CS1591;CS0436</NoWarn>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion qinglong/DefaultTasks/bili_task_base.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# 0 0 1 1 * bili_base.sh
# cron:0 0 1 1 *
# new Env("bili_base")

# Stop script on NZEC
Expand Down
2 changes: 1 addition & 1 deletion qinglong/DefaultTasks/bili_task_daily.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# 0 9 * * * bili_task_daily.sh
# cron:0 9 * * *
# new Env("bili每日任务")

. bili_task_base.sh
Expand Down
2 changes: 1 addition & 1 deletion qinglong/DefaultTasks/bili_task_liveFansMedal.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# 5 0 * * * bili_task_liveFansMedal.sh
# cron:5 0 * * *
# new Env("bili直播粉丝牌")

. bili_task_base.sh
Expand Down
2 changes: 1 addition & 1 deletion qinglong/DefaultTasks/bili_task_liveLottery.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# 0 13 * * * bili_task_liveLottery.sh
# cron:0 13 * * *
# new Env("bili天选时刻")

. bili_task_base.sh
Expand Down
2 changes: 1 addition & 1 deletion qinglong/DefaultTasks/bili_task_login.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# 0 0 1 1 * bili_task_login.sh
# cron:0 0 1 1 *
# new Env("bili扫码登录")

. bili_task_base.sh
Expand Down
2 changes: 1 addition & 1 deletion qinglong/DefaultTasks/bili_task_test.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# 0 8 * * * bili_task_test.sh
# cron:0 8 * * *
# new Env("bili测试ck")

. bili_task_base.sh
Expand Down
2 changes: 1 addition & 1 deletion qinglong/DefaultTasks/bili_task_tryFix.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# 0 0 1 1 * bili_task_tryFix.sh
# cron:0 0 1 1 *
# new Env("bili尝试修复异常")

dir_shell=$QL_DIR/shell
Expand Down
2 changes: 1 addition & 1 deletion qinglong/DefaultTasks/bili_task_unfollowBatched.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# 0 12 1 * * bili_task_unfollowBatched.sh
# cron:0 12 1 * *
# new Env("bili批量取关主播")

. bili_task_base.sh
Expand Down
2 changes: 1 addition & 1 deletion qinglong/DefaultTasks/bili_task_vipBigPoint.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# 7 1 * * * bili_task_vipBigPoint.sh
# cron:7 1 * * *
# new Env("bili大会员大积分")

. bili_task_base.sh
Expand Down
5 changes: 2 additions & 3 deletions qinglong/DefaultTasks/dev/bili_dev_task_base.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env bash
#0 0 1 1 * bili_dev_task_base.sh
#new Env("bili_dev_task_base");
#
# cron:0 0 1 1 *
# new Env("bili_dev_task_base");

# Stop script on NZEC
set -e
Expand Down
5 changes: 2 additions & 3 deletions qinglong/DefaultTasks/dev/bili_dev_task_daily.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env bash
#5 9 * * * bili_dev_task_daily.sh
#new Env('bili每日任务[dev先行版]');
#
# cron:5 9 * * *
# new Env('bili每日任务[dev先行版]');

. bili_dev_task_base.sh

Expand Down
2 changes: 1 addition & 1 deletion qinglong/DefaultTasks/dev/bili_dev_task_liveFansMedal.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# 5 0 * * * bili_dev_task_liveFansMedal.sh
# cron:5 0 * * *
# new Env("bili直播粉丝牌[dev先行版]")

. bili_dev_task_base.sh
Expand Down
2 changes: 1 addition & 1 deletion qinglong/DefaultTasks/dev/bili_dev_task_liveLottery.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# 0 13 * * * bili_dev_task_liveLottery.sh
# cron:0 13 * * *
# new Env("bili天选时刻[dev先行版]")

. bili_dev_task_base.sh
Expand Down
2 changes: 1 addition & 1 deletion qinglong/DefaultTasks/dev/bili_dev_task_login.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# 0 0 1 1 * bili_dev_task_login.sh
# cron:0 0 1 1 *
# new Env("bili扫码登录[dev先行版]")

. bili_dev_task_base.sh
Expand Down
2 changes: 1 addition & 1 deletion qinglong/DefaultTasks/dev/bili_dev_task_test.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# 0 8 * * * bili_dev_task_test.sh
# cron:0 8 * * *
# new Env("bili测试ck[dev先行版]")

. bili_dev_task_base.sh
Expand Down
2 changes: 1 addition & 1 deletion qinglong/DefaultTasks/dev/bili_dev_task_tryFix.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# 0 0 1 1 * bili_dev_task_tryFix.sh
# cron:0 0 1 1 *
# new Env("bili尝试修复异常[dev先行版]")

dir_shell=$QL_DIR/shell
Expand Down
2 changes: 1 addition & 1 deletion qinglong/DefaultTasks/dev/bili_dev_task_unfollowBatched.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# 0 12 1 * * bili_dev_task_unfollowBatched.sh
# cron:0 12 1 * *
# new Env("bili批量取关主播[dev先行版]")

. bili_dev_task_base.sh
Expand Down
2 changes: 1 addition & 1 deletion qinglong/DefaultTasks/dev/bili_dev_task_vipBigPoint.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# 7 1 * * * bili_dev_task_vipBigPoint.sh
# cron:7 1 * * *
# new Env("bili大会员大积分[dev先行版]")

. bili_dev_task_base.sh
Expand Down
7 changes: 7 additions & 0 deletions src/Ray.BiliBiliTool.Console/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Reflection;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
Expand All @@ -18,6 +19,12 @@ public class Program
{
public static async Task<int> Main(string[] args)
{
System.Console.CancelKeyPress += (sender, eventArgs) =>
{
eventArgs.Cancel = true;
Environment.Exit(0);
};

PrintLogo();

IHost host = CreateHost(args);
Expand Down

0 comments on commit 1c088d0

Please sign in to comment.