From 8b8b2275c45da8710d508062d154c1cda89ca61b Mon Sep 17 00:00:00 2001 From: CherretGit Date: Wed, 18 Mar 2026 17:11:39 +0700 Subject: [PATCH] update build scripts --- build-module.sh | 20 ++++++------------ src/customize.sh | 2 +- .../bin/quic_initial_www_google_com.bin | Bin .../bin/tls_clienthello_4pda_to.bin | Bin .../bin/tls_clienthello_max_ru.bin | Bin .../bin/tls_clienthello_www_google_com.bin | Bin .../bin/quic_initial_www_google_com.json | 10 +++++++++ .../bin/tls_clienthello_4pda_to.json | 10 +++++++++ .../bin/tls_clienthello_www_google_com.json | 10 +++++++++ .../manifests/lists/include/list-discord.json | 10 +++++++++ .../manifests/lists/include/list-youtube.json | 10 +++++++++ 11 files changed, 58 insertions(+), 14 deletions(-) rename src/zaprett/{ => files}/bin/quic_initial_www_google_com.bin (100%) rename src/zaprett/{ => files}/bin/tls_clienthello_4pda_to.bin (100%) rename src/zaprett/{ => files}/bin/tls_clienthello_max_ru.bin (100%) rename src/zaprett/{ => files}/bin/tls_clienthello_www_google_com.bin (100%) create mode 100644 src/zaprett/manifests/bin/quic_initial_www_google_com.json create mode 100644 src/zaprett/manifests/bin/tls_clienthello_4pda_to.json create mode 100644 src/zaprett/manifests/bin/tls_clienthello_www_google_com.json create mode 100644 src/zaprett/manifests/lists/include/list-discord.json create mode 100644 src/zaprett/manifests/lists/include/list-youtube.json diff --git a/build-module.sh b/build-module.sh index 4481cbd..000d50e 100644 --- a/build-module.sh +++ b/build-module.sh @@ -9,14 +9,12 @@ just -f rust/justfile build-android --release echo "Make build dirs" mkdir -p zaprett/system/bin mkdir -p zaprett/zaprett/bin -mkdir -p zaprett/zaprett/lists/include -mkdir -p zaprett/zaprett/manifests/lists/include +mkdir -p zaprett/zaprett/files/lists/include mkdir -p zaprett-hosts/system/bin mkdir -p zaprett-hosts/system/etc mkdir -p zaprett-hosts/zaprett/bin -mkdir -p zaprett-hosts/zaprett/lists/include -mkdir -p zaprett-hosts/zaprett/manifests/lists/include -mkdir -p out manifests lists +mkdir -p zaprett-hosts/zaprett/files/lists/include +mkdir -p out lists echo "Copy files to dirs" cp rust/target/armv7-linux-androideabi/release/zaprett zaprett/system/bin/zaprett-armv7 @@ -49,15 +47,11 @@ done cp -a src/* zaprett/ cp -r zaprett/* zaprett-hosts/ -echo "Download and copy actual lists and manifests" -wget https://raw.githubusercontent.com/CherretGit/zaprett-repo/refs/heads/main/manifests/lists/include/list-youtube.json -O manifests/list-youtube.json -wget https://raw.githubusercontent.com/CherretGit/zaprett-repo/refs/heads/main/manifests/lists/include/list-discord.json -O manifests/list-discord.json +echo "Download and copy actual lists" wget https://raw.githubusercontent.com/CherretGit/zaprett-repo/refs/heads/main/files/lists/include/list-youtube.txt -O lists/list-youtube.txt wget https://raw.githubusercontent.com/CherretGit/zaprett-repo/refs/heads/main/files/lists/include/list-discord.txt -O lists/list-discord.txt -cp lists/* zaprett/zaprett/lists/include/ -cp manifests/* zaprett/zaprett/manifests/lists/include -cp lists/* zaprett-hosts/zaprett/lists/include/ -cp manifests/* zaprett-hosts/zaprett/manifests/lists/include +cp lists/* zaprett/zaprett/files/lists/include/ +cp lists/* zaprett-hosts/zaprett/files/lists/include/ cp hosts/hosts zaprett-hosts/system/etc echo "Create module.prop" @@ -88,4 +82,4 @@ mv zaprett.zip out/ mv zaprett-hosts.zip out/ echo "Clean temp files" -rm -rf zaprett zaprett-hosts manifests lists \ No newline at end of file +rm -rf zaprett zaprett-hosts lists \ No newline at end of file diff --git a/src/customize.sh b/src/customize.sh index a70f823..beb6da3 100644 --- a/src/customize.sh +++ b/src/customize.sh @@ -12,7 +12,7 @@ ui_print "App by: egor-white, Cherret" ui_print "####################" ui_print "Creating zaprett directory..." -mkdir /sdcard/zaprett; mkdir /sdcard/zaprett/lists; mkdir /sdcard/zaprett/bin; mkdir /sdcard/zaprett/strategies; +mkdir /sdcard/zaprett ui_print "Copying lists and binaries to /sdcard/zaprett..." cp -r $MODPATH/zaprett/. /sdcard/zaprett/ diff --git a/src/zaprett/bin/quic_initial_www_google_com.bin b/src/zaprett/files/bin/quic_initial_www_google_com.bin similarity index 100% rename from src/zaprett/bin/quic_initial_www_google_com.bin rename to src/zaprett/files/bin/quic_initial_www_google_com.bin diff --git a/src/zaprett/bin/tls_clienthello_4pda_to.bin b/src/zaprett/files/bin/tls_clienthello_4pda_to.bin similarity index 100% rename from src/zaprett/bin/tls_clienthello_4pda_to.bin rename to src/zaprett/files/bin/tls_clienthello_4pda_to.bin diff --git a/src/zaprett/bin/tls_clienthello_max_ru.bin b/src/zaprett/files/bin/tls_clienthello_max_ru.bin similarity index 100% rename from src/zaprett/bin/tls_clienthello_max_ru.bin rename to src/zaprett/files/bin/tls_clienthello_max_ru.bin diff --git a/src/zaprett/bin/tls_clienthello_www_google_com.bin b/src/zaprett/files/bin/tls_clienthello_www_google_com.bin similarity index 100% rename from src/zaprett/bin/tls_clienthello_www_google_com.bin rename to src/zaprett/files/bin/tls_clienthello_www_google_com.bin diff --git a/src/zaprett/manifests/bin/quic_initial_www_google_com.json b/src/zaprett/manifests/bin/quic_initial_www_google_com.json new file mode 100644 index 0000000..d78270f --- /dev/null +++ b/src/zaprett/manifests/bin/quic_initial_www_google_com.json @@ -0,0 +1,10 @@ +{ + "schema": 1, + "id": "quic_initial_www_google_com", + "name": "quic_initial_www_google_com", + "version": "1.0.0", + "author": "zaprett-devs", + "description": "Binary artifact: quic_initial_www_google_com", + "dependencies": [], + "file": "/storage/emulated/0/zaprett/files/bin/quic_initial_www_google_com.bin" +} diff --git a/src/zaprett/manifests/bin/tls_clienthello_4pda_to.json b/src/zaprett/manifests/bin/tls_clienthello_4pda_to.json new file mode 100644 index 0000000..650c025 --- /dev/null +++ b/src/zaprett/manifests/bin/tls_clienthello_4pda_to.json @@ -0,0 +1,10 @@ +{ + "schema": 1, + "id": "tls_clienthello_4pda_to", + "name": "tls_clienthello_4pda_to", + "version": "1.0.0", + "author": "zaprett-devs", + "description": "Binary artifact: tls_clienthello_4pda_to", + "dependencies": [], + "file": "/storage/emulated/0/zaprett/files/bin/tls_clienthello_4pda_to.bin" +} diff --git a/src/zaprett/manifests/bin/tls_clienthello_www_google_com.json b/src/zaprett/manifests/bin/tls_clienthello_www_google_com.json new file mode 100644 index 0000000..254f6c3 --- /dev/null +++ b/src/zaprett/manifests/bin/tls_clienthello_www_google_com.json @@ -0,0 +1,10 @@ +{ + "schema": 1, + "id": "tls_clienthello_www_google_com", + "name": "tls_clienthello_www_google_com", + "version": "1.0.0", + "author": "zaprett-devs", + "description": "Binary artifact: tls_clienthello_www_google_com", + "dependencies": [], + "file": "/storage/emulated/0/zaprett/files/bin/tls_clienthello_www_google_com.bin" +} diff --git a/src/zaprett/manifests/lists/include/list-discord.json b/src/zaprett/manifests/lists/include/list-discord.json new file mode 100644 index 0000000..c7e8e95 --- /dev/null +++ b/src/zaprett/manifests/lists/include/list-discord.json @@ -0,0 +1,10 @@ +{ + "schema": 1, + "id": "list-discord", + "name": "list-discord", + "version": "1.0.0", + "author": "zaprett-devs", + "description": "Домены Discord", + "dependencies": [], + "file": "/storage/emulated/0/zaprett/files/lists/include/list-discord.txt" +} diff --git a/src/zaprett/manifests/lists/include/list-youtube.json b/src/zaprett/manifests/lists/include/list-youtube.json new file mode 100644 index 0000000..b7bb053 --- /dev/null +++ b/src/zaprett/manifests/lists/include/list-youtube.json @@ -0,0 +1,10 @@ +{ + "schema": 1, + "id": "list-youtube", + "name": "list-youtube", + "version": "1.0.0", + "author": "zaprett-devs", + "description": "Домены YouTube", + "dependencies": [], + "file": "/storage/emulated/0/zaprett/files/lists/include/list-youtube.txt" +}