From 8269f8f886db877c868059d97a851bdbbf7d4a4a Mon Sep 17 00:00:00 2001 From: mattman107 <65982675+mattman107@users.noreply.github.com> Date: Fri, 5 Apr 2024 23:30:58 -0400 Subject: [PATCH 1/3] Create eggbattle-for-wesnoth.json --- .../eggbattle-for-wesnoth.json | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 game_eggs/The Battle For Wesnoth/eggbattle-for-wesnoth.json diff --git a/game_eggs/The Battle For Wesnoth/eggbattle-for-wesnoth.json b/game_eggs/The Battle For Wesnoth/eggbattle-for-wesnoth.json new file mode 100644 index 00000000..e877e88d --- /dev/null +++ b/game_eggs/The Battle For Wesnoth/eggbattle-for-wesnoth.json @@ -0,0 +1,31 @@ +{ + "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO", + "meta": { + "version": "PTDL_v2", + "update_url": null + }, + "exported_at": "2024-04-05T23:27:52-04:00", + "name": "Battle for Wesnoth", + "author": "mattman107@github.com", + "description": "Egg for hosting a Battle for Wesnoth Server.", + "features": null, + "docker_images": { + "ghcr.io\/parkervcp\/yolks:debian": "ghcr.io\/parkervcp\/yolks:debian" + }, + "file_denylist": [], + "startup": ".\/battleForWesnoth\/build\/wesnothd", + "config": { + "files": "{}", + "startup": "{}", + "logs": "{}", + "stop": "^C" + }, + "scripts": { + "installation": { + "script": "#!\/bin\/bash\r\n\r\n# Install build tools\r\necho \"deb http:\/\/deb.debian.org\/debian bullseye-backports main\" >> \/etc\/apt\/sources.list && \\\r\napt-get update && apt-get -y full-upgrade && \\\r\n apt-get install -y libboost-filesystem-dev libboost-iostreams-dev libboost-locale-dev libboost-random-dev libboost-regex-dev libboost-program-options-dev libboost-system-dev libboost-coroutine-dev libboost-graph-dev \\\r\n libsdl2-dev libcurl4-openssl-dev libcairo2-dev libvorbis-dev libbz2-dev zlib1g-dev libssl-dev libcrypto++-dev openssl cmake g++ libsdl2-image-dev libsdl2-mixer-dev libsdl-pango-dev\r\n\r\nif [ ! -d \"\/mnt\/server\/battleForWesnoth\" ]; then\r\n \r\n #clone code repo\r\n git clone --recurse-submodules https:\/\/github.com\/wesnoth\/wesnoth \/mnt\/server\/battleForWesnoth\r\n \r\n # go into the stk-code directory\r\n cd \/mnt\/server\/battleForWesnoth\r\n \r\n # create the build directory\r\n #mkdir build\r\n \r\nelse\r\n git config --global --add safe.directory \/mnt\/server\/battleForWesnoth\r\n #update existing stuff\r\n cd \/mnt\/server\/battleForWesnoth\r\n git pull\r\n git submodule update --init --recursive\r\n\r\n\r\nfi\r\n\r\n#build the server\r\n#cd build\r\ncmake . -DCMAKE_BUILD_TYPE=Release\r\nsed -i 's\/ENABLE_GAME:BOOL=ON\/ENABLE_GAME:BOOL=OFF\/' \/mnt\/server\/battleForWesnoth\/CMakeCache.txt\r\nmake\r\nchmod +x .\/wesnothd", + "container": "ghcr.io\/parkervcp\/installers:debian", + "entrypoint": "bash" + } + }, + "variables": [] +} From e09397ff48c5dc1c46f7a125652ae41caa1afa38 Mon Sep 17 00:00:00 2001 From: mattman107 <65982675+mattman107@users.noreply.github.com> Date: Fri, 5 Apr 2024 23:33:50 -0400 Subject: [PATCH 2/3] Rename eggbattle-for-wesnoth.json to egg-battle-for-wesnoth.json --- .../{eggbattle-for-wesnoth.json => egg-battle-for-wesnoth.json} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename game_eggs/The Battle For Wesnoth/{eggbattle-for-wesnoth.json => egg-battle-for-wesnoth.json} (100%) diff --git a/game_eggs/The Battle For Wesnoth/eggbattle-for-wesnoth.json b/game_eggs/The Battle For Wesnoth/egg-battle-for-wesnoth.json similarity index 100% rename from game_eggs/The Battle For Wesnoth/eggbattle-for-wesnoth.json rename to game_eggs/The Battle For Wesnoth/egg-battle-for-wesnoth.json From 74b7196d81602e6b3ac3de01f31c0741ab65ec57 Mon Sep 17 00:00:00 2001 From: mattman107 <65982675+mattman107@users.noreply.github.com> Date: Fri, 5 Apr 2024 23:52:29 -0400 Subject: [PATCH 3/3] Update egg-battle-for-wesnoth.json --- game_eggs/The Battle For Wesnoth/egg-battle-for-wesnoth.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game_eggs/The Battle For Wesnoth/egg-battle-for-wesnoth.json b/game_eggs/The Battle For Wesnoth/egg-battle-for-wesnoth.json index e877e88d..895b6d26 100644 --- a/game_eggs/The Battle For Wesnoth/egg-battle-for-wesnoth.json +++ b/game_eggs/The Battle For Wesnoth/egg-battle-for-wesnoth.json @@ -13,7 +13,7 @@ "ghcr.io\/parkervcp\/yolks:debian": "ghcr.io\/parkervcp\/yolks:debian" }, "file_denylist": [], - "startup": ".\/battleForWesnoth\/build\/wesnothd", + "startup": ".\/battleForWesnoth\/wesnothd", "config": { "files": "{}", "startup": "{}",