Wine通用版 v1.0.1

飒爽师叔 · 2026-07-01 04:06

更新日志

[AI翻译] 名称、描述、说明、JSON描述、变量

版本内容

{
    "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL",
    "meta": {
        "update_url": "https://eggs.pterodactyl.top/eggs/259/download/egg-wine-generic.json",
        "version": "PTDL_v2"
    },
    "exported_at": "2024-06-01T00:17:21+00:00",
    "name": "Wine Generic",
    "author": "parker@parkervcp.com",
    "description": "一个使用Wine运行服务器的通用egg",
    "features": null,
    "docker_images": {
        "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:wine_devel": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:wine_devel",
        "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:wine_latest": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:wine_latest",
        "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:wine_staging": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:wine_staging"
    },
    "file_denylist": [],
    "startup": "wine {{SERVER_EXECUTABLE}}",
    "config": {
        "files": "{}",
        "logs": "{}",
        "startup": "{\r\n    \"done\": \"change me\"\r\n}",
        "stop": "^C"
    },
    "scripts": {
        "installation": {
            "container": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/installers:debian",
            "entrypoint": "bash",
            "script": "#!/bin/bash\r\n# The wine generic server installer\r\n# This will just pull a download link and unpack it in directory if specified.\r\n\r\napt update -y\r\napt install -y curl file unzip\r\n\r\nif [ ! -d /mnt/server ]; then\r\n    mkdir -p /mnt/server/\r\nfi\r\n\r\ncd /mnt/server/\r\n\r\n# if an install dir is set then make it and change to it.\r\nif [ ! -z ${INSTALL_DIR} ]; then\r\n    mkdir -p ${INSTALL_DIR}\r\n    cd ${INSTALL_DIR}\r\nfi\r\n\r\n# validate server link\r\nif [ ! -z \"${DOWNLOAD_URL}\" ]; then \r\n    if curl --output /dev/null --silent --head --fail ${DOWNLOAD_URL}; then\r\n        echo -e \"link is valid. setting download link to ${DOWNLOAD_URL}\"\r\n        DOWNLOAD_LINK=${DOWNLOAD_URL}\r\n    else        \r\n        echo -e \"link is invalid closing out\"\r\n        exit 2\r\n    fi\r\nfi\r\n\r\ncurl -sSL ${DOWNLOAD_LINK} -o ${DOWNLOAD_LINK##*/}\r\n\r\n# unpack servver files\r\nFILETYPE=$(file -F ',' ${DOWNLOAD_LINK##*/} | cut -d',' -f2 | cut -d' ' -f2)\r\n\r\nif [ \"$FILETYPE\" == \"gzip\" ]; then\r\n    tar xzvf ${DOWNLOAD_LINK##*/}\r\nelif [ \"$FILETYPE\" == \"Zip\" ]; then\r\n    unzip ${DOWNLOAD_LINK##*/}\r\nelif [ \"$FILETYPE\" == \"XZ\" ]; then\r\n    tar xvf ${DOWNLOAD_LINK##*/}\r\nelse\r\n    echo -e \"unknown filetype. Exiting\"\r\n    exit 2 \r\nfi\r\n\r\n## install end\r\necho \"-----------------------------------------\"\r\necho \"Installation completed...\"\r\necho \"-----------------------------------------\""
        }
    },
    "variables": [
        {
            "name": "服务器下载链接",
            "description": "用于下载服务器文件的URL。",
            "env_variable": "DOWNLOAD_URL",
            "default_value": "https://beamng-mp.com/server/BeamMP_Server.zip",
            "user_viewable": false,
            "user_editable": false,
            "rules": "required|string",
            "field_type": "text"
        },
        {
            "name": "服务器可执行文件",
            "description": "要运行的服务器可执行文件。",
            "env_variable": "SERVER_EXECUTABLE",
            "default_value": "BeamMP-Server.exe",
            "user_viewable": true,
            "user_editable": false,
            "rules": "required|string",
            "field_type": "text"
        },
        {
            "name": "要安装到的子目录",
            "description": "例如,如果服务器需要安装到 /home/container/server/bin/,则使用 server/bin/",
            "env_variable": "INSTALL_DIR",
            "default_value": "",
            "user_viewable": false,
            "user_editable": false,
            "rules": "nullable|string",
            "field_type": "text"
        }
    ]
}