Skip to content

Commit

Permalink
Update build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
khcrysalis authored Mar 25, 2024
1 parent 5fd5a5c commit 8a8a614
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,25 +49,25 @@ done
# Install dependencies to build palen1x
apt-get update
apt-get install -y --no-install-recommends wget gawk debootstrap mtools xorriso ca-certificates curl libusb-1.0-0-dev gcc make gzip xz-utils unzip libc6-dev

download_version=$(curl -s https://api.github.com/repos/palera1n/palera1n/releases | grep -m 1 -o '"tag_name": "[^"]*' | sed 's/"tag_name": "//')
# Get proper files
if [ "$1" = "RELEASE" ]; then
case "$ARCH" in
'amd64')
ROOTFS='https://dl-cdn.alpinelinux.org/alpine/v3.17/releases/x86_64/alpine-minirootfs-3.17.3-x86_64.tar.gz'
PALERA1N="https://github.com/palera1n/palera1n/releases/download/v2.0.0-beta.8/palera1n-linux-x86_64"
PALERA1N="https://github.com/palera1n/palera1n/releases/download/$(download_version)/palera1n-linux-x86_64"
;;
'i686')
ROOTFS='https://dl-cdn.alpinelinux.org/alpine/v3.17/releases/x86/alpine-minirootfs-3.17.3-x86.tar.gz'
PALERA1N="https://github.com/palera1n/palera1n/releases/download/v2.0.0-beta.8/palera1n-linux-x86"
PALERA1N="https://github.com/palera1n/palera1n/releases/download/$(download_version)/palera1n-linux-x86"
;;
'aarch64')
ROOTFS='https://dl-cdn.alpinelinux.org/alpine/v3.17/releases/aarch64/alpine-minirootfs-3.17.3-aarch64.tar.gz'
PALERA1N="https://github.com/palera1n/palera1n/releases/download/v2.0.0-beta.8/palera1n-linux-arm64"
PALERA1N="https://github.com/palera1n/palera1n/releases/download/$(download_version)/palera1n-linux-arm64"
;;
'armv7')
ROOTFS='https://dl-cdn.alpinelinux.org/alpine/v3.17/releases/armv7/alpine-minirootfs-3.17.3-armv7.tar.gz'
PALERA1N="https://github.com/palera1n/palera1n/releases/download/v2.0.0-beta.8/palera1n-linux-armel"
PALERA1N="https://github.com/palera1n/palera1n/releases/download/$(download_version)/palera1n-linux-armel"
;;
esac
echo "INFO: RELEASE CHOSEN"
Expand Down

0 comments on commit 8a8a614

Please sign in to comment.