-
Notifications
You must be signed in to change notification settings - Fork 174
Compiling for Windows
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:
Python 2.7.3
PyWin32
pyInstaller
-
All files from autoProcess folder must be moved into the main (nzbToMedia) folder
-
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/'))
-
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
-
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)
-
All files from autoProcess folder must be moved into the main (nzbToMedia) folder
-
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/'))
-
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
-
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)
-
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)
-
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
-
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)
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: