Commit 8644512c authored by mercury233's avatar mercury233

readme and appveyor

parent b180e1c9
## ygopro(server) ## YGOPro(Server)
一个linux版的ygopro服务端,基于mycard代码修改。 [![Build status](https://ci.appveyor.com/api/projects/status/qgkqi6o0wq7qn922/branch/server?svg=true)](https://ci.appveyor.com/project/zh99998/ygopro/branch/server)
现用于[YGOPRO 233服](http://mercury233.me/ygosrv233/) 一个YGOPro的服务端版本,运行后自动建立主机,并开启端口供YGOPro客户端连接
###编译 现用于[萌卡](https://mycard.moe/)[YGOPRO 233服](http://mercury233.me/ygosrv233/)
###Linux下编译
* 需要以下组件或工具 * 需要以下组件或工具
* gcc * gcc
* premake4 * premake4
* libevent * libevent
* sqlite3
* lua5.2 * lua5.2
* sqlite3
* 可参考 https://github.com/mercury233/ygopro-server/wiki 中的脚本 * 可参考 https://github.com/mercury233/ygopro-server/wiki 中的脚本
###Windows下编译
* 需要以下组件或工具
* Visual Studio
* premake5
* libevent
* lua5.2
* sqlite3
* dirent for windows
* 可参考本项目 [appveyor.yml](https://github.com/mycard/ygopro/blob/server/appveyor.yml) 中的脚本
###运行 ###运行
* 使用[ygopro-server-lite](https://github.com/mercury233/ygopro-server)运行 * 使用[ygopro-server](https://github.com/mycard/ygopro-server)运行
* 手动运行的参数是 * 手动运行的参数是
* ./ygopro 0 0 0 1 F F F 8000 5 1 180 0 * ./ygopro 0 0 0 1 F F F 8000 5 1 180 0
* 端口(0为随机) * 端口(0为随机)
......
version: '{build}' version: '{build}'
install: install:
- git submodule update --init --recursive - git submodule update --init --recursive
# environment and system dependency # environment and system dependency
- appveyor DownloadFile https://github.com/premake/premake-core/releases/download/v5.0.0-alpha10/premake-5.0.0-alpha10-windows.zip - bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://github.com/premake/premake-core/releases/download/v5.0.0-alpha10/premake-5.0.0-alpha10-windows.zip ; exit 0"
- 7z x premake-5.0.0-alpha10-windows.zip - 7z x premake-5.0.0-alpha10-windows.zip
- appveyor DownloadFile https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz - bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz ; exit 0"
- tar xf libevent-2.0.22-stable.tar.gz - tar xf libevent-2.0.22-stable.tar.gz
- move libevent-2.0.22-stable event - move libevent-2.0.22-stable event
- xcopy /E event\WIN32-Code event\include - xcopy /E event\WIN32-Code event\include
- appveyor DownloadFile https://www.lua.org/ftp/lua-5.2.4.tar.gz - bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://www.lua.org/ftp/lua-5.2.4.tar.gz ; exit 0"
- tar xf lua-5.2.4.tar.gz - tar xf lua-5.2.4.tar.gz
- move lua-5.2.4\src lua - move lua-5.2.4\src lua
- appveyor DownloadFile https://www.sqlite.org/2016/sqlite-amalgamation-3150200.zip - bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://www.sqlite.org/2016/sqlite-amalgamation-3150200.zip ; exit 0"
- 7z x sqlite-amalgamation-3150200.zip - 7z x sqlite-amalgamation-3150200.zip
- move sqlite-amalgamation-3150200 sqlite3 - move sqlite-amalgamation-3150200 sqlite3
...@@ -29,11 +30,22 @@ install: ...@@ -29,11 +30,22 @@ install:
- premake5 vs2015 - premake5 vs2015
configuration: Release configuration: Release
build: build:
project: build/ygo.sln project: build/ygo.sln
parallel: true parallel: true
after_build: after_build:
- ps: move bin\release\ygopro.exe . - ps: move bin\release\ygopro.exe .
test: off
artifacts: artifacts:
- path: ygopro.exe - path: ygopro.exe
name: ygopro(server) name: ygopro(server)
cache:
- premake-5.0.0-alpha10-windows.zip
- libevent-2.0.22-stable.tar.gz
- lua-5.2.4.tar.gz
- sqlite-amalgamation-3150200.zip
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