From f7bc9b9390a3a0bc6de23ed8379ab29278400950 Mon Sep 17 00:00:00 2001 From: wysh Date: Sat, 8 Feb 2025 00:20:12 +0530 Subject: [PATCH] Update zenmake_for_dev.sh --- zenmake_for_dev.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/zenmake_for_dev.sh b/zenmake_for_dev.sh index 4336d07..dfaa1ff 100644 --- a/zenmake_for_dev.sh +++ b/zenmake_for_dev.sh @@ -68,17 +68,17 @@ if ! command_exists tar; then fi fi -# Check for bzip2 -if ! command_exists bzip2; then - echo "bzip2 not found, installing..." +# Check for xz-utils +if ! command_exists xz; then + echo "xz-utils not found, installing..." if command_exists apt-get; then - sudo apt-get update && sudo apt-get install -y bzip2 + sudo apt-get update && sudo apt-get install -y xz-utils elif command_exists yum; then - sudo yum install -y bzip2 + sudo yum install -y xz elif command_exists pacman; then - sudo pacman -S --noconfirm bzip2 + sudo pacman -S --noconfirm xz else - echo "Error: Unable to install bzip2, please install it manually." + echo "Error: Unable to install xz-utils, please install it manually." exit 1 fi fi @@ -100,10 +100,10 @@ done # Download Linux release and extract it echo "Downloading Linux release..." -curl -s https://api.github.com/repos/zen-browser/desktop/releases/latest | jq -r '.assets[] | select(.name == "zen.linux-x86_64.tar.bz2") | .browser_download_url' | xargs curl -LO +curl -s https://api.github.com/repos/zen-browser/desktop/releases/latest | jq -r '.assets[] | select(.name == "zen.linux-x86_64.tar.xz") | .browser_download_url' | xargs curl -LO echo "Extracting Linux release..." -tar -xjvf zen.linux-x86_64.tar.bz2 -C zen-linux-portable/app/lin -tar -xjvf zen.linux-x86_64.tar.bz2 -C zen-portable/app/lin +tar -xJvf zen.linux-x86_64.tar.xz -C zen-linux-portable/app/lin +tar -xJvf zen.linux-x86_64.tar.xz -C zen-portable/app/lin # Process Linux files for dir in zen-linux-portable zen-portable; do @@ -211,7 +211,7 @@ EOF # Clean up downloaded files echo "Cleaning up downloaded files..." -rm -f zen.installer.exe zen.linux-x86_64.tar.bz2 +rm -f zen.installer.exe zen.linux-x86_64.tar.xz # Create zip archives for all versions echo "Creating zip archives..."