distribution.in 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <installer-gui-script minSpecVersion="1.0">
  3. <options
  4. rootVolumeOnly="true"
  5. hostArchitectures="arm64,x86_64"
  6. customize="never"
  7. allow-external-scripts="no" />
  8. <domains enable_currentUserHome="true" enable_anywhere="false" enable_localSystem="false" />
  9. <title>@CMAKE_PROJECT_NAME@</title>
  10. <choices-outline>
  11. <line choice="obs-plugin" />
  12. </choices-outline>
  13. <choice id="obs-plugin" title="@CMAKE_PROJECT_NAME@" description="">
  14. <pkg-ref id="@MACOS_BUNDLEID@" />
  15. </choice>
  16. <pkg-ref id="@MACOS_BUNDLEID@" version="@CMAKE_PROJECT_VERSION@">#@CMAKE_PROJECT_NAME@.pkg</pkg-ref>
  17. <installation-check script="installCheck();" />
  18. <script>
  19. function installCheck() {
  20. var macOSVersion = system.version.ProductVersion
  21. if (system.compareVersions(macOSVersion, '@CMAKE_OSX_DEPLOYMENT_TARGET@') == -1) {
  22. my.result.title = system.localizedStandardStringWithFormat(
  23. 'InstallationCheckError',
  24. system.localizedString('DISTRIBUTION_TITLE')
  25. );
  26. my.result.message = ' ';
  27. my.result.type = 'Fatal';
  28. return false;
  29. }
  30. }
  31. </script>
  32. </installer-gui-script>