Skip to content

Commit

Permalink
fix for apphost in sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
sec committed Aug 22, 2024
1 parent 5ec46c3 commit bdb7dc7
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion bsd_dotnet_install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/csh

# Fake .NET Core Installer for FreeBsd ;)
# $1 - SDK BIN for FreeBSD
Expand All @@ -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

0 comments on commit bdb7dc7

Please sign in to comment.