Skip to content

Commit 8ea5515

Browse files
authored
Merge pull request #2128 from Websoft9/feature/appstore-publish-migration
fix
2 parents 32302f6 + cb1fc9c commit 8ea5515

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/appstore-publish.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,14 @@ jobs:
8484
- name: Download legacy screenshots from Contentful
8585
run: |
8686
mkdir -p dist/catalog-source/screenshots
87-
python3 build/download_screenshots.py dist/catalog-source/screenshots
87+
for f in dist/catalog-source/product_*.json; do
88+
[ -f "$f" ] || continue
89+
jq -r '.[].screenshots[]?.value // empty' "$f" 2>/dev/null | sort -u | while read -r url; do
90+
name=$(basename "$url" | cut -d'?' -f1)
91+
[ -z "$name" ] && name="$(echo "$url" | md5sum | cut -c1-12).png"
92+
[ -f "dist/catalog-source/screenshots/$name" ] || wget -q "$url" -O "dist/catalog-source/screenshots/$name" || true
93+
done
94+
done
8895
8996
- name: Check if first v2 publish (R2 apps/ prefix empty)
9097
id: check_seed

library.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
"Repository": "https://github.com/Websoft9/docker-library",
44
"Update URI": "https://example.com/my-plugin/",
55
"Description": "200 application template for you installation.",
6-
"Version": "",
6+
"Version": "0.7.14",
77
"Requires at most": "1.5.0",
88
"Requires at least": "0.0.4",
99
"Author": "Websoft9 Inc",
1010
"Author URI": "https://www.websoft9.com/",
1111
"License": "GPL v2 or later",
1212
"License URI": "https://www.gnu.org/licenses/gpl-2.0.html"
13-
}
13+
}

0 commit comments

Comments
 (0)