-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sh
31 lines (25 loc) · 1.03 KB
/
build.sh
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
31
#!/bin/env bash
# Build script for WallRizz
## Fetch the QuickJS source code, then build and install the compiler and interpreter in the system.
echo -e "\e[1;4;33mFetching source code...\e[0m" &&
git clone --depth 1 https://github.com/bellard/quickjs.git &&
cd quickjs &&
make &&
sudo make install &&
cd .. &&
## Fetch the required library.
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 &&
## Fetch helper scripts
git clone --depth 1 https://github.com/5hubham5ingh/justjs.git &&
## Clone the WallRizz project
git clone --depth 1 https://github.com/5hubham5ingh/WallRizz.git &&
## Build WallRizz then install it.
cd WallRizz/src &&
echo -e "\e[1;4;33mBuilding WallRizz...\e[0m" &&
qjsc -flto -D extensionHandlerWorker.js -o WallRizz main.js &&
echo -e "\e[1;4;33mInstalling WallRizz...\e[0m" &&
sudo cp WallRizz /usr/bin/ &&
echo -e "\e[1;32mWallRizz installation completed successfully.\e[0m"