diff --git a/MycroForge.CLI/scripts/publish.sh b/MycroForge.CLI/scripts/publish-dotnet.sh similarity index 100% rename from MycroForge.CLI/scripts/publish.sh rename to MycroForge.CLI/scripts/publish-dotnet.sh diff --git a/MycroForge.CLI/scripts/publish-linux.sh b/MycroForge.CLI/scripts/publish-linux.sh new file mode 100644 index 0000000..03b3e61 --- /dev/null +++ b/MycroForge.CLI/scripts/publish-linux.sh @@ -0,0 +1,6 @@ +#!/usr/bin/bash + +# Make sure to run this script form the MyrcoForge.CLI directory with sudo! +dotnet publish --self-contained -r linux-x64 +sudo cp bin/Release/net8.0/linux-x64 /usr/share/m4g +sudo ln -s /usr/share/m4g/MycroForge.CLI /usr/bin/local/m4g