Skip to content

Commit 761a40e

Browse files
committed
add(windows-dev-env): Build linux plugin using docker on windows
1 parent a43bf97 commit 761a40e

File tree

5 files changed

+21
-2
lines changed

5 files changed

+21
-2
lines changed

AMBuildScript

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,6 @@ class MMSPluginConfig(object):
226226
'-fno-strict-aliasing',
227227
'-Wfatal-errors',
228228
'-Wno-uninitialized',
229-
'-Wno-invalid-offsetof',
230229
'-Wno-attributes',
231230
'-Wno-unused',
232231
'-Wno-switch',

build_linux.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docker run --rm -it -v .:/swiftly swiftly:latest

setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ export HL2SDKCS2="$(pwd)/hl2sdk"
55

66
mkdir build
77
cd build
8-
CC=gcc CXX=g++ python3 ../configure.py --plugin-name=swiftly --plugin-alias=swift -s cs2 --targets=x86_64
8+
CC=gcc CXX=g++ python3 ../configure.py --plugin-name=swiftly --plugin-alias=swift -s cs2
99
cd ..

utils/Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM registry.gitlab.steamos.cloud/steamrt/sniper/sdk
2+
3+
LABEL MAINTAINER="SkuZZi <contact@skuzzi.ro>"
4+
5+
WORKDIR /
6+
7+
RUN git clone https://github.com/alliedmodders/ambuild.git
8+
RUN cd ambuild; python setup.py install; cd ..
9+
RUN sudo apt install -y libreadline-dev
10+
11+
CMD [ "/swiftly/utils/setup.sh" ]

utils/setup.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
cd /swiftly
4+
5+
rm -rf build
6+
bash ./setup.sh
7+
cd build
8+
ambuild

0 commit comments

Comments
 (0)