Skip to content

Commit dd0e608

Browse files
authored
Merge pull request #44 from libxengine/develop
V3.13 Release
2 parents 082b27c + ef39944 commit dd0e608

File tree

73 files changed

+1388
-436
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+1388
-436
lines changed

.github/workflows/Centos_build.yml

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
name: centos build workflows
2+
3+
on:
4+
push:
5+
branches:
6+
- 'develop'
7+
paths:
8+
- 'XEngine_Source/**'
9+
- 'XEngine_Release/**'
10+
- '.github/**'
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
build:
17+
runs-on: ${{ matrix.runner }}
18+
container:
19+
image: quay.io/centos/centos:${{ matrix.stream }}
20+
options: --platform ${{ matrix.platform }}
21+
strategy:
22+
matrix:
23+
include:
24+
- arch: amd64
25+
runner: ubuntu-24.04
26+
platform: linux/amd64
27+
artifact: x86-64
28+
version: 9
29+
stream: stream9
30+
- arch: amd64
31+
runner: ubuntu-24.04
32+
platform: linux/amd64
33+
artifact: x86-64
34+
version: 10
35+
stream: stream10
36+
- arch: arm64
37+
runner: ubuntu-24.04-arm
38+
platform: linux/arm64
39+
artifact: Arm64
40+
version: 9
41+
stream: stream9
42+
- arch: arm64
43+
runner: ubuntu-24.04-arm
44+
platform: linux/arm64
45+
artifact: Arm64
46+
version: 10
47+
stream: stream10
48+
49+
steps:
50+
- name: Checkout main repository code
51+
uses: actions/checkout@v4
52+
53+
- name: Checkout dependency repository (xengine)
54+
uses: actions/checkout@v4
55+
with:
56+
repository: libxengine/libxengine
57+
path: libxengine
58+
59+
- name: sub module checkout (XEngine_OPenSource)
60+
uses: actions/checkout@v4
61+
with:
62+
repository: libxengine/XEngine_OPenSource
63+
path: XEngine_Source/XEngine_DependLibrary/XEngine_OPenSource
64+
- name: sub module checkout (XEngine_PhoneData)
65+
uses: actions/checkout@v4
66+
with:
67+
repository: libxengine/XEngine_PhoneData
68+
path: XEngine_Source/XEngine_DependLibrary/XEngine_PhoneData
69+
- name: sub module checkout (XEngine_IPMacData)
70+
uses: actions/checkout@v4
71+
with:
72+
repository: libxengine/XEngine_IPMacData
73+
path: XEngine_Source/XEngine_DependLibrary/XEngine_IPMacData
74+
75+
- name: Set TERM variable
76+
run: echo "TERM=xterm" >> $GITHUB_ENV
77+
78+
- name: install system package
79+
run: |
80+
dnf update -y
81+
dnf install gcc g++ make git jq unzip wget -y
82+
83+
- name: install xengine library
84+
run: |
85+
latest_tag=$(curl -s https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
86+
wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_RockyLinux_${{ matrix.version }}_${{ matrix.artifact }}.zip
87+
unzip ./XEngine_RockyLinux_${{ matrix.version }}_${{ matrix.artifact }}.zip -d ./XEngine_RockyLinux_${{ matrix.version }}_${{ matrix.artifact }}
88+
cd XEngine_RockyLinux_${{ matrix.version }}_${{ matrix.artifact }}
89+
90+
chmod 777 *
91+
./XEngine_LINEnv.sh -i 3
92+
93+
- name: install build package
94+
run: |
95+
dnf install lua-devel opencv-devel qrencode-devel leptonica-devel tesseract-devel -y
96+
97+
- name: make
98+
run: |
99+
cd XEngine_Source
100+
make
101+
make FLAGS=InstallAll
102+
make FLAGS=CleanAll
103+
104+
make RELEASE=1
105+
make FLAGS=InstallAll
106+
make FLAGS=CleanAll
107+
- name: test
108+
run: |
109+
cd XEngine_Release
110+
chmod 777 copydb.sh
111+
./copydb.sh
112+
./XEngine_APIServiceApp -t
113+
114+
- name: Upload folder as artifact with CentOS
115+
uses: actions/upload-artifact@v4
116+
with:
117+
name: XEngine_MQServiceApp-CentOS_${{ matrix.version }}_${{ matrix.artifact }}
118+
path: XEngine_Release/
119+
retention-days: 1

.github/workflows/Rocky_build.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,6 @@ jobs:
7575

7676
- name: install system package
7777
run: |
78-
dnf clean all
79-
dnf makecache
80-
dnf distro-sync -y
8178
dnf update -y
8279
dnf install gcc g++ make git jq unzip wget -y
8380
@@ -90,10 +87,11 @@ jobs:
9087
9188
chmod 777 *
9289
./XEngine_LINEnv.sh -i 3
93-
dnf install libavdevice -y
90+
9491
- name: install build package
9592
run: |
9693
dnf install lua-devel opencv-devel qrencode-devel leptonica-devel tesseract-devel -y
94+
9795
- name: make
9896
run: |
9997
cd XEngine_Source

.github/workflows/debian_build.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
build:
1717
runs-on: ${{ matrix.runner }}
1818
container:
19-
image: debian:bookworm
19+
image: debian:${{ matrix.name }}
2020
options: --platform ${{ matrix.platform }}
2121
strategy:
2222
matrix:
@@ -25,6 +25,14 @@ jobs:
2525
runner: ubuntu-24.04
2626
platform: linux/amd64
2727
artifact: x86-64
28+
name: bookworm
29+
version: 12
30+
- arch: amd64
31+
runner: ubuntu-24.04
32+
platform: linux/amd64
33+
artifact: x86-64
34+
name: trixie
35+
version: 13
2836

2937
steps:
3038
- name: Checkout main repository code
@@ -66,9 +74,9 @@ jobs:
6674
- name: install xengine library
6775
run: |
6876
latest_tag=$(curl -s https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
69-
wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_Debian_12_${{ matrix.artifact }}.zip
70-
unzip ./XEngine_Debian_12_${{ matrix.artifact }}.zip -d ./XEngine_Debian_12_${{ matrix.artifact }}
71-
cd XEngine_Debian_12_${{ matrix.artifact }}
77+
wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_Debian_${{ matrix.version }}_${{ matrix.artifact }}.zip
78+
unzip ./XEngine_Debian_${{ matrix.version }}_${{ matrix.artifact }}.zip -d ./XEngine_Debian_${{ matrix.version }}_${{ matrix.artifact }}
79+
cd XEngine_Debian_${{ matrix.version }}_${{ matrix.artifact }}
7280
7381
chmod 777 *
7482
./XEngine_LINEnv.sh -i 3
@@ -93,6 +101,6 @@ jobs:
93101
- name: Upload folder as artifact
94102
uses: actions/upload-artifact@v4
95103
with:
96-
name: XEngine_APIServiceApp-Debian_12_x86-64
104+
name: XEngine_APIServiceApp-Debian_${{ matrix.version }}_x86-64
97105
path: XEngine_Release/
98106
retention-days: 1

.github/workflows/macbuild.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
strategy:
1515
matrix:
1616
include:
17-
- os: macos-13
18-
- os: macos-14
17+
- os: macos-15
18+
- os: macos-15-intel
1919
runs-on: ${{ matrix.os }}
2020

2121
steps:
@@ -44,13 +44,13 @@ jobs:
4444
run: echo "TERM=xterm" >> $GITHUB_ENV
4545

4646
- name: Set up Dependency x86_64 Environment
47-
if: matrix.os == 'macos-13'
47+
if: matrix.os == 'macos-15-intel'
4848
run: |
4949
cd libxengine
5050
chmod 777 *
5151
./XEngine_LINEnv.sh -i 3
5252
- name: Set up Dependency Arm64 Environment
53-
if: matrix.os == 'macos-14'
53+
if: matrix.os == 'macos-15'
5454
run: |
5555
latest_tag=$(git ls-remote --tags --sort="v:refname" https://github.com/libxengine/libxengine.git | awk '{print $2}' | sed 's/refs\/tags\///' | tail -n 1)
5656
wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_Mac_Arm64.zip
@@ -80,14 +80,14 @@ jobs:
8080
./XEngine_APIServiceApp -t
8181
8282
- name: Upload folder as artifact with mac x64
83-
if: matrix.os == 'macos-13'
83+
if: matrix.os == 'macos-15-intel'
8484
uses: actions/upload-artifact@v4
8585
with:
8686
name: XEngine_APIServiceApp-Mac_x86_64
8787
path: XEngine_Release/
8888
retention-days: 1
8989
- name: Upload folder as artifact with mac arm
90-
if: matrix.os == 'macos-14'
90+
if: matrix.os == 'macos-15'
9191
uses: actions/upload-artifact@v4
9292
with:
9393
name: XEngine_APIServiceApp-Mac_Arm64

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,15 @@ jobs:
5252
skip_unpack: true
5353
if_no_artifact_found: fail
5454
path: ./XRelease/
55+
- name: Download CentOS build
56+
uses: dawidd6/action-download-artifact@v11
57+
with:
58+
workflow: Centos_build.yml
59+
workflow_conclusion: success
60+
check_artifacts: false
61+
skip_unpack: true
62+
if_no_artifact_found: fail
63+
path: ./XRelease/
5564
- name: Download macbuild
5665
uses: dawidd6/action-download-artifact@v11
5766
with:

README.en.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ It allows you to save 90% of information service costs in a year.
5959
36. mac address vendor query
6060
37. ORC Get TEXT With image
6161
38. P2P
62+
39. DNS protocol support
6263

6364
## install
6465

@@ -83,12 +84,12 @@ Modify the database configuration in XSQL in the configuration file to your
8384
The default configuration does not enable database support. If the database interface is required, you need to enable the database yourself
8485

8586
#### Windows
86-
need to vcpkg configure third-part env.refer vcpkg install guide.after installed and execution:vcpkg.exe install lua:x86-windows opencv[contrib]:x86-windows libqrencode:x86-windows lua:x64-windows opencv[contrib]:x64-windows libqrencode:x64-windows
87+
need to vcpkg configure third-part env.refer vcpkg install guide.after installed and execution:vcpkg.exe install lua:x86-windows opencv[contrib,freetype]:x86-windows libqrencode:x86-windows lua:x64-windows opencv[contrib,freetype]:x64-windows libqrencode:x64-windows
8788
use vs open and compile,suport windows 7sp1 and above
8889
Just Run it
8990

9091
#### sub module
91-
Due to the dependent sub-modules, after you checkout the warehouse, execute the following command in the warehouse directory to pull the sub-modules
92+
Due to the dependent sub-modules, after you checkout the resprepository, execute the following command in the resprepository directory to pull the sub-modules
9293
git submodule init
9394
git submodule update
9495

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ c c++ interface api service
6262
36. 支持MAC地址厂商查询
6363
37. ORC图像文本提取
6464
38. P2P
65+
39. DNS协议支持
6566

6667
## 安装教程
6768

@@ -86,16 +87,16 @@ macos执行:./XEngine_LINEnv.sh -i 3
8687
默认配置没有开启数据库支持,如果需要数据库接口支持,需要自己开启数据库
8788

8889
#### sub module
89-
由于依赖的子模块,在你checkout仓库后,在仓库目录下执行下面的命令拉取子模块
90+
由于依赖的子模块,在你clone仓库后,在仓库目录下执行下面的命令拉取子模块
9091
git submodule init
9192
git submodule update
9293
如果github访问失败,你也可以clone该项目,在主目录下使用命令:
93-
git clone https://gitee.com/xengine/XEngine_OPenSource.git XEngine_Source/XEngine_Depend
94-
git clone https://gitee.com/xengine/XEngine_IPMacData.git XEngine_Source/XEngine_DBDepend/XEngine_IPMacData
95-
git clone https://gitee.com/xengine/XEngine_PhoneData.git XEngine_Source/XEngine_DBDepend/XEngine_PhoneData
94+
git clone https://gitee.com/xengine/XEngine_OPenSource.git XEngine_Source/XEngine_DependLibrary/XEngine_OPenSource
95+
git clone https://gitee.com/xengine/XEngine_IPMacData.git XEngine_Source/XEngine_DependLibrary/XEngine_IPMacData
96+
git clone https://gitee.com/xengine/XEngine_PhoneData.git XEngine_Source/XEngine_DependLibrary/XEngine_PhoneData
9697

9798
#### Windows
98-
需要vcpkg配置第三方环境,具体参考vcpkg安装方式,安装好后执行:vcpkg.exe install lua:x86-windows opencv[contrib]:x86-windows libqrencode:x86-windows lua:x64-windows opencv[contrib]:x64-windows libqrencode:x64-windows
99+
需要vcpkg配置第三方环境,具体参考vcpkg安装方式,安装好后执行:vcpkg.exe install lua:x86-windows opencv[contrib,freetype]:x86-windows libqrencode:x86-windows lua:x64-windows opencv[contrib,freetype]:x64-windows libqrencode:x64-windows
99100
使用VS打开并且编译,支持WINDOWS 7SP1以上系统
100101
直接运行即可
101102

XEngine_APPClient/APPClient_APIQueryExample/APPClient_APIQueryExample.vcxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@
7171
</ImportGroup>
7272
<PropertyGroup Label="UserMacros" />
7373
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
74-
<IncludePath>$(XEngine_Include);../../XEngine_Source/XEngine_Depend/XEngine_Module/jsoncpp;$(IncludePath)</IncludePath>
74+
<IncludePath>$(XEngine_Include);../../XEngine_Source/XEngine_DependLibrary/XEngine_OPenSource/XEngine_Module/jsoncpp;$(IncludePath)</IncludePath>
7575
<LibraryPath>$(XEngine_Lib32);../../XEngine_Source/Debug;$(LibraryPath)</LibraryPath>
7676
</PropertyGroup>
7777
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
78-
<IncludePath>$(XEngine_Include);../../XEngine_Source/XEngine_Depend/XEngine_Module/jsoncpp;$(IncludePath)</IncludePath>
78+
<IncludePath>$(XEngine_Include);../../XEngine_Source/XEngine_DependLibrary/XEngine_OPenSource/XEngine_Module/jsoncpp;$(IncludePath)</IncludePath>
7979
<LibraryPath>$(XEngine_Lib64);../../XEngine_Source/x64/Debug;$(LibraryPath)</LibraryPath>
8080
</PropertyGroup>
8181
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">

XEngine_APPClient/APPClient_BackExample/APPClient_BackExample.vcxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@
7171
</ImportGroup>
7272
<PropertyGroup Label="UserMacros" />
7373
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
74-
<IncludePath>$(XEngine_Include);../../XEngine_Source/XEngine_Depend/XEngine_Module/jsoncpp;$(IncludePath)</IncludePath>
74+
<IncludePath>$(XEngine_Include);../../XEngine_Source/XEngine_DependLibrary/XEngine_OPenSource/XEngine_Module/jsoncpp;$(IncludePath)</IncludePath>
7575
<LibraryPath>$(XEngine_Lib64);../../XEngine_Source/x64/Debug;$(LibraryPath)</LibraryPath>
7676
</PropertyGroup>
7777
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
78-
<IncludePath>$(XEngine_Include);../../XEngine_Source/XEngine_Depend/XEngine_Module/jsoncpp;$(IncludePath)</IncludePath>
78+
<IncludePath>$(XEngine_Include);../../XEngine_Source/XEngine_DependLibrary/XEngine_OPenSource/XEngine_Module/jsoncpp;$(IncludePath)</IncludePath>
7979
<LibraryPath>$(XEngine_Lib32);../../XEngine_Source/Debug;$(LibraryPath)</LibraryPath>
8080
</PropertyGroup>
8181
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">

XEngine_APPClient/APPClient_BankExample/APPClient_BankExample.vcxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
<PropertyGroup Label="UserMacros" />
7373
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
7474
<LinkIncremental>true</LinkIncremental>
75-
<IncludePath>$(XEngine_Include);../../XEngine_Source/XEngine_Depend/XEngine_Module/jsoncpp;$(IncludePath)</IncludePath>
75+
<IncludePath>$(XEngine_Include);../../XEngine_Source/XEngine_DependLibrary/XEngine_OPenSource/XEngine_Module/jsoncpp;$(IncludePath)</IncludePath>
7676
<LibraryPath>$(XEngine_Lib32);../../XEngine_Source/Debug;$(LibraryPath)</LibraryPath>
7777
</PropertyGroup>
7878
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">

0 commit comments

Comments
 (0)