-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (35 loc) · 1.33 KB
/
Makefile
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
32
33
34
35
36
37
38
39
40
41
42
43
OUT_ZIP=Venom.zip
LNCR_EXE=Venom.exe
DLR=curl
DLR_FLAGS=--silent --location
BASE_URL_SYSV="https://nc.abetech.es/index.php/s/QX2taybWRBnyLFS/download?path=%2F&files=venomlinux-rootfs-sysv-x86_64.tar.xz"
BASE_URL_S6="https://nc.abetech.es/index.php/s/mtpAqi7BBPDXEPB/download?path=%2F&files=venomlinux-rootfs-s6-x86_64.tar.xz"
LNCR_ZIP_URL!=curl --silent https://api.github.com/repos/yuk7/wsldl/releases | jq --raw-output ".[0].assets[].browser_download_url" | grep --extended-regexp "icons.zip"
LNCR_ZIP_EXE=Venom.exe
all: $(OUT_ZIP)
zip: $(OUT_ZIP)
$(OUT_ZIP): ziproot
@echo -e '\e[1;31mBuilding $(OUT_ZIP)\e[m'
cd ziproot; bsdtar -a -cf ../$(OUT_ZIP) *
ziproot: Launcher.exe rootfs.tar.xz
@echo -e '\e[1;31mBuilding ziproot...\e[m'
mkdir ziproot
cp Launcher.exe ziproot/${LNCR_EXE}
cp rootfs.tar.xz ziproot/
exe: Launcher.exe
Launcher.exe: icons.zip
@echo -e '\e[1;31mExtracting Launcher.exe...\e[m'
unzip icons.zip $(LNCR_ZIP_EXE)
mv $(LNCR_ZIP_EXE) Launcher.exe
icons.zip:
@echo -e '\e[1;31mDownloading icons.zip...\e[m'
$(DLR) $(DLR_FLAGS) $(LNCR_ZIP_URL) -o icons.zip
rootfs.tar.xz:
@echo -e '\e[1;31mDownloading rootfs...\e[m'
$(DLR) $(DLR_FLAGS) $(BASE_URL_S6) -o rootfs.tar.xz
clean:
@echo -e '\e[1;31mCleaning files...\e[m'
-rm -r ziproot
-rm Launcher.exe
-rm icons.zip
-rm rootfs.tar.xz