macOS hydrus source fix

With luck, this puts the 'hydrus' source structure back in, which PyOxidizer, unlike PyInstaller, needs.

Also a test to see if putting server.exe in 'binaries' is ok for Win/Linux
This commit is contained in:
Hydrus Network Developer 2023-05-15 19:56:28 -05:00
parent eacb26aef3
commit 8951b2f762
No known key found for this signature in database
GPG Key ID: 76249F053212133C
3 changed files with 8 additions and 5 deletions

View File

@ -9,19 +9,19 @@ block_cipher = None
a = Analysis(['hydrus/hydrus_client.py'],
pathex=['.'],
binaries=[],
binaries=[
('dist/hydrus_server/hydrus_server', '.')
],
datas=[
('hydrus/bin', 'bin'),
('hydrus/help', 'help'),
('hydrus/static', 'static'),
('dist/hydrus_server/hydrus_server', '.'),
('hydrus/license.txt', '.'),
('hydrus/README.md', '.'),
('hydrus/help my client will not boot.txt', '.'),
('hydrus/db', 'db'),
(cloudscraper_dir, 'cloudscraper')
],
hiddenimports=['hydrus/hydrus_server.py'],
hookspath=[],
runtime_hooks=[],
excludes=[],

View File

@ -36,6 +36,9 @@ def make_install(client, resources):
static_resources = glob(["./*.py", "./*.md", "./*txt", "./bin/**/*", "./static/**/*", "./help/**/*"], strip_prefix="{}/".format(CWD))
files.add_manifest(static_resources)
hydrus_source = glob(["./hydrus/**/*.py"], strip_prefix="{}/".format(CWD))
files.add_manifest(hydrus_source)
return files

View File

@ -13,19 +13,19 @@ a = Analysis(['hydrus\\hydrus_client.pyw'],
binaries=[
('hydrus\\sqlite3.dll', '.'),
('hydrus\\mpv-2.dll', '.')
('dist\\hydrus_server\\hydrus_server.exe*', '.'),
],
datas=[
('hydrus\\bin', 'bin'),
('hydrus\\help', 'help'),
('hydrus\\static', 'static'),
('dist\\hydrus_server\\hydrus_server.exe*', '.'),
('hydrus\\license.txt', '.'),
('hydrus\\README.md', '.'),
('hydrus\\help my client will not boot.txt', '.'),
('hydrus\\db', 'db'),
(cloudscraper_dir, 'cloudscraper')
],
hiddenimports=['hydrus\\hydrus_server.py', 'cloudscraper'],
hiddenimports=['cloudscraper'],
hookspath=[],
runtime_hooks=[],
excludes=[],