rules 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #!/usr/bin/make -f
  2. # -*- makefile -*-
  3. # Uncomment this to turn on verbose mode.
  4. #export DH_VERBOSE=1
  5. JAVA_HOME = /usr/lib/jvm/java-19-coffeelibs
  6. %:
  7. dh $@
  8. override_dh_auto_clean:
  9. rm -rf runtime
  10. rm -rf cryptomator
  11. rm -rf debian/cryptomator
  12. rm -rf resources
  13. override_dh_auto_build:
  14. mkdir resources
  15. ln -s ../common/org.cryptomator.Cryptomator512.png resources/cryptomator.png
  16. $(JAVA_HOME)/bin/jlink \
  17. --output runtime \
  18. --add-modules java.base,java.desktop,java.instrument,java.logging,java.naming,java.net.http,java.scripting,java.sql,java.xml,jdk.unsupported,jdk.crypto.ec,jdk.accessibility,jdk.management.jfr \
  19. --strip-native-commands \
  20. --no-header-files \
  21. --no-man-pages \
  22. --strip-debug \
  23. --compress=2
  24. $(JAVA_HOME)/bin/jpackage \
  25. --type app-image \
  26. --runtime-image runtime \
  27. --input libs \
  28. --module-path mods \
  29. --module org.cryptomator.desktop/org.cryptomator.launcher.Cryptomator \
  30. --dest . \
  31. --name cryptomator \
  32. --vendor "Skymatic GmbH" \
  33. --copyright "(C) 2016 - 2022 Skymatic GmbH" \
  34. --java-options "-Xss5m" \
  35. --java-options "-Xmx256m" \
  36. --java-options "-Dfile.encoding=\"utf-8\"" \
  37. --java-options "-Dcryptomator.logDir=\"~/.local/share/Cryptomator/logs\"" \
  38. --java-options "-Dcryptomator.pluginDir=\"~/.local/share/Cryptomator/plugins\"" \
  39. --java-options "-Dcryptomator.settingsPath=\"~/.config/Cryptomator/settings.json:~/.Cryptomator/settings.json\"" \
  40. --java-options "-Dcryptomator.p12Path=\"~/.config/Cryptomator/key.p12\"" \
  41. --java-options "-Dcryptomator.ipcSocketPath=\"~/.config/Cryptomator/ipc.socket\"" \
  42. --java-options "-Dcryptomator.mountPointsDir=\"~/.local/share/Cryptomator/mnt\"" \
  43. --java-options "-Dcryptomator.showTrayIcon=false" \
  44. --java-options "-Dcryptomator.buildNumber=\"deb-${REVISION_NUM}\"" \
  45. --java-options "-Dcryptomator.appVersion=\"${SEMVER_STR}\"" \
  46. --app-version "${VERSION_NUM}.${REVISION_NUM}" \
  47. --resource-dir resources \
  48. --verbose
  49. override_dh_fixperms:
  50. dh_fixperms
  51. chmod +x debian/cryptomator/usr/lib/cryptomator/bin/cryptomator.sh
  52. # override_dh_strip:
  53. # no-op