Changeset 2288


Ignore:
Timestamp:
02/01/12 19:57:27 (4 months ago)
Author:
dart
Message:

Fix pyinstaller (working for client)

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:externals
      •  

        old new  
        1 pyinstaller http://svn.pyinstaller.org/trunk/ 
         1pyinstaller http://svn.pyinstaller.org/trunk 
  • trunk/lotatc_client.py

    r2124 r2288  
    9191        for m in msg_a: 
    9292            msg += m 
     93        print msg 
    9394        logging.getLogger('[ERROR]').debug(msg) 
  • trunk/lotatc_client/lotatcwnd.py

    r2279 r2288  
    9292        self.setWindowIcon(QIcon(os.path.join(self.work_path,"lotatc_client","resources",  "lotatc_icon.png"))) 
    9393        self.logger = logging.getLogger('[LotatcCient]') 
    94  
     94         
    9595        self.svg_renderer = QSvgRenderer( os.path.join('.','common','resources','symbols.svg')) 
    96  
    9796        self.error_messages = { 
    9897            "bad version"  : self.tr("version incompatible with server"), 
     
    10099            "network"      : self.tr("network error: "), 
    101100        } 
    102  
    103101        ##- Status bar 
    104102        #self.status_modules = { 
  • trunk/tools/pyinstaller_script/dist/lotatc/lotatc_client_win.spec

    r2287 r2288  
    6262                lotatc_datas.append(('i18n/'+f,'../i18n/'+f,'DATA')) 
    6363 
    64 # pyz = PYZ(a.pure) 
    65 # exe = EXE(pyz, 
    66           # a.scripts  + [('O','','OPTION')], 
    67           # exclude_binaries=1, 
    68           # name=os.path.join('build\\pyi.win32\\lotatc_client', 'lotatc_client.exe'), 
    69           # debug=False, 
    70           # strip=True, 
    71           # icon='../lotatc_client/resources/lotatc_icon_mini.ico', 
    72           # upx=True, 
    73           # console=False)#, manifest=os.path.abspath(os.path.join( '..', 'tools', 'pyinstaller_script','msvc90dep.manifest' ) ) ) 
    74 # coll = COLLECT( exe, 
    75                # a.binaries, 
    76                # a.zipfiles, 
    77                # a.datas, 
    78                #lotatc_datas, 
    79                # strip=False, 
    80                # upx=True, 
    81                # name='lotatc_client/lotatc_client') 
    82 # a = Analysis([os.path.join(HOMEPATH,'support\\_mountzlib.py'), os.path.join(CONFIGDIR,'support\\useUnicode.py'), 'H:/dev/lotatc/trunk/lotatc_client.py'], 
    83              # pathex=['H:\\dev\\lotatc\\trunk\\pyinstaller']) 
    8464pyz = PYZ(a.pure) 
    8565exe = EXE(pyz, 
     
    8767          exclude_binaries=1, 
    8868          name=os.path.join('build\\pyi.win32\\lotatc_client', 'lotatc_client.exe'), 
    89           debug=True, 
    90           strip=None, 
    91           upx=True, 
    9269          icon='../lotatc_client/resources/lotatc_icon_mini.ico', 
    93           console=True ) 
     70          debug=False, 
     71          strip=True, 
     72          upx=False, 
     73          console=False ) 
    9474coll = COLLECT( exe, 
    9575               a.binaries, 
     
    9878                           lotatc_datas, 
    9979               strip=None, 
    100                upx=True, 
     80               upx=False, 
    10181               name=os.path.join('dist', 'lotatc_client')) 
    10282 
  • trunk/tools/pyinstaller_script/dist/lotatc/lotatc_server_win.spec

    r2285 r2288  
    1 a = Analysis([os.path.join(HOMEPATH,'support\\_mountzlib.py'), '../lotatc_server_ui.py'], 
     1a = Analysis([os.path.join(HOMEPATH,'support\\_mountzlib.py'), os.path.join(CONFIGDIR,'support\\useUnicode.py'), '../lotatc_server_ui.py'], 
    22             pathex=[ 
     3                         '../pyinstaller/', 
    34             '../common/', 
    45             '../common/misabstractlayer/', 
     
    4950pyz = PYZ(a.pure) 
    5051exe = EXE(pyz, 
    51           a.scripts  + [('O','','OPTION')], 
     52          a.scripts, 
    5253          exclude_binaries=1, 
    53           name='buildlotatc_server_win/lotatc_server.exe', 
     54          name=os.path.join('build\\pyi.win32\\lotatc_server', 'lotatc_server.exe'), 
    5455          icon='../lotatc_client/resources/lotatc_icon_mini_server.ico', 
    5556          debug=False, 
    5657          strip=True, 
    57           upx=True, 
    58           console=False , manifest=os.path.abspath(os.path.join( '..', 'tools', 'pyinstaller_script','msvc90dep.manifest' ) ) ) 
     58          upx=False, 
     59          console=False ) 
    5960coll = COLLECT( exe, 
    6061               a.binaries, 
    6162               a.zipfiles, 
    6263               a.datas, 
    63                         lotatc_datas, 
    64                strip=False, 
    65                upx=True, 
    66                name='lotatc_server/lotatc_server') 
     64                lotatc_datas, 
     65               strip=None, 
     66               upx=False, 
     67               name=os.path.join('dist', 'lotatc_server')) 
  • trunk/tools/pyinstaller_script/generate_win32.bat

    r2287 r2288  
    1515echo "      o LOTATC..." 
    1616python pyinstaller.py ../tools/pyinstaller_script/dist/lotatc/lotatc_client_win.spec 
    17 echo "python pyinstaller.py ../tools/pyinstaller_script/dist/lotatc/lotatc_server_win.spec" 
     17python pyinstaller.py ../tools/pyinstaller_script/dist/lotatc/lotatc_server_win.spec 
    1818cd ..\tools\pyinstaller_script 
    1919echo "DO NOT FORGET TO COPY DIRECTORY TO LOTATC" 
Note: See TracChangeset for help on using the changeset viewer.