Added additional install script
This commit is contained in:
parent
67b7dba341
commit
5e5ea0445e
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/bash
|
#!/usr/bin/bash
|
||||||
|
|
||||||
TARGET=$1
|
TARGET=$1
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/bash
|
#!/usr/bin/bash
|
||||||
|
|
||||||
./scripts/build-executable.sh linux-x64
|
./scripts/build-executable.sh linux-x64
|
||||||
./scripts/build-executable.sh linux-arm
|
./scripts/build-executable.sh linux-arm
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/bash
|
#!/usr/bin/bash
|
||||||
|
|
||||||
ZIP=$1
|
ZIP=$1
|
||||||
if [ -z "$ZIP" ]; then
|
if [ -z "$ZIP" ]; then
|
||||||
|
19
MycroForge.CLI/scripts/install2.sh
Normal file
19
MycroForge.CLI/scripts/install2.sh
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#!/usr/bin/bash
|
||||||
|
|
||||||
|
ZIP=$1
|
||||||
|
if [ -z "$ZIP" ]; then
|
||||||
|
echo "The zip file was not provided."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
TARGET=${ZIP//"m4g-"/}
|
||||||
|
TARGET=${TARGET//".zip"/}
|
||||||
|
|
||||||
|
DIR="/tmp/m4g"
|
||||||
|
|
||||||
|
rm -rf "$DIR"
|
||||||
|
unzip "$ZIP" -d "$DIR"
|
||||||
|
|
||||||
|
sudo rm -rf /usr/local/bin/m4g
|
||||||
|
sudo cp -r "$DIR/bin/Release/net8.0/$TARGET" /usr/local/bin/m4g
|
||||||
|
mv /usr/share/m4g/MycroForge.CLI /usr/share/m4g/m4g
|
Loading…
Reference in New Issue
Block a user