Mac OS X menu item for quickly enabling/disabling HTTP proxy
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.

23 lines
607B

  1. from distutils.core import setup
  2. from glob import glob
  3. import py2app, sys, os, commands
  4. # determine version by latest tag
  5. status, version = commands.getstatusoutput("git describe --abbrev=0 --tags")
  6. if status != 0:
  7. # probably no hg installed or not building from a repository
  8. version = "unknown"
  9. if version[0] == 'v':
  10. version = version[1:]
  11. setup(
  12. app = [ 'ToggleProxy.py' ],
  13. version = version,
  14. data_files = glob('resources/*.png'),
  15. options = dict(py2app = dict(
  16. plist = dict(
  17. LSBackgroundOnly = True
  18. )
  19. ))
  20. )