# Scripting by PhobosK # Released under GPLv3 # # Run the build process by entering 'setup.py py2exe' or # 'python setup.py py2exe' in a console prompt. # # If everything works well, you should find a subdirectory named 'dist' # containing some files. # # # WARNING: Distributing the installer or the binaries that you get via this script # breaks the EULAs with Microsoft and this makes their distribution ILLEGAL. # BTW the same issue is with the official SubDownloader installer/binaries... # # from distutils.core import setup import py2exe setup( version = "2.0.9", description = "An application to download subtitles for your movies.", name = "SubDownloader", license = "GPL", maintainer='PhobosK', windows=[{ "script":"run.py", "icon_resources": [(0, 'gui\\images\\icon32.ico')], "dest_base":"SubDownloader", }], options={"py2exe": { "includes":["sip"], "bundle_files": 1, "compressed": 1, "optimize": 2, }, }, zipfile = None, data_files=[ ('gui\\images', ['gui\\images\\splash.png']), ('gui\\images', ['gui\\images\\icon32.ico']), ('locale\\de\\LC_MESSAGES', ['locale\\de\\LC_MESSAGES\\subdownloader.mo']), ('locale\\en\\LC_MESSAGES', ['locale\\en\\LC_MESSAGES\\subdownloader.mo', 'locale\\en\\LC_MESSAGES\\subdownloader.pot']), ('locale\\es\\LC_MESSAGES', ['locale\\es\\LC_MESSAGES\\subdownloader.mo']), ('locale\\eu\\LC_MESSAGES', ['locale\\eu\\LC_MESSAGES\\subdownloader.mo']), ('locale\\fi\\LC_MESSAGES', ['locale\\fi\\LC_MESSAGES\\subdownloader.mo']), ('locale\\fr\\LC_MESSAGES', ['locale\\fr\\LC_MESSAGES\\subdownloader.mo']), ('locale\\he\\LC_MESSAGES', ['locale\\he\\LC_MESSAGES\\subdownloader.mo']), ('locale\\hu\\LC_MESSAGES', ['locale\\hu\\LC_MESSAGES\\subdownloader.mo']), ('locale\\it\\LC_MESSAGES', ['locale\\it\\LC_MESSAGES\\subdownloader.mo']), ('locale\\nl\\LC_MESSAGES', ['locale\\nl\\LC_MESSAGES\\subdownloader.mo']), ('locale\\pl\\LC_MESSAGES', ['locale\\pl\\LC_MESSAGES\\subdownloader.mo']), ('locale\\pt\\LC_MESSAGES', ['locale\\pt\\LC_MESSAGES\\subdownloader.mo']), ('locale\\pt_BR\\LC_MESSAGES', ['locale\\pt_BR\\LC_MESSAGES\\subdownloader.mo']), ('locale\\ro\\LC_MESSAGES', ['locale\\ro\\LC_MESSAGES\\subdownloader.mo']), ('locale\\ru\\LC_MESSAGES', ['locale\\ru\\LC_MESSAGES\\subdownloader.mo']), ('locale\\sk\\LC_MESSAGES', ['locale\\sk\\LC_MESSAGES\\subdownloader.mo']), ('locale\\sv\\LC_MESSAGES', ['locale\\sv\\LC_MESSAGES\\subdownloader.mo']), ('locale\\vi\\LC_MESSAGES', ['locale\\vi\\LC_MESSAGES\\subdownloader.mo']), ('locale\\zh_TW\\LC_MESSAGES', ['locale\\zh_TW\\LC_MESSAGES\\subdownloader.mo']), ('languages\\lm', ['languages\\lm\\afrikaans.lm', 'languages\\lm\\albanian.lm', 'languages\\lm\\amharic-utf.lm', 'languages\\lm\\arabic-iso8859_6.lm', 'languages\\lm\\arabic-windows1256.lm', 'languages\\lm\\armenian.lm', 'languages\\lm\\basque.lm', 'languages\\lm\\belarus-windows1251.lm', 'languages\\lm\\bosnian.lm', 'languages\\lm\\Brazilian.lm', 'languages\\lm\\breton.lm', 'languages\\lm\\Bulgarian.lm', 'languages\\lm\\catalan.lm', 'languages\\lm\\chinese-gb2312.lm', 'languages\\lm\\Chinese.lm', 'languages\\lm\\Croatian.lm', 'languages\\lm\\Czech.lm', 'languages\\lm\\danish.lm', 'languages\\lm\\dutch.lm', 'languages\\lm\\english.lm', 'languages\\lm\\esperanto.lm', 'languages\\lm\\estonian.lm', 'languages\\lm\\finnish.lm', 'languages\\lm\\french.lm', 'languages\\lm\\frisian.lm', 'languages\\lm\\georgian.lm', 'languages\\lm\\german.lm', 'languages\\lm\\Greek.lm', 'languages\\lm\\Hebrew.lm', 'languages\\lm\\hindi.lm', 'languages\\lm\\hungarian.lm', 'languages\\lm\\icelandic.lm', 'languages\\lm\\indonesian.lm', 'languages\\lm\\irish.lm', 'languages\\lm\\italian.lm', 'languages\\lm\\japanese-euc_jp.lm', 'languages\\lm\\Japanese.lm', 'languages\\lm\\korean.lm', 'languages\\lm\\latin.lm', 'languages\\lm\\latvian.lm', 'languages\\lm\\lithuanian.lm', 'languages\\lm\\malay.lm', 'languages\\lm\\manx.lm', 'languages\\lm\\marathi.lm', 'languages\\lm\\mingo.lm', 'languages\\lm\\nepali.lm', 'languages\\lm\\norwegian.lm', 'languages\\lm\\persian.lm', 'languages\\lm\\polish.lm', 'languages\\lm\\portuguese.lm', 'languages\\lm\\quechua.lm', 'languages\\lm\\romanian.lm', 'languages\\lm\\rumantsch.lm', 'languages\\lm\\russian-iso8859_5.lm', 'languages\\lm\\russian-koi8_r.lm', 'languages\\lm\\Russian.lm', 'languages\\lm\\sanskrit.lm', 'languages\\lm\\scots_gaelic.lm', 'languages\\lm\\Serbian.lm', 'languages\\lm\\slovak-ascii.lm', 'languages\\lm\\Slovak.lm', 'languages\\lm\\slovenian-ascii.lm', 'languages\\lm\\Slovenian.lm', 'languages\\lm\\spanish.lm', 'languages\\lm\\swahili.lm', 'languages\\lm\\swedish.lm', 'languages\\lm\\tagalog.lm', 'languages\\lm\\tamil.lm', 'languages\\lm\\thai.lm', 'languages\\lm\\turkish.lm', 'languages\\lm\\Ukrainian.lm', 'languages\\lm\\vietnamese.lm', 'languages\\lm\\welsh.lm', 'languages\\lm\\yiddish-utf.lm']), ], )