forked from iboughtvip/Test
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·23 lines (20 loc) · 768 Bytes
/
install.sh
File metadata and controls
executable file
·23 lines (20 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
if [ "$(uname)" != "Darwin" ]; then
echo "This script is intended for macOS only."
exit 1
fi
mkdir -p "/tmp/CleanUI"
if [ ! -d "/Applications/CleanUI.app" ]; then
echo "CleanUI is not installed. Proceeding with installation."
else
echo "CleanUI is already installed. Deleting.."
rm -rf "/Applications/CleanUI.app"
echo "CleanUI has been deleted. Proceeding with installation."
fi
echo "Downloading CleanUI..."
curl -L -o "/tmp/CleanUI/CleanUI.zip" "https://github.com/ModdGodd/CleanUI/releases/download/v0.1.0/CleanUI-0.1.0-arm64-mac.zip"
echo "Extracting CleanUI..."
unzip -o "/tmp/CleanUI/CleanUI.zip" -d "/tmp/CleanUI"
mv -f "/tmp/CleanUI/CleanUI.app" "/Applications"
rm -rf "/tmp/CleanUI"
echo "CleanUI has been successfully installed!"