aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2022-03-31 12:31:48 -0700
committerMicah Lee <micah@micahflee.com>2022-03-31 12:31:48 -0700
commit686ea63580fc617b972689becebeea2f8ce3031c (patch)
treeb67d971e6c7d952353f5cb62204e64705bcff9dd
parent9079dee4e31015f093bab9ab63e1c2f8646eabfe (diff)
downloadonionshare-686ea63580fc617b972689becebeea2f8ce3031c.tar.gz
onionshare-686ea63580fc617b972689becebeea2f8ce3031c.zip
Try a different way of explicitly defining what packages to include and exclude
-rw-r--r--desktop/setup-freeze.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/desktop/setup-freeze.py b/desktop/setup-freeze.py
index 3bedb1a3..ccb5a541 100644
--- a/desktop/setup-freeze.py
+++ b/desktop/setup-freeze.py
@@ -24,6 +24,7 @@ import platform
import shutil
import cx_Freeze
from cx_Freeze import setup, Executable
+from setuptools import find_packages
# There's an obscure cx_Freeze bug that I'm hitting that's preventing the macOS
# package from getting built. This is some monkeypatching to fix it.
@@ -148,6 +149,11 @@ setup(
name="onionshare",
version=version,
description="Securely and anonymously share files, host websites, and chat with friends using the Tor network",
+ packages=find_packages(
+ where=".",
+ include=["onionshare"],
+ exclude=["package", "screenshots", "scripts", "tests"],
+ ),
options={
# build_exe, for Windows and macOS
"build_exe": {
@@ -166,9 +172,6 @@ setup(
"PySide2.QtWidgets",
],
"excludes": [
- "package",
- "screenshots",
- "scripts",
"test",
"tkinter",
"PySide2.Qt3DAnimation",
@@ -217,7 +220,7 @@ setup(
# bdist_mac, making the macOS app bundle
"bdist_mac": {
"iconfile": os.path.join("onionshare", "resources", "onionshare.icns"),
- "bundle_name": "OnionShare"
+ "bundle_name": "OnionShare",
},
},
executables=[