Skip to content

Instantly share code, notes, and snippets.

@directhex
Created April 16, 2018 19:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save directhex/f3fc343d7c96f327ca5cd32a45eaccc9 to your computer and use it in GitHub Desktop.
Save directhex/f3fc343d7c96f327ca5cd32a45eaccc9 to your computer and use it in GitHub Desktop.
#!/bin/sh
set -e
# Automatically added by dh_monoaot
if [ "$1" = "configure" ]
then
MONOARCH=`mono --version | grep Architecture | sed 's/.*: //' | sed 's/el,.*//'`
mkdir -p /usr/lib/mono/aot-cache/${MONOARCH}/
/usr/bin/mono --aot=outfile=/usr/lib/mono/aot-cache/${MONOARCH}/`basename /usr/lib/mono/4.5/mscorlib.dll.so` -O=all /usr/lib/mono/4.5/mscorlib.dll > /dev/null 2>&1 || true
fi
# End automatically added section
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment