#!/bin/sh
SCRIPTDIR="$( cd "$( dirname "$0" )" && pwd )"
dlldir=$SCRIPTDIR
cd `dirname $0`
get_arch=`arch`
if [[ $get_arch =~ "x86_64" ]];then
echo "this is x86_64"
elif [[ $get_arch =~ "aarch64" ]];then
echo "this is arm64"
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$dlldir/runtimes/arm
elif [[ $get_arch =~ "mips64" ]];then
echo "this is mips64"
else
echo "unknown!!"
fi
dotnet Webapi.dll
sh脚本格式严格要求,所有再放个实例文件,下载地址