From bdb7dc73353947a7dab5becf00ff2339e2507eeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szczepan=20=C4=86wikli=C5=84ski?= Date: Thu, 22 Aug 2024 18:44:41 +0200 Subject: [PATCH] fix for apphost in sdk --- bsd_dotnet_install.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/bsd_dotnet_install.sh b/bsd_dotnet_install.sh index cdbe202ac82..0a368fc1d1f 100755 --- a/bsd_dotnet_install.sh +++ b/bsd_dotnet_install.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/csh # Fake .NET Core Installer for FreeBsd ;) # $1 - SDK BIN for FreeBSD @@ -9,4 +9,13 @@ echo Extracting .NET Core SDK into $2... mkdir -p $2/.dotnet tar zxf $1 --directory $2/.dotnet elfctl -e +noaslr $2/.dotnet/dotnet + +if (`uname -m` == "arm64") then + setenv ARCH arm64 +else + setenv ARCH x64 +endif + +sed -i '' -e 's/linux-x64/freebsd-$ARCH/' $2/.dotnet/sdk/9.0.100-preview.7.24407.12/Microsoft.NETCoreSdk.BundledVersions.props + echo 'exit 0' > $2/.dotnet/dotnet-install.sh