forked from Vanilla-OS/apx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
30 lines (22 loc) · 979 Bytes
/
install.sh
File metadata and controls
30 lines (22 loc) · 979 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
echo "Please enter or create a working directory."
read -r WORK_DIR
mkdir -p "$WORK_DIR" # Creates the working directory if non existing
cd "$WORK_DIR"
curl -LO https://github.com/89luca89/distrobox/archive/refs/tags/1.7.2.1.tar.gz
tar -xzf 1.7.2.1.tar.gz
curl -LO https://github.com/Vanilla-OS/apx/releases/download/continuous/apx.tar.gz
tar -xzf apx.tar.gz
mv apx "$HOME/.local/bin/apx2"
chmod +x "$HOME/.local/bin/apx2"
mkdir -p "$HOME/.config/apx"
echo '{
"apxPath": "'"$HOME/.local/share/apx/"'",
"distroboxpath": "'"$WORK_DIR/distrobox-1.7.2.1/distrobox"'",
"storageDriver": "btrfs"
}' > "$HOME/.config/apx/apx.json"
git clone https://github.com/Vanilla-OS/vanilla-apx-configs.git "$WORK_DIR/vanilla-apx-configs"
mv "$WORK_DIR/vanilla-apx-configs/stacks" "$HOME/.local/share/apx/"
mv "$WORK_DIR/vanilla-apx-configs/package-managers" "$HOME/.local/share/apx/"
echo "Installation completed. You can now use Apx v2 by running 'apx2'."
apx2 --version