mycroforge/MycroForge.CLI/scripts/install.sh

16 lines
404 B
Bash

#!/usr/bin/bash
TARGET=$1
if [ -z "$TARGET" ]; then
echo "The target platform was not provided."
exit 1
fi
dotnet publish --self-contained -r linux-x64
zip -vr releases/m4g-linux.zip bin/Release/net8.0/linux-x64/
#sudo rm -rf /usr/share/m4g
#sudo cp -r bin/Release/net8.0/linux-x64 /usr/share/m4g
#sudo unlink /usr/local/bin/m4g
#sudo ln -s /usr/share/m4g/MycroForge.CLI /usr/local/bin/m4g