Commit 88419085 authored by nanahira's avatar nanahira

egg config

parent 32325d7e
{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
"meta": {
"version": "PTDL_v1"
},
"exported_at": "2019-08-29T02:32:05+00:00",
"name": "SRVPro",
"author": "unknown@unknown.com",
"description": "A YGOPro Server.",
"image": "mycard\/srvpro-pterodactyl",
"startup": "cd \/home\/container\/windbot && git fetch origin master && git reset --hard FETCH_HEAD && xbuild \/property:Configuration=Release \/property:TargetFrameworkVersion=v4.5 && cd \/home\/container\/ygopro && git fetch origin server && git reset --hard FETCH_HEAD && git submodule foreach git fetch origin master && git submodule foreach git reset --hard FETCH_HEAD && .\/premake5 gmake && cd build && make config=release && cd .. && strip ygopro && cd \/home\/container\/ygopro-server && git fetch origin master && git reset --hard FETCH_HEAD && npm install && node ygopro-server.js",
"config": {
"files": "{\r\n \"config\/config.json\": {\r\n \"parser\": \"json\",\r\n \"find\": {\r\n \"port\": \"{{server.build.default.port}}\",\r\n \"modules.welcome\": \"{{env.WELCOME}}\",\r\n \"modules.windbot.spawn\": true,\r\n \"modules.http.port\": \"{{env.HTTP_PORT}}\"\r\n }\r\n }\r\n}",
"startup": "{\r\n \"done\": \"server started\",\r\n \"userInteraction\": []\r\n}",
"logs": "{}",
"stop": "^C"
},
"scripts": {
"installation": {
"script": "#!\/bin\/bash\r\ncd \/home\/container\r\n\r\ngit clone https:\/\/github.com\/moecube\/ygopro --branch=server --recursive\r\ncd ygopro\/\r\ngit submodule foreach git checkout master\r\nwget -O - https:\/\/github.com\/premake\/premake-core\/releases\/download\/v5.0.0-alpha13\/premake-5.0.0-alpha13-linux.tar.gz | tar zfx -\r\n.\/premake5 gmake\r\ncd build\/\r\nmake config=release\r\ncd ..\r\nln -s bin\/release\/ygopro .\/\r\nstrip ygopro\r\nmkdir replay\r\ncd ..\r\n\r\ngit clone https:\/\/github.com\/moecube\/windbot\r\ncd windbot\r\nxbuild \/property:Configuration=Release \/property:TargetFrameworkVersion=v4.5\r\nln -s bin\/Release\/WindBot.exe .\r\nln -s ..\/ygopro\/cards.cdb .\r\ncd ..\r\n\r\ngit clone https:\/\/github.com\/moecube\/srvpro ygopro-server\r\ncd ygopro-server\r\nnpm ci\r\nln -s ..\/ygopro .\r\nln -s ..\/windbot .\r\nmkdir config plugins decks replays\r\ncp data\/default_config.json config\/config.json\r\ncd ..",
"container": "mycard\/srvpro-pterodactyl",
"entrypoint": "bash"
}
},
"variables": [
{
"name": "Welcome Message",
"description": "The welcome message displayed when entering the server.",
"env_variable": "WELCOME",
"default_value": "MyCard YGOPro Server",
"user_viewable": 1,
"user_editable": 1,
"rules": "required|string"
},
{
"name": "HTTP Port",
"description": "The port for HTTP API used for SRVPro Dashboard at http:\/\/srvpro.ygo233.com\/dashboard.html. Please set this value same to the other allocated port.",
"env_variable": "HTTP_PORT",
"default_value": "7922",
"user_viewable": 1,
"user_editable": 0,
"rules": "required|integer"
}
]
}
{
"config/config.json": {
"parser": "json",
"find": {
"port": "{{server.build.default.port}}",
"modules.welcome": "{{env.WELCOME}}",
"modules.windbot.spawn": true,
"modules.http.port": "{{env.HTTP_PORT}}"
}
}
}
#!/bin/bash
cd /home/container/windbot
git fetch origin master
git reset --hard FETCH_HEAD
xbuild /property:Configuration=Release /property:TargetFrameworkVersion=v4.5
cd /home/container/ygopro
git fetch origin server
git reset --hard FETCH_HEAD
git submodule foreach git fetch origin master
git submodule foreach git reset --hard FETCH_HEAD
./premake5 gmake
cd build
make config=release
cd ..
strip ygopro
cd /home/container/ygopro-server
git fetch origin master
git reset --hard FETCH_HEAD
npm install
node ygopro-server.js
cd /home/container/windbot && git fetch origin master && git reset --hard FETCH_HEAD && xbuild /property:Configuration=Release /property:TargetFrameworkVersion=v4.5 && cd /home/container/ygopro && git fetch origin server && git reset --hard FETCH_HEAD && git submodule foreach git fetch origin master && git submodule foreach git reset --hard FETCH_HEAD && ./premake5 gmake && cd build && make config=release && cd .. && strip ygopro && cd /home/container/ygopro-server && git fetch origin master && git reset --hard FETCH_HEAD && npm install && node ygopro-server.js
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment