Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
chore: let installation script use lip
Browse files Browse the repository at this point in the history
  • Loading branch information
ShrBox committed Mar 5, 2023
1 parent c015dca commit 3f4e7d9
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions scripts/install.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash
# Install wine
codename=$(lsb_release -c --short)
BDSVER="1.19.63.01"
LLVER="2.11.0"
lip_version=0.12.0

# Install wine
sudo apt install -y wget unzip
sudo dpkg --add-architecture i386
sudo mkdir -pm755 /etc/apt/keyrings
Expand All @@ -11,19 +11,17 @@ sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/
sudo apt update
sudo apt install winehq-stable -y

# Install Bedrock Dedicated Server
wget https://minecraft.azureedge.net/bin-win/bedrock-server-${BDSVER}.zip
unzip bedrock-server-${BDSVER}.zip -d bedrock_server
# Install Lip
wget https://github.com/LiteLDev/Lip/releases/download/v0.12.0/lip-${lip_version}-linux-amd64.tar.gz
tar -xvf lip-${lip_version}-linux-amd64.tar.gz
chmod +x lip-${lip_version}-linux-amd64/lip

# Install BDS
mkdir bedrock_server
cd bedrock_server
wget https://github.com/LiteLDev/docker/raw/main/vcruntime140_1.dll
cd ..
rm bedrock-server-${BDSVER}.zip
./../lip-${lip_version}-linux-amd64/lip install -y bds

# Install LiteLoaderBDS
wget https://github.com/LiteLDev/LiteLoaderBDS/releases/download/${LLVER}/LiteLoaderBDS.zip
unzip LiteLoader.zip -d bedrock_server
rm LiteLoaderBDS.zip
cd bedrock_server
wine LLPeEditor.exe
./../lip-${lip_version}-linux-amd64/lip install ll

echo Done!
echo Done!

0 comments on commit 3f4e7d9

Please sign in to comment.