Changeset 369ac54 in sasview


Ignore:
Timestamp:
Jul 26, 2015 2:41:57 PM (6 years ago)
Author:
ajj
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
66b42f6
Parents:
9533593
Message:

Attempt to add bundling to dmg for mac build

Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • sasview/setup_mac.py

    r018582f r369ac54  
    116116                                   CFBundleTypeRole="Shell" )],) 
    117117 
     118#Get version 
     119import sasview 
     120VERSION = sasview.__version__ 
     121APPNAME = "SasView "+VERSION 
     122DMGNAME = "SasView-"+VERSION 
     123 
    118124APP = ['sasview.py'] 
    119125DATA_FILES += ['images','test','media'] 
     
    133139           } 
    134140setup( 
    135     name="sasview", 
     141    name=APPNAME, 
    136142    app=APP, 
    137143    data_files=DATA_FILES, 
     
    140146    setup_requires=['py2app'], 
    141147) 
     148 
     149#Build dmg 
     150DMG="dist/%s.dmg"%DMGNAME 
     151if os.path.exists(DMG): os.unlink(DMG) 
     152os.system('cd dist && ../../build_tools/dmgpack.sh "%s" "%s.app"'%(DMGNAME,APPNAME) 
     153os.system('chmod a+r "%s"'%DMG) 
     154 
Note: See TracChangeset for help on using the changeset viewer.