Skip to content

Compiling for Windows

clinton-hall edited this page Mar 22, 2013 · 11 revisions

Compiling for Windows

This page is primarily being used as a note to myself so i can more efficiently compile these on major updates without having to re-discover all those little issues ;)

If you want to compile your own windows .exe's from current dev branch, in order to roll out onto other computers, do the following:

Requirements

Python 2.7.3

Pywin 32

pyInstaller

TorrentToMedia.exe

  1. All files from autoProcess folder must be moved into the main (nzbToMedia) folder

  2. TorrentToMedia.py needs to have the line (6) removed or commented out.

      sys.path.insert(0, os.path.join(os.path.dirname(sys.argv[0]),'autoProcess/'))  
    
  3. compile using pyinstaller with

     C:\Python27\python.exe C:\pyinstaller-2.0\pyinstaller.py -F -w C:\nzbToMedia\TorrentToMedia.py
    
     -F = single file, -w = suppresses console
    
  4. In order to get full functioning you need to include the following folders/packages in the same directory as TorrentToMedia.exe

     autoProcessMedia.cfg.sample (from this repo)
    
     extractor (folder from this repo)
    
     ffmpeg\bin\ffmpeg.exe (required if you want to transcode only)
    

nzbToMedia.exe

  1. All files from autoProcess folder must be moved into the main (nzbToMedia) folder

  2. nzbToMedia.py needs to have line (5) removed or commented out.

     sys.path.insert(0, os.path.join(os.path.dirname(sys.argv[0]),'autoProcess/'))  
    
  3. compile using pyinstaller with

     C:\Python27\python.exe C:\pyinstaller-2.0\pyinstaller.py -F -w C:\nzbToMedia\nzbToMedia.py
    
     -F = single file, -w = suppresses console
    
  4. In order to get full functioning you need to include the following folders/packages in the same directory as nzbToMedia.exe

     autoProcessMedia.cfg.sample (from this repo)
    
     ffmpeg\bin\ffmpeg.exe (required if you want to transcode only)
    

nzbget-postprocess.exe

  1. The following files from autoProcess folder must be moved into the folder with nzbget-postprocess.py (nzbToMedia\nzbget-postprocessing-files\windows-builder)

      Transcoder.py
    
      Linktastic\linktastic.py folder (not used, but imported in nzbToMediaUtil.py)
    
      nzbToMediaUtil.py
    
      migratecfg.py
    
      nzbToMediaEnv.py
    
      nzbToMediaSceneExceptions.py
    
      autoProcess* files (all of them)
    
  2. compile using pyinstaller with

     C:\Python27\python.exe C:\pyinstaller-2.0\pyinstaller.py -F -w C:\nzbToMedia\nzbget-postprocessing-files\windows-builder\nzbget-postprocess.py
    
     -F = single file, -w = suppresses console
    
  3. In order to get full functioning you need to include the following folders/packages in the same directory as nzbget-postprocess.exe

     sendEmail\sendEmail.exe (required if you want email notification only)
    
     ffmpeg\bin\ffmpeg.exe (required if you want to transcode only)
    

Required 3rd party binaries

The extraction (7zip.exe) and the create hidden process (chp.exe) binaries are included in the "extractor" folder of this repo as they are relatively small.

the following binaries can downloaded from the links below:

ffmpeg.exe

sendEmail.exe

Clone this wiki locally