Skip to content

Commit 0402970

Browse files
author
WillItMod
committed
Skip upstream native lib build via IsLinux=false
1 parent 1afc934 commit 0402970

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

willitmod-dev-dgb/images/miningcore/Dockerfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,7 @@ RUN set -eux; \
3636

3737
# Publish Miningcore binaries.
3838
WORKDIR /src/src/Miningcore
39-
40-
# Disable upstream BuildNativeLibsLinux target (RandomX/RandomARQ etc) - AxeDGB only needs Scrypt.
41-
RUN perl -0777 -i -pe 's/Condition=\"\\x27\\$\\(IsLinux\\)\\x27 == \\x27true\\x27\"/Condition=\"\\x27\\$\\(IsLinux\\)\\x27 == \\x27true\\x27 and \\x27\\$\\(AXEDGB_SKIP_NATIVE_LIBS\\)\\x27 != \\x27true\\x27\"/g' Miningcore.csproj
42-
43-
RUN dotnet publish -c Release --framework net6.0 -o /out -p:AXEDGB_SKIP_NATIVE_LIBS=true
39+
RUN dotnet publish -c Release --framework net6.0 -o /out -p:IsLinux=false
4440

4541
# Copy native library next to the published binary.
4642
RUN cp /tmp/axedgb-multihash/libmultihash.so /out/libmultihash.so
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
axedgb-0.8.10-r17
1+
axedgb-0.8.10-r18

0 commit comments

Comments
 (0)