Skip to content
This repository has been archived by the owner on Feb 28, 2025. It is now read-only.

Commit

Permalink
Update zenmake_for_dev.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
wysh3 authored Feb 7, 2025
1 parent 1eab4eb commit f7bc9b9
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions zenmake_for_dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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..."
Expand Down

0 comments on commit f7bc9b9

Please sign in to comment.