I want to create an update function to get the latest build of my
application.
In python I can just overwrite the existing .py files and after
restarting it, all the updates files will be used.

Is there a way to build an .exe with just the python and binary stuff
in it, and my custom .py files and directories outside that?
This way I don't have to update the .exe as it never changes.

I tried creating a single dir build, but it wouldn't start.

My current specfile (which works great!):
[code]
# -*- mode: python -*-
a = Analysis([os.path.join(HOMEPATH,'support', '_mountzlib.py'),
os.path.join(HOMEPATH,'support', 'useUnicode.py'), '..\
\CouchPotato.py'],
             pathex=['Y:\\Localhost\\Python\\CouchPotato\
\pyInstaller', '..\\library', '..\\'])
pyz = PYZ(a.pure)

library = Tree('..\\library', prefix = 'library', excludes =
['.DS_Store', '*.pyc'])
app = Tree('..\\app', prefix = 'app', excludes = ['.DS_Store',
'*.pyc'])
media = Tree('..\\media', prefix = 'media', excludes = ['.DS_Store',
'*.pyc'])

exe = EXE(pyz,
          a.scripts,
          a.binaries,
          library,
          app,
          media,
          [('logging.conf', '..\\logging.conf', 'DATA')],
          a.zipfiles,
          a.datas,
          name = os.path.join('build', 'CouchPotato.exe'),
          debug = False,
          strip = False,
          upx = True,
          console = False )
[/code]
Complete python code can be found on GitHub: 
http://github.com/RuudBurger/CouchPotato

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en.

Reply via email to