Skip to content

Commit a394cfe

Browse files
Fix screenshots getting force downloaded
Fix screenshots getting force downloaded when clicking them https://developer.wordpress.org/plugins/wordpress-org/plugin-assets/
1 parent 23b5cc4 commit a394cfe

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

entrypoint.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@ svn status | grep '^\!' | sed 's/! *//' | xargs -I% svn rm %@ > /dev/null
113113
echo "➤ Copying tag..."
114114
svn cp "trunk" "tags/$VERSION"
115115

116+
# Fix screenshots getting force downloaded when clicking them
117+
# https://developer.wordpress.org/plugins/wordpress-org/plugin-assets/
118+
svn propset svn:mime-type image/png assets/*.png || true
119+
svn propset svn:mime-type image/jpeg assets/*.jpg || true
120+
116121
svn status
117122

118123
echo "➤ Committing files..."

0 commit comments

Comments
 (0)