Skip to content

Commit

Permalink
feat: 在初始化安装过程中添加压缩目录并删除原始目录
Browse files Browse the repository at this point in the history
  • Loading branch information
Aurora-Nasa-1 committed Jan 11, 2025
1 parent 97e6dd3 commit fda0bd6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,12 @@ initialize_install() {
Aurora_ui_print "$WARN_ZIPPATH_NOT_FOUND $dir"
return
fi

find "$dir" -mindepth 1 -maxdepth 1 -type d | while read -r entry; do
local dirname=$(basename "$entry")
local zip_file="$dir/$dirname.zip"
$zips a -r "$zip_file" "$entry" >/dev/null 2>&1
rm -rf "$entry"
done
find "$dir" -maxdepth 1 -type f -print0 | sort -z >"$temp_all_files"

zygiskmodule="/data/adb/modules/zygisksu/module.prop"
Expand Down

0 comments on commit fda0bd6

Please sign in to comment.