made pyinstaller work for windows (#35)

This commit is contained in:
Micah Lee 2014-06-24 17:23:10 -04:00
parent fc13ef5707
commit cf7d04099e
5 changed files with 35 additions and 17 deletions

View file

@ -1,2 +1,7 @@
import onionshare_gui
# import stuff for pyinstaller to find
import os, sys, subprocess, time, hashlib, platform, json, locale, socket, argparse, Queue, inspect, base64, random, functools
import PyQt4.QtCore, PyQt4.QtGui, PyQt4.QtWebKit
import stem, stem.control, flask
import onionshare, onionshare_gui
onionshare_gui.main()

24
setup/onionshare-win.spec Normal file
View file

@ -0,0 +1,24 @@
# -*- mode: python -*-
a = Analysis(['setup/onionshare-launcher.py'],
hiddenimports=['onionshare', 'onionshare_gui'],
hookspath=None,
runtime_hooks=None)
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
exclude_binaries=True,
name='onionshare.exe',
debug=False,
strip=False,
upx=True,
icon='setup/onionshare.ico',
console=False )
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
Tree('onionshare', prefix='onionshare'),
Tree('onionshare_gui', prefix='onionshare_gui'),
strip=False,
upx=True,
name='onionshare')

BIN
setup/onionshare.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB