Skip to content

Commit

Permalink
Merge pull request #5 from lichifeng/refactor-2024-linux
Browse files Browse the repository at this point in the history
some fix of workflows
  • Loading branch information
lichifeng authored Feb 8, 2024
2 parents 9bdc9d5 + 10bc0cf commit 261da09
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Project info
project(
MgxParser
VERSION 0.4.4
VERSION 0.4.5
LANGUAGES CXX
HOMEPAGE_URL "https://github.com/lichifeng/MgxParser"
DESCRIPTION "MgxParser is a C++ lib used to parse Age of Empires II game records."
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# **MgxParser**
*This version(0.4.4) was compiled on 20240208*
*This version(0.4.5) was compiled on 20240208*

## Introduction
MgxParser is a C++ lib used to parse Age of Empires II game records.
Expand All @@ -18,7 +18,7 @@ Then, send a record file and a json command to it:
```sh
curl -X POST -F "file=@/path/to/record.mgx" -F "json={\"map\":\"HD\"}" http://localhost:4400/parse
```
To build the docker image manually, use the `Dockerfile` in `docker` directory.
To build the docker image manually, use the `Dockerfile` in root directory.
```sh
docker build -t mgxparser .
docker run -it -p 4400:4400 --rm mgxparser
Expand Down Expand Up @@ -151,7 +151,7 @@ The compiled node addon will be in `build/Release` directory.
A demo of node addon is in `test/node_addon_test.js` directory.

## Version log
- **0.4.4**: Reorganized source code. Refactored `parse()` function. Add node addon support.
- **0.4.5**: Reorganized source code. Refactored `parse()` function. Add node addon support. Add docker workflow.
- **0.4.2**: A version used on aocrec.com before Feb. 2024.
- **0.4.0**: Prepare to go online. Add english language pack. Fixed more bugs.
- **0.3.x**: Bug fix and some changes to meet requirements of mgxhub.
Expand Down
6 changes: 3 additions & 3 deletions src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ replacement of a prior php parser( which was a modified version of recanalyst).
A docker image is available at https://hub.docker.com/r/lichifeng/mgxparser
Just pull and run it, send a record file to it and get a JSON response.
```sh
docker pull ageofempires/mgxparser
docker pull lichifeng/mgxparser
docker run -e MAX_CONNECTIONS=100 -p 4400:4400 lichifeng/mgxparser
```
Then, send a record file and a json command to it:
```sh
curl -X POST -F "file=@/path/to/record.mgx" -F "json={\"map\":\"HD\"}" http://localhost:4400/parse
```
To build the docker image manually, use the `Dockerfile` in `docker` directory.
To build the docker image manually, use the `Dockerfile` in root directory.
```sh
docker build -t mgxparser .
docker run -it -p 4400:4400 --rm mgxparser
Expand Down Expand Up @@ -151,7 +151,7 @@ The compiled node addon will be in `build/Release` directory.
A demo of node addon is in `test/node_addon_test.js` directory.

## Version log
- **0.4.4**: Reorganized source code. Refactored `parse()` function. Add node addon support.
- **0.4.5**: Reorganized source code. Refactored `parse()` function. Add node addon support. Add docker workflow.
- **0.4.2**: A version used on aocrec.com before Feb. 2024.
- **0.4.0**: Prepare to go online. Add english language pack. Fixed more bugs.
- **0.3.x**: Bug fix and some changes to meet requirements of mgxhub.
Expand Down

0 comments on commit 261da09

Please sign in to comment.