From 539e7ca021e0b8d0b84943e2a99cf36ef2201d1b Mon Sep 17 00:00:00 2001 From: Gabriel Cozma Date: Sun, 16 Jul 2023 13:25:25 +0300 Subject: [PATCH 1/6] Created the automated script --- install-apx2.sh | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 install-apx2.sh diff --git a/install-apx2.sh b/install-apx2.sh new file mode 100644 index 00000000..b5d77f0b --- /dev/null +++ b/install-apx2.sh @@ -0,0 +1,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.5.0.2.tar.gz +tar -xzf 1.5.0.2.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.5.0.2/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 From 6dfbea464c6481820c59a534bfefc7e99d176cbb Mon Sep 17 00:00:00 2001 From: Gabriel Cozma Date: Sun, 16 Jul 2023 13:26:18 +0300 Subject: [PATCH 2/6] Rename install-apx2.sh to install.sh --- install-apx2.sh => install.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename install-apx2.sh => install.sh (100%) diff --git a/install-apx2.sh b/install.sh similarity index 100% rename from install-apx2.sh rename to install.sh From 668665ebc40ea461a871d66fde7d49c31d16bfc6 Mon Sep 17 00:00:00 2001 From: Gabriel Cozma Date: Sun, 16 Jul 2023 13:29:30 +0300 Subject: [PATCH 3/6] Added Script Install --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index e56a8358..5b6efc4a 100644 --- a/README.md +++ b/README.md @@ -128,6 +128,15 @@ make install DESTDIR=$HOME/altroot make install-manpages DESTDIR=$HOME/altroot ``` + +### Installing using or script +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 +git clone https://github.com/Vanilla-OS/apx +cd apx +sh 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. From a2b1a4e84b4328cd1232c3f4dba3370014dff3e1 Mon Sep 17 00:00:00 2001 From: Gabriel Cozma Date: Mon, 17 Jul 2023 13:03:48 +0300 Subject: [PATCH 4/6] Update Script --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 5b6efc4a..7090e6f8 100644 --- a/README.md +++ b/README.md @@ -132,9 +132,7 @@ make install-manpages DESTDIR=$HOME/altroot ### Installing using or script 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 -git clone https://github.com/Vanilla-OS/apx -cd apx -sh install.sh +bash <(curl -s https://raw.githubusercontent.com/Vanilla-OS/apx/v2/install.sh) ``` ## Community Packages From dbeb58cf4c069356562b772febdef7b1f97f4255 Mon Sep 17 00:00:00 2001 From: Gabriel Cozma Date: Wed, 8 May 2024 15:48:04 +0300 Subject: [PATCH 5/6] cleanup: fix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7090e6f8..60ff322e 100644 --- a/README.md +++ b/README.md @@ -129,7 +129,7 @@ make install-manpages DESTDIR=$HOME/altroot ``` -### Installing using or script +### Installing Apx using an shell script 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) From bbae5b7b93d73dab0d2e6483ecd5f77d9dfc8931 Mon Sep 17 00:00:00 2001 From: Gabriel Cozma Date: Sat, 11 May 2024 18:11:17 +0300 Subject: [PATCH 6/6] cleanup: update version of Distrobox in the script along side other documentation changes Co-authored-by: K.B.Dharun Krishna --- README.md | 6 ++++-- install.sh | 8 ++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 60ff322e..7d2a9e9a 100644 --- a/README.md +++ b/README.md @@ -129,8 +129,10 @@ make install-manpages DESTDIR=$HOME/altroot ``` -### Installing Apx using an shell script -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 +### Installing Apx using a shell script + +This script installs and sets up Apx automatically when you execute it, make sure you have `curl` and `git` installed, then clone this project and run it. + ```bash bash <(curl -s https://raw.githubusercontent.com/Vanilla-OS/apx/v2/install.sh) ``` diff --git a/install.sh b/install.sh index b5d77f0b..5a754f0f 100644 --- a/install.sh +++ b/install.sh @@ -1,14 +1,14 @@ #!/bin/bash -echo "Please enter or create a working directory:" +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.5.0.2.tar.gz -tar -xzf 1.5.0.2.tar.gz +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 @@ -18,7 +18,7 @@ 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"'", + "distroboxpath": "'"$WORK_DIR/distrobox-1.7.2.1/distrobox"'", "storageDriver": "btrfs" }' > "$HOME/.config/apx/apx.json"