Skip to content

Commit

Permalink
fix: only sign setup if have certificate
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <[email protected]>
  • Loading branch information
vitormattos committed Jun 24, 2024
1 parent ec37cf5 commit 663e4d4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,12 @@ appstore: clean
mkdir -p $(appstore_sign_dir)/$(app_name)/tests/fixtures
cp tests/fixtures/small_valid.pdf $(appstore_sign_dir)/$(app_name)/tests/fixtures

$(occ) config:app:set libresign certificate_engine --value cfssl
$(occ) libresign:install --all --architecture aarch64
$(occ) libresign:install --all --architecture x86_64
$(occ) libresign:developer:sign-setup --privateKey=$(cert_dir)/$(app_name).key \
--certificate=$(cert_dir)/$(app_name).crt
@if [ ! -f $(cert_dir)/$(app_name).crt ]; then \
$(occ) libresign:install --all --architecture aarch64 \
$(occ) libresign:install --all --architecture x86_64 \
$(occ) libresign:developer:sign-setup --privateKey=$(cert_dir)/$(app_name).key \
--certificate=$(cert_dir)/$(app_name).crt \
fi

@if [ -z "$$GITHUB_ACTION" ]; then \
chown -R www-data:www-data $(appstore_sign_dir)/$(app_name) ; \
Expand Down

0 comments on commit 663e4d4

Please sign in to comment.