Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 

32 lignes
903 B

  1. # Copyright 2017 Virgil Dupras
  2. #
  3. # This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
  4. # which should be included with this package. The terms are also available at
  5. # http://www.gnu.org/licenses/gpl-3.0.html
  6. from argparse import ArgumentParser
  7. # Modify the python path so the hscommon files in the dupeguru submodule may be used
  8. import sys
  9. import os
  10. sys.path.append(os.path.join(os.getcwd(), 'dupeguru'))
  11. from hscommon.build import setup_package_argparser, package_cocoa_app_in_dmg
  12. def parse_args():
  13. parser = ArgumentParser()
  14. setup_package_argparser(parser)
  15. return parser.parse_args()
  16. def package_cocoa(args):
  17. app_path = 'build/Release/dupeGuru.app'
  18. package_cocoa_app_in_dmg(app_path, '.', args)
  19. def main():
  20. args = parse_args()
  21. print("Packaging dupeGuru with UI cocoa")
  22. package_cocoa(args)
  23. if __name__ == '__main__':
  24. main()