From 86ec63512ad85239a979d8ce0214931c4a73406f Mon Sep 17 00:00:00 2001 From: Quinten <67589015+QuintenQVD0@users.noreply.github.com> Date: Wed, 26 Oct 2022 17:04:21 +0200 Subject: [PATCH] Update LeagueSandbox_Egg.json --- .../leaguesandbox/LeagueSandbox_Egg.json | 31 ++++++++----------- 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/game_eggs/leaguesandbox/LeagueSandbox_Egg.json b/game_eggs/leaguesandbox/LeagueSandbox_Egg.json index 73ce9a95..1825e3f1 100644 --- a/game_eggs/leaguesandbox/LeagueSandbox_Egg.json +++ b/game_eggs/leaguesandbox/LeagueSandbox_Egg.json @@ -1,14 +1,19 @@ { "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO", "meta": { - "version": "PTDL_v1" + "version": "PTDL_v2", + "update_url": null }, - "exported_at": "2020-11-10T17:07:44-05:00", + "exported_at": "2022-07-20T18:39:16+02:00", "name": "LeagueSandbox", "author": "domi@imagine.team", "description": "A simple egg to run LeagueSandbox server in pterodactyl", - "image": "quay.io\/parkervcp\/pterodactyl-images:debian_dotnet", - "startup": ".\/GameServerConsole", + "features": null, + "docker_images": { + "ghcr.io\/parkervcp\/yolks:dotnet_6": "ghcr.io\/parkervcp\/yolks:dotnet_6" + }, + "file_denylist": [], + "startup": ".\/GameServerConsole --port {{SERVER_PORT}}", "config": { "files": "{}", "startup": "{\r\n \"done\": \"Game is ready.\"\r\n}", @@ -17,20 +22,10 @@ }, "scripts": { "installation": { - "script": "apk update && apk add git\r\ngit clone $GIT_URL\r\nrm .git -rf\r\ncd GameServer\r\ngit submodule init\r\ngit submodule update\r\ndotnet build .\r\ncp -r GameServerConsole\/bin\/Debug\/netcoreapp3.0\/* \/mnt\/server\/\r\ncp -r Content \/mnt\/server\/Content", - "container": "mcr.microsoft.com\/dotnet\/sdk:5.0", + "script": "#!\/bin\/bash\r\n\r\napt update\r\napt install -y zip unzip jq curl wget git\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n\r\ngit clone https:\/\/github.com\/LeagueSandbox\/GameServer.git\r\nrm .git -rf\r\n\r\ncd GameServer\/\r\n\r\ngit submodule init\r\ngit submodule update\r\n\r\n#wget https:\/\/packages.microsoft.com\/config\/debian\/11\/packages-microsoft-prod.deb -O packages-microsoft-prod.deb\r\n#dpkg -i packages-microsoft-prod.deb\r\n#rm packages-microsoft-prod.deb\r\n#apt-get update\r\n#apt-get install -y apt-transport-https\r\n#apt-get update\r\n#apt-get install -y dotnet-sdk-5.0\r\n\r\ndotnet build .\r\ncp -r GameServerConsole\/bin\/Debug\/net6.0\/* \/mnt\/server\/\r\ncp -r Content \/mnt\/server\/Content\r\necho \"done\"", + "container": "bitnami\/dotnet-sdk:6-debian-11", "entrypoint": "bash" } }, - "variables": [ - { - "name": "Git Url", - "description": "This is where the install script will clone the server files from", - "env_variable": "GIT_URL", - "default_value": "https:\/\/github.com\/LeagueSandbox\/GameServer", - "user_viewable": true, - "user_editable": false, - "rules": "required|string|max:90|url" - } - ] -} \ No newline at end of file + "variables": [] +}