Skip to content

Commit

Permalink
Use my repo for proot static build (supports riscv64)
Browse files Browse the repository at this point in the history
  • Loading branch information
ysdragon committed Sep 1, 2024
1 parent 2a56cf1 commit 410cea2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ROOTFS_DIR=/home/container

export PATH=$PATH:~/.local/usr/bin

PROOT_VERSION="5.3.0" # Some releases do not have static builds attached.
PROOT_VERSION="5.4.0" # Some releases do not have static builds attached.

# Detect the machine architecture.
ARCH=$(uname -m)
Expand Down Expand Up @@ -232,9 +232,10 @@ fi

# Download static proot.
if [ ! -e "$ROOTFS_DIR/.installed" ]; then
# Download the packages from their sources
# Create "$ROOTFS_DIR/usr/local/bin" dir
mkdir -p "$ROOTFS_DIR/usr/local/bin"
curl -Ls "https://github.com/proot-me/proot/releases/download/v${PROOT_VERSION}/proot-v${PROOT_VERSION}-${ARCH}-static" -o "$ROOTFS_DIR/usr/local/bin/proot"
# Download static proot.
curl -Ls "https://github.com/ysdragon/proot-static/releases/download/v${PROOT_VERSION}/proot-${ARCH}-static" -o "$ROOTFS_DIR/usr/local/bin/proot"
# Make PRoot executable.
chmod 755 "$ROOTFS_DIR/usr/local/bin/proot"
fi
Expand Down

0 comments on commit 410cea2

Please sign in to comment.