summaryrefslogtreecommitdiffstats
path: root/projects/windows
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xprojects/windows/copy.sh5
-rw-r--r--projects/windows/docker-compose.yml (renamed from windows/docker-compose.yml)0
-rw-r--r--projects/windows/icon.ico (renamed from windows/icon.ico)bin4286 -> 4286 bytes
-rw-r--r--projects/windows/main.py (renamed from windows/main.py)0
-rw-r--r--projects/windows/main.spec (renamed from windows/main.spec)27
5 files changed, 18 insertions, 14 deletions
diff --git a/projects/windows/copy.sh b/projects/windows/copy.sh
new file mode 100755
index 00000000..58faadd5
--- /dev/null
+++ b/projects/windows/copy.sh
@@ -0,0 +1,5 @@
+cp -r * /var/win/shared/
+cp -r windows/* /var/win/shared/
+cp setup.py /var/win/shared/
+cp README.md /var/win/shared/
+#git clone https://github.com/pyinstaller/pyinstaller/ /var/win/shared/pyinstaller \ No newline at end of file
diff --git a/windows/docker-compose.yml b/projects/windows/docker-compose.yml
index 1aa59caf..1aa59caf 100644
--- a/windows/docker-compose.yml
+++ b/projects/windows/docker-compose.yml
diff --git a/windows/icon.ico b/projects/windows/icon.ico
index 56ee955e..56ee955e 100644
--- a/windows/icon.ico
+++ b/projects/windows/icon.ico
Binary files differ
diff --git a/windows/main.py b/projects/windows/main.py
index 11a3f902..11a3f902 100644
--- a/windows/main.py
+++ b/projects/windows/main.py
diff --git a/windows/main.spec b/projects/windows/main.spec
index 9dd1d098..35f6d3ac 100644
--- a/windows/main.spec
+++ b/projects/windows/main.spec
@@ -1,9 +1,6 @@
# -*- mode: python ; coding: utf-8 -*-
-block_cipher = None
-
-
a = Analysis(
['main.py'],
pathex=[],
@@ -14,29 +11,21 @@ a = Analysis(
hooksconfig={},
runtime_hooks=[],
excludes=[],
- win_no_prefer_redirects=False,
- win_private_assemblies=False,
- cipher=block_cipher,
noarchive=False,
)
-pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
+pyz = PYZ(a.pure)
exe = EXE(
pyz,
a.scripts,
- a.binaries,
- Tree('C:/Users/Docker/AppData/Local/Packages/PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0/LocalCache/local-packages/Python311/site-packages/g4f/gui/client', prefix='client'),
- a.zipfiles,
- a.datas,
[],
+ exclude_binaries=True,
name='g4f',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
- upx_exclude=[],
- runtime_tmpdir=None,
- console=False,
+ console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
@@ -44,3 +33,13 @@ exe = EXE(
entitlements_file=None,
icon='icon.ico',
)
+coll = COLLECT(
+ exe,
+ a.binaries,
+ Tree('//host.lan/Data/g4f/gui/client', prefix='client'),
+ a.datas,
+ strip=False,
+ upx=True,
+ upx_exclude=[],
+ name='g4f',
+) \ No newline at end of file