完善打包流程
2
.github/workflows/python-app.yml
vendored
@@ -22,7 +22,7 @@ name: Build AUTO_MAA
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "main", "Dev" ]
|
branches: [ "main" ]
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- '**.md'
|
- '**.md'
|
||||||
- 'LICENSE'
|
- 'LICENSE'
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
MAA多账号管理与自动化软件
|
MAA多账号管理与自动化软件
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -119,7 +119,7 @@ MAA多账号管理与自动化软件
|
|||||||
- 配置自己模拟器所在的位置并根据实际情况填写`等待模拟器启动时间`(建议预留10s以防意外)。
|
- 配置自己模拟器所在的位置并根据实际情况填写`等待模拟器启动时间`(建议预留10s以防意外)。
|
||||||
- 如果是模拟器多开用户,还需要填写`附加命令`,具体填写值参见多开模拟器对应快捷方式路径(如`-v 1`)。
|
- 如果是模拟器多开用户,还需要填写`附加命令`,具体填写值参见多开模拟器对应快捷方式路径(如`-v 1`)。
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
#### 设置AUTO_MAA
|
#### 设置AUTO_MAA
|
||||||
|
|
||||||
@@ -165,7 +165,7 @@ MAA多账号管理与自动化软件
|
|||||||
- 程序会读取`data/gameid.txt`中的数据,依据此进行关卡号的替换,便于常用关卡的使用。
|
- 程序会读取`data/gameid.txt`中的数据,依据此进行关卡号的替换,便于常用关卡的使用。
|
||||||
- `gameid.txt`会在程序首次运行时生成,其中将预置一些常用资源本的替换方案。
|
- `gameid.txt`会在程序首次运行时生成,其中将预置一些常用资源本的替换方案。
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## 运行代理任务
|
## 运行代理任务
|
||||||
|
|
||||||
@@ -201,7 +201,6 @@ MAA多账号管理与自动化软件
|
|||||||
|
|
||||||
- [ ] 尝试接入更多开源社区成果
|
- [ ] 尝试接入更多开源社区成果
|
||||||
- [ ] 支持对MAA运行状况的进一步识别
|
- [ ] 支持对MAA运行状况的进一步识别
|
||||||
- [ ] 支持宽幅ADB连接适配
|
|
||||||
- [x] 添加更多通知手段
|
- [x] 添加更多通知手段
|
||||||
- [ ] GUI界面美化
|
- [ ] GUI界面美化
|
||||||
|
|
||||||
@@ -225,7 +224,7 @@ MAA多账号管理与自动化软件
|
|||||||
|
|
||||||
欢迎加入AUTO_MAA项目组,欢迎反馈bug
|
欢迎加入AUTO_MAA项目组,欢迎反馈bug
|
||||||
|
|
||||||
- QQ群:957750551
|
- QQ群:[957750551](https://qm.qq.com/cgi-bin/qm/qr?k=EET-OL_o52KPlDLEmbzaNkKUXuyQ4WZY&jump_from=webapi&authKey=6NxGwEu9JAOLHqfdEmNfrZy4tUvC/3ar2j5+Go7Hgf3j+ntAK1VS6SUOLOjYVKTt)
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -676,21 +676,15 @@ class MaaManager(QtCore.QThread):
|
|||||||
data["Configurations"]["Default"][
|
data["Configurations"]["Default"][
|
||||||
"MainFunction.PostActions"
|
"MainFunction.PostActions"
|
||||||
] = "12" # 完成后退出MAA和模拟器
|
] = "12" # 完成后退出MAA和模拟器
|
||||||
data["Configurations"]["Default"][
|
data["Global"]["Start.RunDirectly"] = "True" # 启动MAA后直接运行
|
||||||
"Start.RunDirectly"
|
data["Global"][
|
||||||
] = "True" # 启动MAA后直接运行
|
|
||||||
data["Configurations"]["Default"][
|
|
||||||
"Start.OpenEmulatorAfterLaunch"
|
"Start.OpenEmulatorAfterLaunch"
|
||||||
] = "True" # 启动MAA后自动开启模拟器
|
] = "True" # 启动MAA后自动开启模拟器
|
||||||
|
|
||||||
if self.if_silence:
|
if self.if_silence:
|
||||||
data["Global"]["Start.MinimizeDirectly"] = "True" # 启动MAA后直接最小化
|
data["Global"]["Start.MinimizeDirectly"] = "True" # 启动MAA后直接最小化
|
||||||
data["Configurations"]["Default"][
|
data["Global"]["GUI.UseTray"] = "True" # 显示托盘图标
|
||||||
"GUI.UseTray"
|
data["Global"]["GUI.MinimizeToTray"] = "True" # 最小化时隐藏至托盘
|
||||||
] = "True" # 显示托盘图标
|
|
||||||
data["Configurations"]["Default"][
|
|
||||||
"GUI.MinimizeToTray"
|
|
||||||
] = "True" # 最小化时隐藏至托盘
|
|
||||||
|
|
||||||
if self.data[index][15] == "simple":
|
if self.data[index][15] == "simple":
|
||||||
|
|
||||||
@@ -774,6 +768,9 @@ class MaaManager(QtCore.QThread):
|
|||||||
data["Configurations"]["Default"][
|
data["Configurations"]["Default"][
|
||||||
"Fight.UseExpiringMedicine"
|
"Fight.UseExpiringMedicine"
|
||||||
] = "True" # 无限吃48小时内过期的理智药
|
] = "True" # 无限吃48小时内过期的理智药
|
||||||
|
data["Configurations"]["Default"][
|
||||||
|
"GUI.HideSeries"
|
||||||
|
] = "False" # 隐藏连战次数
|
||||||
|
|
||||||
elif "日常" in mode:
|
elif "日常" in mode:
|
||||||
|
|
||||||
@@ -864,6 +861,9 @@ class MaaManager(QtCore.QThread):
|
|||||||
data["Configurations"]["Default"][
|
data["Configurations"]["Default"][
|
||||||
"Infrast.CustomInfrastEnabled"
|
"Infrast.CustomInfrastEnabled"
|
||||||
] = "True" # 启用自定义基建配置
|
] = "True" # 启用自定义基建配置
|
||||||
|
data["Configurations"]["Default"][
|
||||||
|
"Infrast.CustomInfrastPlanIndex"
|
||||||
|
] = "1" # 自定义基建配置索引
|
||||||
data["Configurations"]["Default"][
|
data["Configurations"]["Default"][
|
||||||
"Infrast.DefaultInfrast"
|
"Infrast.DefaultInfrast"
|
||||||
] = "user_defined" # 内置配置
|
] = "user_defined" # 内置配置
|
||||||
@@ -883,23 +883,15 @@ class MaaManager(QtCore.QThread):
|
|||||||
data["Configurations"]["Default"][
|
data["Configurations"]["Default"][
|
||||||
"MainFunction.PostActions"
|
"MainFunction.PostActions"
|
||||||
] = "8" # 完成后退出MAA
|
] = "8" # 完成后退出MAA
|
||||||
data["Configurations"]["Default"][
|
data["Global"]["Start.RunDirectly"] = "True" # 启动MAA后直接运行
|
||||||
"Start.RunDirectly"
|
|
||||||
] = "True" # 启动MAA后直接运行
|
|
||||||
data["Global"]["Start.MinimizeDirectly"] = "True" # 启动MAA后直接最小化
|
data["Global"]["Start.MinimizeDirectly"] = "True" # 启动MAA后直接最小化
|
||||||
data["Configurations"]["Default"]["GUI.UseTray"] = "True" # 显示托盘图标
|
data["Global"]["GUI.UseTray"] = "True" # 显示托盘图标
|
||||||
data["Configurations"]["Default"][
|
data["Global"]["GUI.MinimizeToTray"] = "True" # 最小化时隐藏至托盘
|
||||||
"GUI.MinimizeToTray"
|
|
||||||
] = "True" # 最小化时隐藏至托盘
|
|
||||||
# 启动MAA后自动开启模拟器
|
# 启动MAA后自动开启模拟器
|
||||||
if "启动模拟器" in mode:
|
if "启动模拟器" in mode:
|
||||||
data["Configurations"]["Default"][
|
data["Global"]["Start.OpenEmulatorAfterLaunch"] = "True"
|
||||||
"Start.OpenEmulatorAfterLaunch"
|
|
||||||
] = "True"
|
|
||||||
elif "仅切换账号" in mode:
|
elif "仅切换账号" in mode:
|
||||||
data["Configurations"]["Default"][
|
data["Global"]["Start.OpenEmulatorAfterLaunch"] = "False"
|
||||||
"Start.OpenEmulatorAfterLaunch"
|
|
||||||
] = "False"
|
|
||||||
|
|
||||||
if self.data[index][15] == "simple":
|
if self.data[index][15] == "simple":
|
||||||
|
|
||||||
@@ -961,10 +953,8 @@ class MaaManager(QtCore.QThread):
|
|||||||
data["Configurations"]["Default"][
|
data["Configurations"]["Default"][
|
||||||
"MainFunction.PostActions"
|
"MainFunction.PostActions"
|
||||||
] = "0" # 完成后无动作
|
] = "0" # 完成后无动作
|
||||||
data["Configurations"]["Default"][
|
data["Global"]["Start.RunDirectly"] = "False" # 启动MAA后直接运行
|
||||||
"Start.RunDirectly"
|
data["Global"][
|
||||||
] = "False" # 启动MAA后直接运行
|
|
||||||
data["Configurations"]["Default"][
|
|
||||||
"Start.OpenEmulatorAfterLaunch"
|
"Start.OpenEmulatorAfterLaunch"
|
||||||
] = "False" # 启动MAA后自动开启模拟器
|
] = "False" # 启动MAA后自动开启模拟器
|
||||||
|
|
||||||
|
|||||||
@@ -41,6 +41,8 @@ if __name__ == "__main__":
|
|||||||
main_version_numb = list(map(int, version["main_version"].split(".")))
|
main_version_numb = list(map(int, version["main_version"].split(".")))
|
||||||
updater_version_numb = list(map(int, version["updater_version"].split(".")))
|
updater_version_numb = list(map(int, version["updater_version"].split(".")))
|
||||||
|
|
||||||
|
print("正在打包AUTO_MAA主程序...")
|
||||||
|
|
||||||
result = subprocess.run(
|
result = subprocess.run(
|
||||||
f"powershell -Command nuitka --standalone --onefile --mingw64"
|
f"powershell -Command nuitka --standalone --onefile --mingw64"
|
||||||
f" --enable-plugins=pyside6 --windows-console-mode=disable"
|
f" --enable-plugins=pyside6 --windows-console-mode=disable"
|
||||||
@@ -58,6 +60,10 @@ if __name__ == "__main__":
|
|||||||
text=True,
|
text=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
print(result.stdout)
|
||||||
|
print(result.stderr)
|
||||||
|
print("AUTO_MAA主程序打包完成!")
|
||||||
|
|
||||||
shutil.copy(os.path.normpath("app/utils/Updater.py"), os.path.normpath("."))
|
shutil.copy(os.path.normpath("app/utils/Updater.py"), os.path.normpath("."))
|
||||||
|
|
||||||
with open(os.path.normpath("Updater.py"), "r", encoding="utf-8") as f:
|
with open(os.path.normpath("Updater.py"), "r", encoding="utf-8") as f:
|
||||||
@@ -70,6 +76,8 @@ if __name__ == "__main__":
|
|||||||
with open(os.path.normpath("Updater.py"), "w", encoding="utf-8") as f:
|
with open(os.path.normpath("Updater.py"), "w", encoding="utf-8") as f:
|
||||||
f.write(file_content)
|
f.write(file_content)
|
||||||
|
|
||||||
|
print("正在打包AUTO_MAA更新程序...")
|
||||||
|
|
||||||
result = subprocess.run(
|
result = subprocess.run(
|
||||||
f"powershell -Command nuitka --standalone --onefile --mingw64"
|
f"powershell -Command nuitka --standalone --onefile --mingw64"
|
||||||
f" --enable-plugins=pyside6 --windows-console-mode=disable"
|
f" --enable-plugins=pyside6 --windows-console-mode=disable"
|
||||||
@@ -87,6 +95,12 @@ if __name__ == "__main__":
|
|||||||
text=True,
|
text=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
print(result.stdout)
|
||||||
|
print(result.stderr)
|
||||||
|
print("AUTO_MAA更新程序打包完成!")
|
||||||
|
|
||||||
|
os.remove(os.path.normpath("Updater.py"))
|
||||||
|
|
||||||
with open("update_info.txt", "w", encoding="utf-8") as f:
|
with open("update_info.txt", "w", encoding="utf-8") as f:
|
||||||
print(
|
print(
|
||||||
f"{version_text(main_version_numb)}\n{version_text(updater_version_numb)}{version["announcement"]}",
|
f"{version_text(main_version_numb)}\n{version_text(updater_version_numb)}{version["announcement"]}",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"main_version": "4.2.0.0",
|
"main_version": "4.2.0.0",
|
||||||
"updater_version": "1.1.0.0",
|
"updater_version": "1.1.0.0",
|
||||||
"announcement": "\n# 这是一个中间版本,此版本后更换程序架构方式。\n# 由于更新方法无法通用,您需要在完成更新后再次检查更新以获取最新版本。\n",
|
"announcement": "\n# 这是一个中转版本,此版本后更换程序架构方式。\n# 由于更新方法无法通用,您需要在完成本次更新后再次检查更新以获取最新版本。\n",
|
||||||
"proxy_list":[
|
"proxy_list":[
|
||||||
"",
|
"",
|
||||||
"https://gitproxy.click/",
|
"https://gitproxy.click/",
|
||||||
|
|||||||
@@ -18,25 +18,28 @@
|
|||||||
"GUI.CustomStageCode": "False" #手动输入关卡名
|
"GUI.CustomStageCode": "False" #手动输入关卡名
|
||||||
"GUI.UseAlternateStage": "False" #使用备选关卡
|
"GUI.UseAlternateStage": "False" #使用备选关卡
|
||||||
"Fight.UseRemainingSanityStage": "True" #使用剩余理智
|
"Fight.UseRemainingSanityStage": "True" #使用剩余理智
|
||||||
|
"GUI.AllowUseStoneSave": "False" #允许吃源石保持状态
|
||||||
"Fight.UseExpiringMedicine": "False" #无限吃48小时内过期的理智药
|
"Fight.UseExpiringMedicine": "False" #无限吃48小时内过期的理智药
|
||||||
"GUI.HideUnavailableStage": "False" #隐藏当日不开放关卡
|
"GUI.HideUnavailableStage": "False" #隐藏当日不开放关卡
|
||||||
|
"GUI.HideSeries": "False" #隐藏连战次数
|
||||||
"Infrast.CustomInfrastPlanShowInFightSettings": "False" #显示基建计划
|
"Infrast.CustomInfrastPlanShowInFightSettings": "False" #显示基建计划
|
||||||
"Penguin.EnablePenguin": "True" #上报企鹅物流
|
"Penguin.EnablePenguin": "True" #上报企鹅物流
|
||||||
"Yituliu.EnableYituliu": "True" #上报一图流
|
"Yituliu.EnableYituliu": "True" #上报一图流
|
||||||
#基建换班
|
#基建换班
|
||||||
"Infrast.CustomInfrastEnabled": "True" #启用自定义基建配置
|
"Infrast.CustomInfrastEnabled": "True" #启用自定义基建配置
|
||||||
|
"Infrast.CustomInfrastPlanIndex": "1" #自定义基建配置索引
|
||||||
"Infrast.DefaultInfrast": "user_defined" #内置配置
|
"Infrast.DefaultInfrast": "user_defined" #内置配置
|
||||||
"Infrast.IsCustomInfrastFileReadOnly": "False" #自定义基建配置文件只读
|
"Infrast.IsCustomInfrastFileReadOnly": "False" #自定义基建配置文件只读
|
||||||
"Infrast.CustomInfrastFile": "" #自定义基建配置文件地址
|
"Infrast.CustomInfrastFile": "" #自定义基建配置文件地址
|
||||||
#设置
|
#设置
|
||||||
"Start.ClientType": "Bilibili"、 "Official" #服务器
|
"Start.ClientType": "Bilibili"、 "Official" #服务器
|
||||||
"Timer.Timer1": "False" #时间设置1
|
G"Timer.Timer1": "False" #时间设置1
|
||||||
"VersionUpdate.ScheduledUpdateCheck": "True" #定时检查更新
|
G"VersionUpdate.ScheduledUpdateCheck": "True" #定时检查更新
|
||||||
"VersionUpdate.AutoDownloadUpdatePackage": "True" #自动下载更新包
|
G"VersionUpdate.AutoDownloadUpdatePackage": "True" #自动下载更新包
|
||||||
"VersionUpdate.AutoInstallUpdatePackage": "True" #自动安装更新包
|
G"VersionUpdate.AutoInstallUpdatePackage": "True" #自动安装更新包
|
||||||
"Start.RunDirectly": "True" #启动MAA后直接运行
|
G"Start.RunDirectly": "True" #启动MAA后直接运行
|
||||||
"Start.MinimizeDirectly": "True" #启动MAA后直接最小化
|
G"Start.MinimizeDirectly": "True" #启动MAA后直接最小化
|
||||||
"Start.OpenEmulatorAfterLaunch": "True" #启动MAA后自动开启模拟器
|
G"Start.OpenEmulatorAfterLaunch": "True" #启动MAA后自动开启模拟器
|
||||||
"GUI.UseTray": "True" #显示托盘图标
|
G"GUI.UseTray": "True" #显示托盘图标
|
||||||
"GUI.MinimizeToTray": "False" #最小化时隐藏至托盘
|
G"GUI.MinimizeToTray": "False" #最小化时隐藏至托盘
|
||||||
"Start.EmulatorPath" #模拟器路径
|
"Start.EmulatorPath" #模拟器路径
|
||||||
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 61 KiB After Width: | Height: | Size: 61 KiB |
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 309 KiB After Width: | Height: | Size: 309 KiB |
|
Before Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 8.9 KiB |
|
Before Width: | Height: | Size: 129 KiB |
|
Before Width: | Height: | Size: 3.4 MiB |
|
Before Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 22 KiB |
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"main_version": "4.2.0.0",
|
"main_version": "4.2.0.0",
|
||||||
"updater_version": "1.1.0.0",
|
"updater_version": "1.1.0.0",
|
||||||
"announcement": "\n# 这是一个中间版本,此版本后更换程序架构方式。\n# 由于更新方法无法通用,您需要在完成更新后再次检查更新以获取最新版本。\n",
|
"announcement": "\n## 新增功能\n- 提供完整打包代码\n## 修复BUG\n- 同步MAA`v5.11.1`的字段修改\n- 清除自动化中无效的整合流程\n## 程序优化\n- 调整项目结构,模块化各功能组件\n- 改用`nuitka`编译,压缩软件体积,提升运行速度",
|
||||||
"proxy_list":[
|
"proxy_list":[
|
||||||
"",
|
"",
|
||||||
"https://gitproxy.click/",
|
"https://gitproxy.click/",
|
||||||
|
|||||||
10
update_info.txt
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
v4.2.0
|
||||||
|
v1.1.0
|
||||||
|
## 新增功能
|
||||||
|
- 提供完整打包代码
|
||||||
|
## 修复BUG
|
||||||
|
- 同步MAA`v5.11.1`的字段修改
|
||||||
|
- 清除自动化中无效的整合流程
|
||||||
|
## 程序优化
|
||||||
|
- 调整项目结构,模块化各功能组件
|
||||||
|
- 改用`nuitka`编译,压缩软件体积,提升运行速度
|
||||||