Implement pause/resume commands w/ APOLLO_APP_STATUS envvar

This commit is contained in:
Yukino Song
2025-06-05 01:57:41 +08:00
parent 2795e34e16
commit 3e0cbaf2c2
13 changed files with 312 additions and 119 deletions

View File

@@ -53,6 +53,8 @@
"cmd_note": "If the path to the command executable contains spaces, you must enclose it in quotes.",
"cmd_prep_desc": "A list of commands to be run before/after this application. If any of the prep-commands fail, starting the application is aborted.",
"cmd_prep_name": "Command Preparations",
"cmd_state_desc": "A list of commands to be run when resuming(first client connects when no clients are connected) or pausing(all clients disconnect) this application.\nDo commands for resume and Undo command for pause.\nPlease make sure to clean up any side effects of the commands in the preparation undo commands.\nPlease note that pause command will not be executed when the session terminates.",
"cmd_state_name": "Resume/Pause Commands",
"covers_found": "Covers Found",
"delete": "Delete",
"delete_failed": "App delete failed: ",
@@ -64,6 +66,7 @@
"env_app_id": "App ID (legacy)",
"env_app_name": "App Name",
"env_app_uuid": "App UUID",
"env_app_status": "App Status: One of 'STARTING', 'RUNNING', 'PAUSING', 'RESUMING', 'TERMINATING' (string)",
"env_client_audio_config": "The Audio Configuration requested by the client (2.0/5.1/7.1)",
"env_client_enable_sops": "The client has requested the option to optimize the game for optimal streaming (true/false)",
"env_client_fps": "The FPS requested by the client (float)",
@@ -88,6 +91,8 @@
"find_cover": "Find Cover",
"global_prep_desc": "Enable/Disable the execution of Global Prep Commands for this application.",
"global_prep_name": "Global Prep Commands",
"global_state_desc": "Enable/Disable the execution of Global Resume/Pause Commands for this application.",
"global_state_name": "Global Resume/Pause Commands",
"image": "Image",
"image_desc": "Application icon/picture/image path that will be sent to client. Image must be a PNG file. If not set, Apollo will send default box image.",
"launch": "Launch",
@@ -278,6 +283,8 @@
"gamepad_xone": "XOne (Xbox One)",
"global_prep_cmd": "Command Preparations",
"global_prep_cmd_desc": "Configure a list of commands to be executed before or after running any application. If any of the specified preparation commands fail, the application launch process will be aborted.",
"global_state_cmd": "Resume/Pause Commands",
"global_state_cmd_desc": "Configure a list of commands to be executed when resuming(first client connects when no clients are connected) or pausing(all clients disconnect) any application.\nDo commands for resume and Undo command for pause.\nPlease make sure to clean up any side effects of the commands in the preparation undo commands.\nPlease note that pause command will not be executed when the session terminates.",
"headless_mode": "Headless Mode",
"headless_mode_desc": "Start Apollo in headless mode. When enabled, all apps will start in virtual display.",
"hevc_mode": "HEVC Support",

View File

@@ -13,7 +13,7 @@
"disabled_def": "禁用(默认)",
"disabled_def_cbox": "默认值:未选",
"dismiss": "关闭",
"do_cmd": "打开时执行命令",
"do_cmd": "前置命令",
"elevated": "提权运行",
"enabled": "启用",
"enabled_def": "启用(默认)",
@@ -26,7 +26,7 @@
"save": "保存",
"see_more": "查看更多",
"success": "成功!",
"undo_cmd": "退出应用时执行命令",
"undo_cmd": "后置命令",
"username": "用户名",
"warning": "警告!"
},
@@ -51,8 +51,10 @@
"cmd": "命令",
"cmd_desc": "要启动的主要应用程序。如果为空,将不会启动任何应用程序。",
"cmd_note": "如果命令中可执行文件的路径包含空格,则必须用引号括起来。",
"cmd_prep_desc": "应用运行前/后要行的命令列表。如果任何前置命令失败,应用的启动过程将被中止。",
"cmd_prep_name": "命令准备工作",
"cmd_prep_desc": "应用运行前/后要行的命令列表。如果任何前置命令失败,应用的启动过程将被中止。",
"cmd_prep_name": "准备命令",
"cmd_state_desc": "应用暂停(所有客户端断开连接)或恢复(第一个客户端连接)时执行的命令列表。\n前置命令在恢复时执行后置命令在暂停时执行。\n请确保在命令准备工作的后置命令中清理任何命令产生的副作用当会话终止时暂停命令将不会被执行。",
"cmd_state_name": "暂停/恢复命令",
"covers_found": "找到的封面",
"delete": "删除",
"delete_failed": "APP删除失败",
@@ -64,6 +66,7 @@
"env_app_id": "应用 ID (已弃用)",
"env_app_name": "应用名称",
"env_app_uuid": "应用 UUID",
"env_app_status": "应用状态: 值为 'STARTING', 'RUNNING', 'PAUSING', 'RESUMING', 'TERMINATING' 的任意一个 (string)",
"env_client_audio_config": "客户端请求的音频配置 (2.0/5.1/7.1)",
"env_client_enable_sops": "客户端请求自动更改游戏设置以实现最佳串流效果 (true/false)",
"env_client_fps": "客户端请求的帧率 (float)",
@@ -86,8 +89,10 @@
"exit_timeout": "退出超时",
"exit_timeout_desc": "请求退出时,等待所有应用进程正常关闭的秒数。 如果未设置默认等待5秒钟。如果设置为零或负值应用程序将立即终止。",
"find_cover": "查找封面",
"global_prep_desc": "启用/禁用此应用程序的全局预览命令。",
"global_prep_name": "全局预处理命令",
"global_prep_desc": "启用/禁用此应用程序的全局准备命令。",
"global_prep_name": "全局准备命令",
"global_state_desc": "启用/禁用此应用程序的全局暂停/恢复命令。",
"global_state_name": "全局暂停/恢复命令",
"image": "图片",
"image_desc": "发送到客户端的应用程序图标/图片/图像的路径。图片必须是 PNG 文件。如果未设置Apollo 将发送默认图片。",
"launch": "启动",
@@ -273,6 +278,8 @@
"gamepad_xone": "XOne (Xbox One)",
"global_prep_cmd": "命令准备工作",
"global_prep_cmd_desc": "任何应用运行前/后要运行的命令列表。如果任何前置命令失败,应用的启动过程将被中止。",
"global_state_cmd": "暂停/恢复命令",
"global_state_cmd_desc": "任何应用暂停(所有客户端断开连接)或恢复(第一个客户端连接)时执行的命令列表。\n前置命令在恢复时执行后置命令在暂停时执行。\n请确保在命令准备工作的后置命令中清理任何命令产生的副作用当会话终止时暂停命令将不会被执行。",
"headless_mode": "无头模式",
"headless_mode_desc": "启用后Apollo将支持无显示器模式所有App都将在虚拟显示器中启动。",
"hevc_mode": "HEVC 支持",