fix: remove template app from zip and label ark correctly
This commit is contained in:
@@ -56,12 +56,17 @@ x-casaos:
|
|||||||
category: phirna
|
category: phirna
|
||||||
author: Joachim Friberg
|
author: Joachim Friberg
|
||||||
developer: Joachim Friberg
|
developer: Joachim Friberg
|
||||||
icon: https://cdn.simpleicons.org/docker
|
icon: https://cdn.jsdelivr.net/gh/selfhst/icons/png/ark-survival-ascended.png
|
||||||
tagline:
|
tagline:
|
||||||
en_US: Replace with a short one-line value proposition
|
en_us: ARK Survival Ascended dedicated server for ZimaOS
|
||||||
description:
|
description:
|
||||||
en_US: Replace with a clear description of what the app does
|
en_us: |
|
||||||
|
Host your own ARK: Survival Ascended dedicated server.
|
||||||
|
|
||||||
|
Minimum requirements:
|
||||||
|
- RAM: 16 GB (24 GB recommended)
|
||||||
|
- Disk: 20 GB+ for server files and updates
|
||||||
title:
|
title:
|
||||||
en_US: Sample App
|
en_us: ARK Survival Ascended Server
|
||||||
index: /
|
index: /
|
||||||
port_map: "8080"
|
port_map: "8080"
|
||||||
|
|||||||
Vendored
BIN
Binary file not shown.
@@ -185,6 +185,8 @@ if [[ "$is_git_repo" -eq 1 ]]; then
|
|||||||
[[ -z "$rel" ]] && continue
|
[[ -z "$rel" ]] && continue
|
||||||
|
|
||||||
case "$rel" in
|
case "$rel" in
|
||||||
|
Apps/_template/*)
|
||||||
|
;;
|
||||||
Apps/*|category-list.json|recommend-list.json|featured-apps.json)
|
Apps/*|category-list.json|recommend-list.json|featured-apps.json)
|
||||||
if [[ -f "$repo_root/$rel" ]]; then
|
if [[ -f "$repo_root/$rel" ]]; then
|
||||||
copy_file "$rel"
|
copy_file "$rel"
|
||||||
@@ -194,6 +196,7 @@ if [[ "$is_git_repo" -eq 1 ]]; then
|
|||||||
done < <(git -C "$repo_root" ls-files)
|
done < <(git -C "$repo_root" ls-files)
|
||||||
else
|
else
|
||||||
cp -R "$repo_root/Apps" "$staging_dir/"
|
cp -R "$repo_root/Apps" "$staging_dir/"
|
||||||
|
rm -rf "$staging_dir/Apps/_template"
|
||||||
for file in "${required_root_files[@]}"; do
|
for file in "${required_root_files[@]}"; do
|
||||||
copy_file "$file"
|
copy_file "$file"
|
||||||
done
|
done
|
||||||
@@ -213,6 +216,7 @@ fi
|
|||||||
|
|
||||||
mkdir -p "$output_dir"
|
mkdir -p "$output_dir"
|
||||||
zip_path="$(cd "$output_dir" && pwd)/$zip_name"
|
zip_path="$(cd "$output_dir" && pwd)/$zip_name"
|
||||||
|
rm -f "$zip_path"
|
||||||
|
|
||||||
(
|
(
|
||||||
cd "$staging_dir"
|
cd "$staging_dir"
|
||||||
|
|||||||
Reference in New Issue
Block a user