Changeset 820


Ignore:
Timestamp:
03/15/11 00:20:41 (9 years ago)
Author:
aspidites
Message:

Patch by Aspidites:

  • added parpg launcher script for linux
  • prefix is hard-coded. This should be changed in the future. For now, packagers should take care to change this script to suit their systems.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/setup.py

    r818 r820  
    8484    args['scripts'] = ['parpg'] 
    8585    args['data_files'] = [(os.sep + os.path.join('etc', 'parpg'), 
    86                            [os.path.join('game', 'system.cfg')])] 
     86                           [os.path.join('game', 'system.cfg')]), 
     87                          (os.path.join('share', 'parpg'), 'parpg')] 
    8788 
    8889    for directory in ['fonts', 'gui', 'maps', 'music', 'objects',  
     
    103104     
    104105 
    105 # rename run.py to something more system friendly 
    106 rename_launcher() 
    107  
    108 try: 
    109     if system == 'Linux': 
    110         setup(**linux_args()) 
    111     elif system == 'Windows': 
    112         setup(**windows_args()) 
    113     else: 
    114         #TODO: actually support mac 
    115         print('Sorry, {0} is currently not supported.\nAborting...'.format(system)) 
    116         sys.exit(0) 
    117 except: 
    118     pass 
    119 finally: 
    120     # rename system executable back to run.py 
    121     rename_launcher() 
     106if system == 'Linux': 
     107    setup(**linux_args()) 
     108elif system == 'Windows': 
     109    setup(**windows_args()) 
     110else: 
     111    #TODO: actually support mac 
     112    print('Sorry, {0} is currently not supported.\nAborting...'.format(system)) 
     113    sys.exit(0) 
Note: See TracChangeset for help on using the changeset viewer.