games-standalone/veloren/egg-veloren.json
notCharles 8ff63d3130 Update for Pelican Egg Importing.
Update Eggs to add UUIDs to support Pelican Egg Updating.
2024-05-31 20:21:13 -04:00

66 lines
4.0 KiB
JSON

{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL",
"meta": {
"version": "PTDL_v2",
"update_url": null
},
"exported_at": "2024-06-01T00:17:20+00:00",
"name": "Veloren",
"author": "parker@parkervcp.com",
"uuid": "3b814b4e-a86d-4eca-ad00-1cdfe4a2baca",
"description": "Veloren is a multiplayer voxel RPG written in Rust. It is inspired by games such as Cube World, Legend of Zelda: Breath of the Wild, Dwarf Fortress and Minecraft.",
"features": null,
"docker_images": {
"Debian": "ghcr.io\/parkervcp\/yolks:debian"
},
"file_denylist": [],
"startup": ".\/veloren-server-cli",
"config": {
"files": "{\r\n \"userdata\/server\/server_config\/settings.ron\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \" metrics_address\": \" metrics_address: \\\"0.0.0.0:{{server.build.env.METRICS_PORT}}\\\",\",\r\n \" server_name\": \" server_name: \\\"{{server.build.env.SERVER_NAME}}\\\",\"\r\n }\r\n }\r\n}",
"startup": "{\r\n \"done\": \"Server is ready to accept connections\"\r\n}",
"logs": "{}",
"stop": "shutdown graceful 10"
},
"scripts": {
"installation": {
"script": "#!\/bin\/bash\r\n\r\napt update\r\napt install -y curl wget unzip git jq\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n\r\nARCH=$([[ \"$(uname -m)\" == \"x86_64\" ]] && echo \"x86_64\" || echo \"aarch64\")\r\n\r\nif [ -z \"${VERSION}\" ] || [ \"${VERSION}\" == \"weekly\" ]; then\r\n echo -e \"weekly\"\r\n DOWNLOAD_URL=https:\/\/download.veloren.net\/latest\/linux\/${ARCH}\/weekly\r\nelif [ \"${VERSION}\" == \"nightly\" ]; then\r\n echo -e \"nightly\"\r\n DOWNLOAD_URL=https:\/\/download.veloren.net\/latest\/linux\/${ARCH}\/nightly\r\nelse\r\n echo -e \"something went wrong\"\r\nfi\r\n\r\necho -e \"download url: ${DOWNLOAD_URL}\"\r\nwget ${DOWNLOAD_URL} -O files.zip\r\n\r\nunzip -o files.zip\r\nrm files.zip\r\n\r\nchmod +x veloren-server-cli\r\n\r\n## generate config because there is no better way to get it.\r\nmkdir -p \/mnt\/server\/userdata\/server\/server_config\/\r\nif [ ! -f \/mnt\/server\/userdata\/server\/server_config\/settings.ron ]; then\r\n wget https:\/\/raw.githubusercontent.com\/parkervcp\/eggs\/master\/game_eggs\/veloren\/settings.ron -O \/tmp\/settings.ron\r\n sed \"s\/14004\/${SERVER_PORT}\/g\" \/tmp\/settings.ron > \/mnt\/server\/userdata\/server\/server_config\/settings.ron\r\n rm \/tmp\/settings.ron\r\n echo \"config file pulled\"\r\nfi\r\n\r\necho \"-----------------------------------------\"\r\necho \"Installation completed...\"\r\necho \"-----------------------------------------\"",
"container": "ghcr.io\/parkervcp\/installers:debian",
"entrypoint": "bash"
}
},
"variables": [
{
"name": "Version",
"description": "weekly = download the latest weekly build.\r\nnightly = download the latest nightly build.",
"env_variable": "VERSION",
"default_value": "weekly",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|in:weekly,nightly",
"sort": null,
"field_type": "text"
},
{
"name": "Server name",
"description": "The name your server will be displaying",
"env_variable": "SERVER_NAME",
"default_value": "A pterodactyl hosted server",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:64",
"sort": null,
"field_type": "text"
},
{
"name": "Metrics port",
"description": "Game port +1",
"env_variable": "METRICS_PORT",
"default_value": "14005",
"user_viewable": true,
"user_editable": false,
"rules": "required|integer",
"sort": null,
"field_type": "text"
}
]
}