Skip to content

Commit

Permalink
20240212
Browse files Browse the repository at this point in the history
  • Loading branch information
ymh0000123 committed Feb 12, 2024
1 parent b58ee43 commit 746a063
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 15 deletions.
17 changes: 10 additions & 7 deletions source code/XPMSL.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,19 @@
import json
from tkinter import simpledialog

version = "V1.0.5"
Build = "20240211"
url_git="ymh0000123/XPMSL/announcement/"
version = "V1.1.0"
Build = "20240212"
current_build = Build
api_url = "https://xpmsl.pages.dev/"
api_releases = "releases.json"
api_download_button = "announcement/list.txt"
api_announcement = "announcement/announcement.txt"


def check_for_updates(current_build):
try:
# 请求远程JSON数据
url = "https://xpmsl.pages.dev/releases.json"
url = api_url + api_releases
response = requests.get(url)
data = response.json()

Expand Down Expand Up @@ -114,7 +117,7 @@ def open_download_module_window():
status_label.pack()

# 获取文件列表内容
url = "https://cdn.jsdelivr.net/gh/"+url_git+"list.txt"
url = api_url + api_download_button
response = requests.get(url)

if response.status_code == 200:
Expand Down Expand Up @@ -144,7 +147,7 @@ def open_about_window():

about_label = ttk.Label(
about_window,
text="Xiaofeishu Python Minecraft Server Launcher(XPMSL) "+ version+ "\n作者: 没用的小废鼠\n\n程序免费开源,但是要遵守 GPL-3.0 license"+"\n内部版本: "+Build+"\n\n因为没有服务器公告下载和更新功能依赖GitHub,moeyy,jsdelivr",
text="Xiaofeishu Python Minecraft Server Launcher(XPMSL) "+ version+ "\n作者: 没用的小废鼠\n\n程序免费开源,但是要遵守 GPL-3.0 license"+"\n内部版本: "+Build+"\n\n因为没有服务器API功能依赖 Cloudflare",
)
about_label.pack(padx=20, pady=20)

Expand Down Expand Up @@ -398,7 +401,7 @@ def create_config_if_not_exists():
# 获取公告文本
def fetch_announcement():
try:
url = "https://cdn.jsdelivr.net/gh/"+url_git+"announcement.txt"
url = api_url + api_announcement
response = requests.get(url)
if response.status_code == 200:
announcement_text = response.text
Expand Down
4 changes: 2 additions & 2 deletions vuepress/src/.vuepress/public/releases.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"releases": "1.0.3",
"build": "20240210"
"releases": "1.1.0",
"build": "20240212"
}
19 changes: 13 additions & 6 deletions vuepress/src/zh-cn/historicalversion.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,34 @@
# 历史版本

### 20240211
## 20240212
1. 修改所有需要调用的API接口
[Github](https://github.com/ymh0000123/XPMSL/releases/download/V1.1.0/XPMSL.exe) |
[加速下载](https://slink.ltd/ymh0000123/XPMSL/releases/download/V1.1.0/XPMSL.exe)

## 20240211
1. 添加对Zulu的java的支持
2. 修改检测更新接口
3. 改用版本号校验版本
[Github](https://github.com/ymh0000123/XPMSL/releases/download/V1.0.5/XPMSL.exe) |
[加速下载](https://slink.ltd/ymh0000123/XPMSL/releases/download/V1.0.5/XPMSL.exe)

### V1.0.3
## V1.0.3
1. 添加检查更新功能(依赖Github api)
2. 添加下载模块
[Github](https://github.com/ymh0000123/XPMSL/releases/download/V1.0.3/XPMSL.exe) |
[加速下载](https://slink.ltd/https://github.com/ymh0000123/XPMSL/releases/download/V1.0.3/XPMSL.exe)

### V1.0.2
## V1.0.2
1. 添加动态公告
[Github](https://github.com/ymh0000123/XPMSL/releases/download/V1.0.2/XPMSL.exe) |
[加速下载](https://slink.ltd/https://github.com/ymh0000123/XPMSL/releases/download/V1.0.2/XPMSL.exe)

### V1.0.1
## V1.0.1
1. 美化界面
[Github](https://github.com/ymh0000123/XPMSL/releases/download/V1.0.1/XPMSL.exe) | [加速下载](https://slink.ltd/https://github.com/ymh0000123/XPMSL/releases/download/V1.0.1/XPMSL.exe)
[Github](https://github.com/ymh0000123/XPMSL/releases/download/V1.0.1/XPMSL.exe) |
[加速下载](https://slink.ltd/https://github.com/ymh0000123/XPMSL/releases/download/V1.0.1/XPMSL.exe)

### V1.0
## V1.0
1. 基础界面
[Github](https://github.com/ymh0000123/XPMSL/releases/download/V1.0/XPMSL.exe) |
[加速下载](https://slink.ltd/https://github.com/ymh0000123/XPMSL/releases/download/V1.0/XPMSL.exe)

0 comments on commit 746a063

Please sign in to comment.