Copy of Nextcloud richdocuments app, but with modifications so all traffic goes over clearnet/CJDNS/Tor/I2P/whatever instead of having a single default hostname.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Makefile for building the project
  2. app_name=richdocuments
  3. project_dir=$(CURDIR)/../$(app_name)
  4. build_dir=$(CURDIR)/build/artifacts
  5. sign_dir=$(build_dir)/sign
  6. appstore_dir=$(build_dir)/appstore
  7. source_dir=$(build_dir)/source
  8. package_name=$(app_name)
  9. cert_dir=$(HOME)/.nextcloud/certificates
  10. occ=$(CURDIR)/../core/occ
  11. appstore:
  12. mkdir -p $(sign_dir)
  13. rsync -a \
  14. --exclude=.git \
  15. --exclude=build \
  16. --exclude=.gitignore \
  17. --exclude=.travis.yml \
  18. --exclude=.scrutinizer.yml \
  19. --exclude=CONTRIBUTING.md \
  20. --exclude=composer.json \
  21. --exclude=composer.lock \
  22. --exclude=composer.phar \
  23. --exclude=.tx \
  24. --exclude=l10n/no-php \
  25. --exclude=Makefile \
  26. --exclude=nbproject \
  27. --exclude=screenshots \
  28. --exclude=phpunit*xml \
  29. --exclude=tests \
  30. --exclude=vendor/bin \
  31. $(project_dir) $(sign_dir)
  32. @echo "Signing…"
  33. $(occ) integrity:sign-app --privateKey=$(cert_dir)/$(app_name).key --certificate=$(cert_dir)/$(app_name).crt --path=$(sign_dir)/$(app_name)
  34. tar -czf $(build_dir)/$(app_name).tar.gz \
  35. -C $(sign_dir) $(app_name)
  36. openssl dgst -sha512 -sign $(cert_dir)/$(app_name).key $(build_dir)/$(app_name).tar.gz | openssl base64