Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made a script that when you run it will install APX 2.0 #261

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,13 @@ make install DESTDIR=$HOME/altroot
make install-manpages DESTDIR=$HOME/altroot
```


### Installing using or script
GabsEdits marked this conversation as resolved.
Show resolved Hide resolved
This script installs Apx automatically when you run the script, just make sure you have `curl` and `git` installed, once you do clone this project and run the shell script
```bash
bash <(curl -s https://raw.githubusercontent.com/Vanilla-OS/apx/v2/install.sh)
```

## Community Packages

Apx is packaged in various sources by our community, if you aren't comfortable with building `apx` manually you can install a package listed below.
Expand Down
30 changes: 30 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash

echo "Please enter or create a working directory:"
GabsEdits marked this conversation as resolved.
Show resolved Hide resolved
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.5.0.2.tar.gz
tar -xzf 1.5.0.2.tar.gz
GabsEdits marked this conversation as resolved.
Show resolved Hide resolved

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.5.0.2/distrobox"'",
GabsEdits marked this conversation as resolved.
Show resolved Hide resolved
"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