fix: remove template app from zip and label ark correctly
This commit is contained in:
@@ -185,6 +185,8 @@ if [[ "$is_git_repo" -eq 1 ]]; then
|
||||
[[ -z "$rel" ]] && continue
|
||||
|
||||
case "$rel" in
|
||||
Apps/_template/*)
|
||||
;;
|
||||
Apps/*|category-list.json|recommend-list.json|featured-apps.json)
|
||||
if [[ -f "$repo_root/$rel" ]]; then
|
||||
copy_file "$rel"
|
||||
@@ -194,6 +196,7 @@ if [[ "$is_git_repo" -eq 1 ]]; then
|
||||
done < <(git -C "$repo_root" ls-files)
|
||||
else
|
||||
cp -R "$repo_root/Apps" "$staging_dir/"
|
||||
rm -rf "$staging_dir/Apps/_template"
|
||||
for file in "${required_root_files[@]}"; do
|
||||
copy_file "$file"
|
||||
done
|
||||
@@ -213,6 +216,7 @@ fi
|
||||
|
||||
mkdir -p "$output_dir"
|
||||
zip_path="$(cd "$output_dir" && pwd)/$zip_name"
|
||||
rm -f "$zip_path"
|
||||
|
||||
(
|
||||
cd "$staging_dir"
|
||||
|
||||
Reference in New Issue
Block a user