mirror of
https://github.com/onionshare/onionshare.git
synced 2025-08-06 05:14:13 -04:00
made pyinstaller work for windows (#35)
This commit is contained in:
parent
fc13ef5707
commit
cf7d04099e
5 changed files with 35 additions and 17 deletions
|
@ -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
24
setup/onionshare-win.spec
Normal 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
BIN
setup/onionshare.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
Loading…
Add table
Add a link
Reference in a new issue