Skip to content

Commit 31d71d0

Browse files
author
taozhiyu
committed
add action(testing)
1 parent 5bd9390 commit 31d71d0

34 files changed

+2330
-160
lines changed

.github/workflows/checkUpdate.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: check update
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: '0 0 */5 * *'
6+
jobs:
7+
check-update:
8+
name: check update
9+
runs-on: windows-latest
10+
timeout-minutes: 5
11+
strategy:
12+
fail-fast: false
13+
steps:
14+
- name: Check out repository code
15+
uses: actions/checkout@v3
16+
- name: Setup Python
17+
uses: actions/setup-python@v3
18+
with:
19+
python-version: "3.x"
20+
cache: 'pip'
21+
- run: pip install -r scripts/requirements.txt
22+
23+
- name: check and generate new version
24+
run: python scripts/mainUpdate.py
25+
26+
- name: update!
27+
- uses: actions/github-script@v6
28+
with:
29+
script: |
30+
const script = require('./scripts/update.js')
31+
await script({github, context})
32+
- uses: stefanzweifel/git-auto-commit-action@v4
33+
with:
34+
commit_message: update

.github/workflows/main.yml1

Lines changed: 0 additions & 41 deletions
This file was deleted.

.gitignore

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
pip-wheel-metadata/
24+
share/python-wheels/
25+
*.egg-info/
26+
.installed.cfg
27+
*.egg
28+
MANIFEST
29+
30+
# PyInstaller
31+
# Usually these files are written by a python script from a template
32+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
33+
*.manifest
34+
*.spec
35+
36+
# Installer logs
37+
pip-log.txt
38+
pip-delete-this-directory.txt
39+
40+
# Unit test / coverage reports
41+
htmlcov/
42+
.tox/
43+
.nox/
44+
.coverage
45+
.coverage.*
46+
.cache
47+
nosetests.xml
48+
coverage.xml
49+
*.cover
50+
*.py,cover
51+
.hypothesis/
52+
.pytest_cache/
53+
54+
# Translations
55+
*.mo
56+
*.pot
57+
58+
# Django stuff:
59+
*.log
60+
local_settings.py
61+
db.sqlite3
62+
db.sqlite3-journal
63+
64+
# Flask stuff:
65+
instance/
66+
.webassets-cache
67+
68+
# Scrapy stuff:
69+
.scrapy
70+
71+
# Sphinx documentation
72+
docs/_build/
73+
74+
# PyBuilder
75+
target/
76+
77+
# Jupyter Notebook
78+
.ipynb_checkpoints
79+
80+
# IPython
81+
profile_default/
82+
ipython_config.py
83+
84+
# pyenv
85+
.python-version
86+
87+
# pipenv
88+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
89+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
90+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
91+
# install all needed dependencies.
92+
#Pipfile.lock
93+
94+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
95+
__pypackages__/
96+
97+
# Celery stuff
98+
celerybeat-schedule
99+
celerybeat.pid
100+
101+
# SageMath parsed files
102+
*.sage.py
103+
104+
# Environments
105+
.env
106+
.venv
107+
env/
108+
venv/
109+
ENV/
110+
env.bak/
111+
venv.bak/
112+
113+
# Spyder project settings
114+
.spyderproject
115+
.spyproject
116+
117+
# Rope project settings
118+
.ropeproject
119+
120+
# mkdocs documentation
121+
/site
122+
123+
# mypy
124+
.mypy_cache/
125+
.dmypy.json
126+
dmypy.json
127+
128+
# Pyre type checker
129+
.pyre/

README.md

Lines changed: 53 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,73 @@
11
| 信息 | 状态 |
2-
|:----:|:----:|
3-
| 🤔无效指令个数😒 | [![](https://img.shields.io/github/issues-closed-raw/taozhiyu/TyProAction/%F0%9F%A4%94invalid/%E6%97%A0%E6%95%88%E7%9A%84%F0%9F%98%92?color=d9534f&label=%F0%9F%A4%94Number%20of%20invalid%20instructions&logo=github&style=flat-square)](https://github.com/taozhiyu/TyProAction/issues?q=label%3A%F0%9F%A4%94invalid%2F%E6%97%A0%E6%95%88%E7%9A%84%F0%9F%98%92) |
4-
| 🎉成功生成个数🎉 | [![](https://img.shields.io/github/issues-closed-raw/taozhiyu/TyProAction/%E2%98%91%EF%B8%8Fkeygen/%E6%B3%A8%E5%86%8C%E6%9C%BA%F0%9F%8E%89?color=5cb85c&label=%F0%9F%8E%89numbers%20of%20successful%20builds%F0%9F%8E%89&logo=github&style=flat-square)](https://github.com/taozhiyu/TyProAction/issues?q=label%3A%E2%98%91%EF%B8%8Fkeygen%2F%E6%B3%A8%E5%86%8C%E6%9C%BA%F0%9F%8E%89) |
5-
| 😎最新更新版本🥳 | [![](https://img.shields.io/github/v/release/taozhiyu/TyProAction?label=latest%20supported%20version&logo=windows&style=flat-square)](https://github.com/taozhiyu/TyProAction/releases/latest) |
2+
|:----:|:----:|
3+
| 🤔无效指令个数😒 | [![Number of invalid instructions](https://img.shields.io/github/issues-closed-raw/taozhiyu/TyProAction/%F0%9F%A4%94invalid/%E6%97%A0%E6%95%88%E7%9A%84%F0%9F%98%92?color=d9534f&label=%F0%9F%A4%94Number%20of%20invalid%20instructions&logo=github&style=flat-square)](https://github.com/taozhiyu/TyProAction/issues?q=label%3A%F0%9F%A4%94invalid%2F%E6%97%A0%E6%95%88%E7%9A%84%F0%9F%98%92) |
4+
| 🎉成功生成个数🎉 | [![Numbers of successful builds](https://img.shields.io/github/issues-closed-raw/taozhiyu/TyProAction/%E2%98%91%EF%B8%8Fkeygen/%E6%B3%A8%E5%86%8C%E6%9C%BA%F0%9F%8E%89?color=5cb85c&label=%F0%9F%8E%89Numbers%20of%20successful%20builds&logo=github&style=flat-square)](https://github.com/taozhiyu/TyProAction/issues?q=label%3A%E2%98%91%EF%B8%8Fkeygen%2F%E6%B3%A8%E5%86%8C%E6%9C%BA%F0%9F%8E%89) |
5+
| 😎最新更新版本🥳 | [![Latest supported version](https://img.shields.io/github/v/release/taozhiyu/TyProAction?label=%F0%9F%A5%B3Latest%20supported%20version&logo=windows&style=flat-square)](https://github.com/taozhiyu/TyProAction/releases/latest) |
66

7-
`中文`文档请见[【这里】](./README.zh.md)
7+
`中文文档`请见[【这里】](./README.zh.md)
88

99
# TyProAction
10+
1011
A Github Action about Ty (Pro Version)
1112

1213
## What is TyPro
14+
1315
Maybe you can search Typro in search engine, such as google, baidu, Yandex etc.
1416
Maybe you cannot find what TyPro is, but you might find out some similar software, website or some other useful things.
1517
:-)
1618

1719
## How to use
18-
Our [Agreements](Agreements.md) `must` be consulted before use!
20+
21+
Our [Agreements](Agreements.md) `MUST` be consulted before use!
1922

2023
Continued using means you are in compliance with our agreements.
2124

22-
1. Install the corresponding version TyProAction software
23-
2. Download the attached zip file
24-
3. unzip and move it to {software-root-dir}\resources
25-
4. Use the keygen template to initiate a new issue
26-
5. enjoy it
25+
26+
27+
NO MORE HASSLE!
28+
29+
Directly download `Typro-Update-Vxxx.exe` from `Release`, just run it and you're ready to upgrade with `ONE CLICK`!
30+
31+
And enjoy the ultimate `Automatic Update` (Btea) experience at the same time!
32+
33+
> Notes.
34+
>
35+
> 1. Automatic updates are for `testing purposes` and stability is not guaranteed
36+
> 2. you have to install the official version of `Typro` , otherwise it will pop up to remind you to install and ask if you need to open the official website.
37+
> 3. **ONLY** for study and research `github action` , please **DO NOT** use it for illegal and malicious purposes.
38+
39+
<details>
40+
<summary>Click for alternate solutions (which may be more stable)</summary>
41+
1. Install the corresponding version TyProAction software<br>
42+
2. Download the attached zip file<br>
43+
3. unzip and move it to {software-root-dir}\resources<br>
44+
4. Use the keygen template to initiate a new issue<br>
45+
5. enjoy it!<br>
46+
</details>
47+
## What I did
48+
49+
Current Version(1-Click Update):
50+
51+
1. ✅ Patched host (as before)
52+
2. ✅ Modify the embedded public key (as before)
53+
3. ✅ Refactoring the installer style (using the inno engine)
54+
4. ✅ Modify the update configuration path
55+
56+
> Notes.
57+
>
58+
> 1. Modify `windows-x64` only, update link for `stable` version
59+
> 1. Use [jsdelivr](https://www.jsdelivr.com/) as CDN acceleration to solve the problem that some (most) places in China are not accessible properly
60+
> 1. NOLY for study and research purposes, if the script is not working, it may not be updated in time!
61+
> 1. Please go to the official website to enter the right one if you like it.
62+
63+
Previous Version(Manual copying):
64+
65+
1. ✅ Patched host
66+
2. ✅ Modify the embedded public key
2767

2868
## When you use
2969

30-
![TyPRO](https://user-images.githubusercontent.com/49258735/160231233-090b9f20-2c55-4f95-826b-c7c2cba6fbaa.gif)
70+
![TyPRO](https://pic.rmb.bdstatic.com/bjh/916f51fd1bb7ec7d1df3182b51b210e5.gif)
3171

3272
If the image above failed to load cause of some irresistible reasons, visit [【this】](https://pic.rmb.bdstatic.com/bjh/916f51fd1bb7ec7d1df3182b51b210e5.gif
3373
) link.
@@ -36,7 +76,6 @@ If the image above failed to load cause of some irresistible reasons, visit [【
3676

3777
[![Stargazers repo roster for @taozhiyu/TyProAction](https://reporoster.com/stars/dark/taozhiyu/TyProAction)](https://github.com/taozhiyu/TyProAction/stargazers)
3878

39-
4079
## Who has forked
4180

4281
[![Forkers repo roster for @taozhiyu/TyProAction](https://reporoster.com/forks/dark/taozhiyu/TyProAction)](https://github.com/taozhiyu/TyProAction/network/members)
@@ -45,7 +84,6 @@ Actually I don't know why you fork this repository, the key information (mainly
4584

4685
Anyway, thank you for your support.
4786

48-
4987
## Stargazers over time
5088

51-
![Stargazers over time](https://starchart.cc/taozhiyu/TyProAction.svg)
89+
![Stargazers over time](https://starchart.cc/taozhiyu/TyProAction.svg)

README.zh.md

Lines changed: 46 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
| 信息 | 状态 |
22
|:----:|:----:|
3-
| 🤔无效指令个数😒 | [![](https://img.shields.io/github/issues-closed-raw/taozhiyu/TyProAction/%F0%9F%A4%94invalid/%E6%97%A0%E6%95%88%E7%9A%84%F0%9F%98%92?color=d9534f&label=%F0%9F%A4%94Number%20of%20invalid%20instructions&logo=github&style=flat-square)](https://github.com/taozhiyu/TyProAction/issues?q=label%3A%F0%9F%A4%94invalid%2F%E6%97%A0%E6%95%88%E7%9A%84%F0%9F%98%92) |
4-
| 🎉成功生成个数🎉 | [![](https://img.shields.io/github/issues-closed-raw/taozhiyu/TyProAction/%E2%98%91%EF%B8%8Fkeygen/%E6%B3%A8%E5%86%8C%E6%9C%BA%F0%9F%8E%89?color=5cb85c&label=%F0%9F%8E%89numbers%20of%20successful%20builds%F0%9F%8E%89&logo=github&style=flat-square)](https://github.com/taozhiyu/TyProAction/issues?q=label%3A%E2%98%91%EF%B8%8Fkeygen%2F%E6%B3%A8%E5%86%8C%E6%9C%BA%F0%9F%8E%89) |
5-
| 😎最新更新版本🥳 | [![](https://img.shields.io/github/v/release/taozhiyu/TyProAction?label=latest%20supported%20version&logo=windows&style=flat-square)](https://github.com/taozhiyu/TyProAction/releases/latest) |
3+
| 🤔无效指令个数😒 | [![Number of invalid instructions](https://img.shields.io/github/issues-closed-raw/taozhiyu/TyProAction/%F0%9F%A4%94invalid/%E6%97%A0%E6%95%88%E7%9A%84%F0%9F%98%92?color=d9534f&label=%F0%9F%A4%94Number%20of%20invalid%20instructions&logo=github&style=flat-square)](https://github.com/taozhiyu/TyProAction/issues?q=label%3A%F0%9F%A4%94invalid%2F%E6%97%A0%E6%95%88%E7%9A%84%F0%9F%98%92) |
4+
| 🎉成功生成个数🎉 | [![Numbers of successful builds](https://img.shields.io/github/issues-closed-raw/taozhiyu/TyProAction/%E2%98%91%EF%B8%8Fkeygen/%E6%B3%A8%E5%86%8C%E6%9C%BA%F0%9F%8E%89?color=5cb85c&label=%F0%9F%8E%89Numbers%20of%20successful%20builds&logo=github&style=flat-square)](https://github.com/taozhiyu/TyProAction/issues?q=label%3A%E2%98%91%EF%B8%8Fkeygen%2F%E6%B3%A8%E5%86%8C%E6%9C%BA%F0%9F%8E%89) |
5+
| 😎最新更新版本🥳 | [![Latest supported version](https://img.shields.io/github/v/release/taozhiyu/TyProAction?label=%F0%9F%A5%B3Latest%20supported%20version&logo=windows&style=flat-square)](https://github.com/taozhiyu/TyProAction/releases/latest) |
66

77
[[this](./README.md)] link for **English speaker**
88

99
# TyProAction
10+
1011
关于 Ty(专业版)的 Github Action
1112

1213
## 什么是TyPro
@@ -23,24 +24,59 @@
2324

2425
继续使用则表示您遵守上述协议。
2526

26-
1. 安装对应版本的TyProAction软件
27-
2. 下载附件的zip文件
28-
3. 解压并移动到 {software-root-dir}\resources
29-
4. 使用keygen模板发起新issue(中英文模板都可以)
30-
5. 享受它
27+
**不再需要这么麻烦了!**
28+
29+
直接下载`Release`中的`Typro-Update-Vxxx.exe`,运行即可**一键升级**
30+
31+
并且同时可以享受到`自动更新`(Btea)的极致体验
32+
33+
> 注:
34+
>
35+
> 1. 自动更新为测试内容,不保证稳定性
36+
> 2. 需安装官方版`Typro`应用,否则打开会弹窗提醒安装并询问是否需要打开官网。
37+
> 3. 仅供学习研究`github action`请勿用于非法恶意用途。
38+
39+
<details>
40+
<summary>点击查看备用方案(可能更稳定)</summary>
41+
1. 安装对应版本的 TyPro 软件<br>
42+
2. 下载附件的 zip 文件<br>
43+
3. 解压并移动到 {software-root-dir}\resources<br>
44+
4. 使用 keygen 模板发起新 issue (中英文模板都可以)<br>
45+
5. 享受!<br>
46+
</details>
47+
3148

49+
## 我做了什么
50+
51+
新版(一键更新):
52+
53+
1. ✅ Patched host | 移除密钥检测域名
54+
2. ✅ Modify the embedded public key | 修改内嵌公钥
55+
3. ✅ 重构安装包样式(使用 inno 引擎)
56+
4. ✅ 修改更新检测路径
57+
58+
> 注:
59+
>
60+
> 1. 仅修改`windows-x64``稳定版`的更新链接
61+
> 1. 使用 [jsdelivr](https://www.jsdelivr.com/) 作为 CDN 加速,以解决国内某些(大部分)地方无法正常访问的问题
62+
> 1. 仅做学习研究使用,如脚本失效,不一定及时更新!
63+
> 1. 喜欢请到官网入正。
64+
65+
旧版(手动复制):
66+
67+
1. ✅ Patched host | 移除密钥检测域名
68+
2. ✅ Modify the embedded public key | 修改内嵌公钥
3269

3370
## 使用时
3471

35-
![TyPRO](https://user-images.githubusercontent.com/49258735/160231233-090b9f20-2c55-4f95-826b-c7c2cba6fbaa.gif)
72+
![TyPRO](https://pic.rmb.bdstatic.com/bjh/916f51fd1bb7ec7d1df3182b51b210e5.gif)
3673

3774
如果上图由于某些不可抗拒的原因导致加载失败,请访问[【此链接】](https://pic.rmb.bdstatic.com/bjh/916f51fd1bb7ec7d1df3182b51b210e5.gif)
3875

3976
## 标星用户
4077

4178
[![Stargazers repo roster for @taozhiyu/TyProAction](https://reporoster.com/stars/dark/taozhiyu/TyProAction)](https://github.com/taozhiyu/TyProAction/stargazers)
4279

43-
4480
## fork用户
4581

4682
[![Forkers repo roster for @taozhiyu/TyProAction](https://reporoster.com/forks/dark/taozhiyu/TyProAction)](https://github.com/taozhiyu/TyProAction/network/members)

0 commit comments

Comments
 (0)