File tree Expand file tree Collapse file tree 3 files changed +13
-8
lines changed
Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 11/* .zip
2- magiskmodule /ViperIRS.zip
3- magiskmodule /vdcs.zip
2+ magiskmodule /ViperIRS.tar.gz
3+ magiskmodule /ViperVDC.tar.gz
44magiskmodule /module.prop
Original file line number Diff line number Diff line change 22
33set -e -u
44
5+ GZIP=gzip
6+ [ -n " $( command -v pigz) " ] && GZIP=pigz
7+
58[[ ` git status --porcelain` ]] && CHANGES=" +" || CHANGES=" -"
69VERSIONCODE=$( git rev-list --count HEAD)
710REPACKAGEDSTRING=" repackagedhoch$VERSIONCODE "
@@ -18,14 +21,16 @@ rm ViPER4AndroidFX-repackaged* 2>/dev/null || true
1821
1922echo " Compressing Viper IRS files..."
2023cd ViperIRS
21- [ -f " ../magiskmodule/ViperIRS.zip" ] && rm " ../magiskmodule/ViperIRS.zip"
22- zip -9 -q " ../magiskmodule/ViperIRS.zip" * .irs
24+ IRSFILE=" ../magiskmodule/ViperIRS.tar.gz"
25+ [ -f " $IRSFILE " ] && rm " $IRSFILE "
26+ tar -cf- * .irs | $GZIP --best > " $IRSFILE "
2327cd ..
2428
2529echo " Compressing Original VDC files..."
2630cd OriginalVDCs
27- [ -f " ../magiskmodule/vdcs.zip" ] && rm " ../magiskmodule/vdcs.zip"
28- zip -9 -q " ../magiskmodule/vdcs.zip" * .vdc
31+ VDCFILE=" ../magiskmodule/ViperVDC.tar.gz"
32+ [ -f " $VDCFILE " ] && rm " $VDCFILE "
33+ tar -cf- * .vdc | $GZIP --best > " $VDCFILE "
2934cd ..
3035
3136echo " Compressing Magisk Module..."
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ if [ $DDC_FOLDER_EMPTY = true ] && [ $CUSTOM_VDC_FOUND = false ]; then
3434 ui_print " Check out here for better ones:"
3535 ui_print " https://t.me/vdcservice"
3636 mkdir -p " $FOLDER " /DDC 2> /dev/null
37- unzip -oj " $MODPATH " /vdcs.zip -d " $FOLDER " /DDC >&2
37+ tar -xzf " $MODPATH " /ViperVDC.tar.gz -C " $FOLDER " /DDC
3838else
3939 ui_print " Skipping Viper original vdc copy"
4040 [ $DDC_FOLDER_EMPTY = false ] && ui_print " the folder is not empty"
5252if [ -z " $( ls " $FOLDER " /Kernel 2> /dev/null) " ]; then
5353 ui_print " - Copying Viper IRS files"
5454 mkdir -p " $FOLDER " /Kernel 2> /dev/null
55- unzip -oj " $MODPATH " /ViperIRS.zip -d " $FOLDER " /Kernel >&2
55+ tar -xzf " $MODPATH " /ViperIRS.tar.gz -C " $FOLDER " /Kernel
5656else
5757 ui_print " - Skipping Viper IRS copy, folder is not empty"
5858fi
You can’t perform that action at this time.
0 commit comments