|
| 1 | +# Getting Started with Apx |
| 2 | + |
| 3 | +Apx is designed to be a versatile, distro-agnostic tool that can be installed on any Linux distribution. Follow the steps below to get Apx up and running on your system. |
| 4 | + |
| 5 | +## Prerequisites |
| 6 | + |
| 7 | +Before installing Apx, ensure you have the following software installed: |
| 8 | + |
| 9 | +1. **Go**: This is required to compile Apx. Install it from your distribution's package manager. |
| 10 | +2. **Git**: Needed to clone the Apx repository. |
| 11 | +3. **Podman or Docker**: Either container runtime is suitable, but Podman is recommended. |
| 12 | +4. **Make**: This utility is used for building and installing Apx. |
| 13 | + |
| 14 | +## Installation Procedure |
| 15 | + |
| 16 | +### Clone the Apx Repository |
| 17 | + Open your terminal and run the following commands to clone the repository and navigate into it: |
| 18 | + ```bash |
| 19 | + git clone --recursive https://github.com/Vanilla-OS/apx.git |
| 20 | + cd apx |
| 21 | + ``` |
| 22 | + |
| 23 | +### Build Apx |
| 24 | + Compile Apx by executing: |
| 25 | + ```bash |
| 26 | + make build |
| 27 | + ``` |
| 28 | + |
| 29 | +### Install Apx |
| 30 | + To install Apx system-wide, run: |
| 31 | + ```bash |
| 32 | + sudo make install |
| 33 | + ``` |
| 34 | + |
| 35 | +### Install Apx Manpages |
| 36 | + For the manual pages, execute: |
| 37 | + ```bash |
| 38 | + sudo make install-manpages |
| 39 | + ``` |
| 40 | + |
| 41 | +## Custom Installation Destination |
| 42 | + |
| 43 | +You can change the installation prefix or destination using `PREFIX` and `DESTDIR`. Here are examples for custom installations: |
| 44 | + |
| 45 | +- **Install Apx to `~/.local`**: |
| 46 | + ```bash |
| 47 | + make install PREFIX=$HOME/.local |
| 48 | + make install-manpages PREFIX=$HOME/.local |
| 49 | + ``` |
| 50 | + |
| 51 | +- **Install Apx to a separate root**: |
| 52 | + ```bash |
| 53 | + make install DESTDIR=$HOME/altroot |
| 54 | + make install-manpages DESTDIR=$HOME/altroot |
| 55 | + ``` |
| 56 | + |
| 57 | +# Getting Started with Apx-GUI |
| 58 | + |
| 59 | +Apx-GUI provides a graphical interface for managing your Apx installations. Follow the steps below to install Apx-GUI on your system. |
| 60 | + |
| 61 | +## Dependencies |
| 62 | + |
| 63 | +Before you start, ensure you have the following dependencies installed: |
| 64 | + |
| 65 | +1. **build-essential**: A package containing essential compilation tools. |
| 66 | +2. **meson**: A build system to configure the project. |
| 67 | +3. **libadwaita-1-dev**: A library for building modern GNOME applications. |
| 68 | +4. **gettext**: A utility for internationalization and localization. |
| 69 | +5. **desktop-file-utils**: Tools for handling desktop entry files. |
| 70 | +6. **apx (2.0+)**: Ensure you have Apx version 2.0 or higher installed. |
| 71 | + |
| 72 | +You can install these dependencies using your distribution's package manager. For example, on Debian-based systems, you can run: |
| 73 | + |
| 74 | +```bash |
| 75 | +sudo apt update |
| 76 | +sudo apt install build-essential meson libadwaita-1-dev gettext desktop-file-utils apx |
| 77 | +``` |
| 78 | + |
| 79 | +## Installation Procedure |
| 80 | + |
| 81 | +### Clone the Apx-GUI Repository |
| 82 | +Open your terminal and run the following commands to clone the repository and navigate into it: |
| 83 | +```bash |
| 84 | +git clone https://github.com/Vanilla-OS/apx-gui.git |
| 85 | +cd apx-gui |
| 86 | +``` |
| 87 | + |
| 88 | +### Build Apx-GUI |
| 89 | + |
| 90 | +Once you have cloned the repository, build Apx-GUI by running: |
| 91 | + |
| 92 | +```bash |
| 93 | +meson setup build |
| 94 | +ninja -C build |
| 95 | +``` |
| 96 | +> **NOTE:** you can set a custom installation destination by passing `--prefix=/path/to/dir` to `meson` |
| 97 | +
|
| 98 | +### Install Apx-GUI |
| 99 | + |
| 100 | +After successfully building the application, install it with the following command: |
| 101 | + |
| 102 | +```bash |
| 103 | +sudo ninja -C build install |
| 104 | +``` |
| 105 | + |
| 106 | +### Run Apx-GUI |
| 107 | + |
| 108 | +You can launch Apx-GUI using the following command: |
| 109 | + |
| 110 | +```bash |
| 111 | +apx-gui |
| 112 | +``` |
| 113 | + |
| 114 | +Follow these steps to successfully install and run Apx-GUI on your system. Enjoy managing your Apx installations with the graphical interface! |
0 commit comments