Skip to content
This repository has been archived by the owner on Nov 20, 2022. It is now read-only.

Commit

Permalink
Add additional dlls referenced by by netstandard 2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
pchote committed Dec 22, 2020
1 parent 7764c27 commit 502deb1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions package-mono.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,14 @@ cp bin/mono "${BUILDDIR}"
sed "s|\$mono_libdir/||g" etc/mono/config > "${BUILDDIR}/etc/mono/config"
cp etc/mono/4.5/machine.config "${BUILDDIR}/etc/mono/4.5/"

# libmono-native-compat.dylib and netstandard.dll aren't packaged in the mkbundle runtime
# libmono-native-compat.dylib and several facade dlls aren't packaged in the mkbundle runtime
# Copy it from the native mono installation (from travis-ci) instead
cp "/Library/Frameworks/Mono.framework/Versions/${MONO_VERSION}/lib/libmono-native-compat.dylib" "${BUILDDIR}/lib/mono/4.5/"
cp "/Library/Frameworks/Mono.framework/Versions/${MONO_VERSION}/lib/mono/4.5/Facades/netstandard.dll" "${BUILDDIR}/lib/mono/4.5/"
pwd

pushd "/Library/Frameworks/Mono.framework/Versions/${MONO_VERSION}/lib/mono/4.5/Facades" > /dev/null
cp Microsoft.Win32.Registry.dll netstandard.dll System.Security.AccessControl.dll System.Security.Principal.Windows.dll "${BUILDDIR}/lib/mono/4.5/"
popd > /dev/null

# Runtime dependencies
# The required files can be found by running the following in the OpenRA engine directory:
Expand All @@ -36,7 +39,7 @@ pwd
# and looking for extension-less names that are then mapped in etc/mono/config or names that list a .so extension directly.

pushd "lib/mono/4.5" > /dev/null
cp Mono.Security.dll mscorlib.dll System.Configuration.dll System.Core.dll System.dll System.Numerics.dll System.Security.dll System.Xml.dll "${BUILDDIR}/lib/mono/4.5/"
cp Mono.Security.dll mscorlib.dll System.Configuration.dll System.Core.dll System.dll System.Numerics.dll System.Runtime.Serialization.dll System.Security.dll System.Xml.dll System.Xml.Linq.dll "${BUILDDIR}/lib/mono/4.5/"
popd > /dev/null
popd

Expand Down

0 comments on commit 502deb1

Please sign in to comment.