Skip to content

1. Installation

Shubham Singh edited this page Dec 10, 2024 · 6 revisions

There are currently two ways of installing WallRizz:

  • Download pre-built binary.
  • Build from source.

Option 1: Download Executable

Step 1: Download the Binary

Quick Command

If you prefer a single-line command to perform all steps mentioned below, use the following:

sudo curl -sL $(curl -s https://api.github.com/repos/5hubham5ingh/WallRizz/releases/latest | grep -Po '"browser_download_url": "\K[^"]+' | grep WallRizz) | tar -xz && sudo mv WallRizz /usr/bin/

Else

Download the latest release from the GitHub releases page.

Alternatively, run the following command to fetch the latest release directly:

curl -L $(curl -s https://api.github.com/repos/5hubham5ingh/WallRizz/releases/latest | grep -oP '"browser_download_url": "\K(.*)(?=")' | grep WallRizz) -o WallRizz.tar

Step 2: Extract the executable

Once downloaded, extract the binary executable by running:

tar -xzf WallRizz.tar

Step 3: Move the Binary to the System Path

To make the binary globally accessible, move it to a directory included in your system's PATH, such as /usr/bin:

sudo mv WallRizz /usr/bin/

After completing these steps, you can run WallRizz from any terminal session.

Option 2: Build from Source

  • Simply run:
curl -fsSL https://raw.githubusercontent.com/5hubham5ingh/WallRizz/main/build.sh | sh
  • Or follow these steps to build from source:

Prerequisites

Ensure the following dependencies are installed on your system:

  • Git: Required for cloning repositories.
  • Curl: Required for downloading files.
  • Unzip: Required for extracting archives.
  • Make and GCC: Required for building the QuickJS source code.

Build and Installation Steps

  1. Fetch QuickJS Source Code
    Clone the QuickJS repository, build the source code, and install the QuickJS compiler and interpreter:

    git clone --depth 1 https://github.com/bellard/quickjs.git  
    cd quickjs  
    make  
    sudo make install  
    cd ..  
  2. Download Required Library
    Fetch the qjs-ext-lib library, extract it, and prepare it for use:

    curl -L -o out.zip https://github.com/ctn-malone/qjs-ext-lib/archive/refs/tags/0.12.4.zip  
    unzip out.zip  
    mv qjs-ext-lib-0.12.4 qjs-ext-lib  
    rm out.zip  
  3. Fetch Helper Scripts
    Clone the helper scripts from the justjs repository:

    git clone --depth 1 https://github.com/5hubham5ingh/justjs.git  
  4. Clone the WallRizz Project
    Clone the WallRizz repository:

    git clone --depth 1 https://github.com/5hubham5ingh/WallRizz.git  
  5. Build and Install WallRizz
    Navigate to the WallRizz source directory, build the project, and install it:

    cd WallRizz/src  
    qjsc -flto -D extensionHandlerWorker.js -o WallRizz main.js  
    sudo cp WallRizz /usr/bin/  

After completing these steps, WallRizz will be successfully installed.

For additional setup and usage instructions, refer to the Setup Guide and Usage Guide.