W
描述
一个使用Wine运行服务器的通用egg
106 浏览
8 下载
2026-07-01
更新于 4 小时前
预设配置详情
Wine 通用镜像
一个通用的 Wine 镜像,可用于安装需要 Wine 运行的服务端。
下载压缩的服务端文件,并将其解压到 /mnt/server/ 下的指定文件夹中。
例如:INSTALL_DIR = server/folder 会将服务端解压到 /mnt/server//server/folder/
安装说明
可能需要完全自定义启动命令。这需要你自行确定具体内容。
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_staging
wine {{SERVER_EXECUTABLE}}
| 变量名 | 变量 | 描述 | 默认值 | 规则 | 可查看 | 可编辑 |
|---|---|---|---|---|---|---|
| 服务器下载链接 | DOWNLOAD_URL |
用于下载服务器文件的URL。 | https://beamng-mp.com/server/BeamMP_Server.zip |
required|string
必填 字符串
|
||
| 服务器可执行文件 | SERVER_EXECUTABLE |
要运行的服务器可执行文件。 | BeamMP-Server.exe |
required|string
必填 字符串
|
||
| 要安装到的子目录 | INSTALL_DIR |
例如,如果服务器需要安装到 /home/container/server/bin/,则使用 server/bin/ | |
nullable|string
可选 字符串
|
镜像
registry.cn-shanghai.aliyuncs.com/pterodactyl-images/installers:debian
入口
bash
#!/bin/bash
# The wine generic server installer
# This will just pull a download link and unpack it in directory if specified.
apt update -y
apt install -y curl file unzip
if [ ! -d /mnt/server ]; then
mkdir -p /mnt/server/
fi
cd /mnt/server/
# if an install dir is set then make it and change to it.
if [ ! -z ${INSTALL_DIR} ]; then
mkdir -p ${INSTALL_DIR}
cd ${INSTALL_DIR}
fi
# validate server link
if [ ! -z "${DOWNLOAD_URL}" ]; then
if curl --output /dev/null --silent --head --fail ${DOWNLOAD_URL}; then
echo -e "link is valid. setting download link to ${DOWNLOAD_URL}"
DOWNLOAD_LINK=${DOWNLOAD_URL}
else
echo -e "link is invalid closing out"
exit 2
fi
fi
curl -sSL ${DOWNLOAD_LINK} -o ${DOWNLOAD_LINK##*/}
# unpack servver files
FILETYPE=$(file -F ',' ${DOWNLOAD_LINK##*/} | cut -d',' -f2 | cut -d' ' -f2)
if [ "$FILETYPE" == "gzip" ]; then
tar xzvf ${DOWNLOAD_LINK##*/}
elif [ "$FILETYPE" == "Zip" ]; then
unzip ${DOWNLOAD_LINK##*/}
elif [ "$FILETYPE" == "XZ" ]; then
tar xvf ${DOWNLOAD_LINK##*/}
else
echo -e "unknown filetype. Exiting"
exit 2
fi
## install end
echo "-----------------------------------------"
echo "Installation completed..."
echo "-----------------------------------------"
{
"_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"
}
]
}附属文件
暂无附属文件
Fork 关系
查看关系图暂无 Fork,成为第一个 Fork 的人吧!
统计
106
浏览
8
下载
0
星标
0
复刻
作者
飒
飒爽师叔
UID: 1
277 预设
·
2026-06