Skip to content

Commit 233953d

Browse files
authored
fix(appstore): copy dist only if directory exists (#7424)
The dist/ directory is not always produced by the frontend build (e.g. in the GitHub Actions release workflow where vite outputs the pdf worker to js/ instead). Make the copy conditional, consistent with the verify-appstore-package target which already uses an if [ -d dist ] guard. [skip ci] Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent ccb3064 commit 233953d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ appstore:
107107
appinfo \
108108
composer \
109109
css \
110-
dist \
111110
img \
112111
js \
113112
l10n \
@@ -118,6 +117,9 @@ appstore:
118117
CHANGELOG.md \
119118
openapi*.json \
120119
$(appstore_sign_dir)/$(app_name)
120+
if [ -d dist ]; then \
121+
cp -r dist $(appstore_sign_dir)/$(app_name)/; \
122+
fi
121123
rm -rf $(appstore_sign_dir)/$(app_name)/img/screenshot/
122124
rm -rf $(appstore_sign_dir)/$(app_name)/3rdparty/.git
123125
rm -rf $(appstore_sign_dir)/$(app_name)/3rdparty/.github

0 commit comments

Comments
 (0)