mirror of
https://github.com/TriM-Organization/Linglun-Converter.git
synced 2025-09-05 20:26:27 +00:00
更新依赖、窗口内支持mcstructure、协议更新、命令行docker构建
This commit is contained in:
@ -4,8 +4,8 @@
|
||||
伶伦转换器 作者信息组件
|
||||
Linglun Converter Author Page Component
|
||||
|
||||
版权所有 © 2024 金羿
|
||||
Copyright © 2024 EillesWan
|
||||
版权所有 © 2025 金羿
|
||||
Copyright © 2025 EillesWan
|
||||
|
||||
开源相关声明请见 仓库根目录下的 License.md
|
||||
Terms & Conditions: License.md in the root directory
|
||||
@ -13,9 +13,8 @@ Terms & Conditions: License.md in the root directory
|
||||
|
||||
|
||||
import wx
|
||||
import wx.xrc
|
||||
import wx.media
|
||||
|
||||
import wx.xrc
|
||||
|
||||
###########################################################################
|
||||
## Class LingLunAuthorPageFrame
|
||||
|
11
utils/io.py
11
utils/io.py
@ -4,8 +4,8 @@
|
||||
伶伦转换器 命令行组件
|
||||
Linglun Converter Command Line IO Component
|
||||
|
||||
版权所有 © 2024 金羿
|
||||
Copyright © 2024 EillesWan
|
||||
版权所有 © 2025 金羿
|
||||
Copyright © 2025 EillesWan
|
||||
|
||||
开源相关声明请见 仓库根目录下的 License.md
|
||||
Terms & Conditions: License.md in the root directory
|
||||
@ -16,20 +16,19 @@ from typing import (
|
||||
Any,
|
||||
Callable,
|
||||
Dict,
|
||||
Iterable,
|
||||
List,
|
||||
Literal,
|
||||
Optional,
|
||||
Sequence,
|
||||
Set,
|
||||
TextIO,
|
||||
Tuple,
|
||||
Iterable,
|
||||
Sequence,
|
||||
Union,
|
||||
)
|
||||
|
||||
import TrimLog
|
||||
from TrimLog import object_constants, logger, log__init__
|
||||
|
||||
from TrimLog import log__init__, logger, object_constants
|
||||
|
||||
logger.is_logging = True
|
||||
logger.suffix = ".llc"
|
||||
|
@ -4,15 +4,15 @@
|
||||
伶伦转换器 本地化组件
|
||||
Linglun Converter Language Localization Component
|
||||
|
||||
版权所有 © 2024 金羿
|
||||
Copyright © 2024 EillesWan
|
||||
版权所有 © 2025 金羿
|
||||
Copyright © 2025 EillesWan
|
||||
|
||||
开源相关声明请见 仓库根目录下的 License.md
|
||||
Terms & Conditions: License.md in the root directory
|
||||
"""
|
||||
|
||||
|
||||
from .io import logger, Any
|
||||
from .io import Any, logger
|
||||
|
||||
|
||||
def _() -> str:
|
||||
|
@ -4,8 +4,8 @@
|
||||
伶伦转换器 打包存档组件
|
||||
Linglun Converter Data Package Component
|
||||
|
||||
版权所有 © 2024 金羿
|
||||
Copyright © 2024 EillesWan
|
||||
版权所有 © 2025 金羿
|
||||
Copyright © 2025 EillesWan
|
||||
|
||||
开源相关声明请见 仓库根目录下的 License.md
|
||||
Terms & Conditions: License.md in the root directory
|
||||
@ -14,11 +14,11 @@ Terms & Conditions: License.md in the root directory
|
||||
|
||||
import hashlib
|
||||
|
||||
import dill
|
||||
import brotli
|
||||
import dill
|
||||
|
||||
from .salt import salt
|
||||
from .io import Any
|
||||
from .salt import salt
|
||||
|
||||
|
||||
def unpack_llc_pack(from_dist: str, raise_error: bool = True):
|
||||
@ -27,7 +27,12 @@ def unpack_llc_pack(from_dist: str, raise_error: bool = True):
|
||||
|
||||
if (md5_value == hashlib.md5(packed_bytes).digest()) and (
|
||||
salty_sha256_value
|
||||
== hashlib.pbkdf2_hmac("sha256", md5_value + packed_bytes, salt, 16)
|
||||
== hashlib.pbkdf2_hmac(
|
||||
"sha256",
|
||||
md5_value + packed_bytes,
|
||||
salt(hashlib.sha256(brotli.__version__)),
|
||||
16,
|
||||
)
|
||||
):
|
||||
return dill.loads(
|
||||
brotli.decompress(packed_bytes),
|
||||
@ -49,7 +54,10 @@ def enpack_llc_pack(sth: Any, to_dist: str):
|
||||
md5_value = hashlib.md5(packing_bytes).digest() # 长度 16
|
||||
|
||||
salty_sha256_value = hashlib.pbkdf2_hmac(
|
||||
"sha256", md5_value + packing_bytes, salt, 16
|
||||
"sha256",
|
||||
md5_value + packing_bytes,
|
||||
salt(hashlib.md5(salt(salt(brotli.__version__)))),
|
||||
16,
|
||||
) # 长度 32
|
||||
|
||||
with open(
|
||||
|
@ -4,8 +4,8 @@
|
||||
伶伦转换器 版本检查组件
|
||||
Linglun Converter Version Checking Component
|
||||
|
||||
版权所有 © 2024 金羿
|
||||
Copyright © 2024 EillesWan
|
||||
版权所有 © 2025 金羿
|
||||
Copyright © 2025 EillesWan
|
||||
|
||||
开源相关声明请见 仓库根目录下的 License.md
|
||||
Terms & Conditions: License.md in the root directory
|
||||
@ -13,7 +13,7 @@ Terms & Conditions: License.md in the root directory
|
||||
|
||||
import requests
|
||||
|
||||
from .io import TrimLog, Sequence, Iterable, Callable, Optional, Dict, Union
|
||||
from .io import Callable, Dict, Iterable, Optional, Sequence, TrimLog, Union
|
||||
|
||||
|
||||
def is_ver_char(text: str) -> bool:
|
||||
|
@ -4,8 +4,8 @@
|
||||
伶伦转换器 HTML页组件
|
||||
Linglun Converter HTML Component
|
||||
|
||||
版权所有 © 2024 金羿
|
||||
Copyright © 2024 EillesWan
|
||||
版权所有 © 2025 金羿
|
||||
Copyright © 2025 EillesWan
|
||||
|
||||
开源相关声明请见 仓库根目录下的 License.md
|
||||
Terms & Conditions: License.md in the root directory
|
||||
|
@ -4,8 +4,8 @@
|
||||
伶伦转换器 言论版组件
|
||||
Linglun Converter Yan Lun Component
|
||||
|
||||
版权所有 © 2024 金羿
|
||||
Copyright © 2024 EillesWan
|
||||
版权所有 © 2025 金羿
|
||||
Copyright © 2025 EillesWan
|
||||
|
||||
开源相关声明请见 仓库根目录下的 License.md
|
||||
Terms & Conditions: License.md in the root directory
|
||||
@ -25,9 +25,12 @@ yanlun_bg_colour = STANDART_BLACK
|
||||
logger.info("获取 言·论 信息……")
|
||||
|
||||
solar_datetime = zhDateTime.DateTime.now()
|
||||
lunar_datetime = solar_datetime.to_lunar()
|
||||
lunar_datetime = solar_datetime.to_chinese_format()
|
||||
solar_date = (solar_datetime.month, solar_datetime.day)
|
||||
lunar_date = (lunar_datetime.lunar_month, lunar_datetime.lunar_day)
|
||||
lunar_date = (
|
||||
lunar_datetime.chinese_calendar_month,
|
||||
lunar_datetime.chinese_calendar_day,
|
||||
)
|
||||
|
||||
if solar_date == (4, 3):
|
||||
yanlun_texts = ["金羿ELS 生日快乐~!", "Happy Birthday, Eilles!"]
|
||||
|
Reference in New Issue
Block a user