XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

Create windows release, improve styling

c8d61a08
Heiner Lohaus <hlohaus@users.noreply.github.com>
提交于

代码差异

5 个文件 +30 -30
Modified README.md +4 -6
@@ -104,12 +104,10 @@ docker run -p 8080:8080 -p 1337:1337 -p 7900:7900 --shm-size="2g" -v ${PWD}/har_
104 104
105 105 #### Installation Guide for Windows (.exe)
106 106 To ensure the seamless operation of our application, please follow the instructions below. These steps are designed to guide you through the installation process on Windows operating systems.
107 ##### Prerequisites
108 1. **WebView2 Runtime**: Our application requires the *WebView2 Runtime* to be installed on your system. If you do not have it installed, please download and install it from the [Microsoft Developer Website](https://developer.microsoft.com/en-us/microsoft-edge/webview2/). If you already have *WebView2 Runtime* installed but are encountering issues, navigate to *Installed Windows Apps*, select *WebView2*, and opt for the repair option.
109 ##### Installation Steps
110 2. **Download the Application**: Visit our [latest releases page](https://github.com/xtekky/gpt4free/releases/latest) and download the most recent version of the application, named `g4f.webview.*.exe`.
111 3. **File Placement**: Once downloaded, transfer the `.exe` file from your downloads folder to a directory of your choice on your system, and then execute it to run the app.
112 ##### Post-Installation Adjustment
107 ### Installation Steps
108 1. **Download the Application**: Visit our [latest releases page](https://github.com/xtekky/gpt4free/releases/latest) and download the most recent version of the application, named `g4f.exe.zip`.
109 2. **File Placement**: After downloading, locate the `.zip` file in your Downloads folder. Unpack it to a directory of your choice on your system, then execute the `g4f.exe` file to run the app.
110 3. **Open GUI**: The app starts a web server with the GUI. Open your favorite browser and navigate to `http://localhost:8080/chat/` to access the application interface.
113 111 4. **Firewall Configuration (Hotfix)**: Upon installation, it may be necessary to adjust your Windows Firewall settings to allow the application to operate correctly. To do this, access your Windows Firewall settings and allow the application.
114 112
115 113 By following these steps, you should be able to successfully install and run the application on your Windows system. If you encounter any issues during the installation process, please refer to our Issue Tracker or try to get contact over Discord for assistance.
Modified g4f/gui/client/static/css/style.css +20 -15
@@ -61,6 +61,8 @@
61 61 --user-input: #ac87bb;
62 62 --conversations: #c7a2ff;
63 63 --conversations-hover: #c7a2ff4d;
64 --scrollbar: var(--colour-3);
65 --scrollbar-thumb: var(--blur-bg);
64 66 }
65 67
66 68 :root {
@@ -379,7 +381,10 @@ body {
379 381 z-index: 1000;
380 382 display: none;
381 383 cursor: pointer;
382 filter: grayscale(1) invert(1);
384 }
385
386 .message .user .fa-xmark {
387 color: var(--colour-1);
383 388 }
384 389
385 390 .message .count .fa-clipboard,
@@ -389,10 +394,6 @@ body {
389 394 cursor: pointer;
390 395 }
391 396
392 .message .user .fa-xmark {
393 color: var(--colour-1);
394 }
395
396 397 .message .count .fa-clipboard {
397 398 color: var(--colour-3);
398 399 }
@@ -697,6 +698,7 @@ select {
697 698 background: transparent;
698 699 cursor: pointer;
699 700 height: 49px;
701 color: var(--colour-3);
700 702 }
701 703
702 704 @media only screen and (min-width: 40em) {
@@ -1003,6 +1005,16 @@ a:-webkit-any-link {
1003 1005 --conversations: #0062cc;
1004 1006 --colour-1: #ffffff;
1005 1007 --colour-3: #212529;
1008 --scrollbar: var(--colour-1);
1009 --scrollbar-thumb: var(--gradient);
1010 }
1011
1012 .white .message .assistant .fa-xmark {
1013 color: var(--colour-1);
1014 }
1015
1016 .white .message .user .fa-xmark {
1017 color: var(--colour-3);
1006 1018 }
1007 1019
1008 1020 #send-button {
@@ -1072,15 +1084,12 @@ a:-webkit-any-link {
1072 1084 white-space:nowrap;
1073 1085 }
1074 1086
1075 ::-webkit-scrollbar {
1076 width: 10px;
1077 }
1078 1087 ::-webkit-scrollbar-track {
1079 background: var(--colour-3);
1088 background: var(--scrollbar);
1080 1089 }
1081 1090 ::-webkit-scrollbar-thumb {
1082 background: var(--blur-bg);
1083 border-radius: 5px;
1091 background: var(--scrollbar-thumb);
1092 border-radius: 2px;
1084 1093 }
1085 1094 ::-webkit-scrollbar-thumb:hover {
1086 1095 background: var(--accent);
@@ -1100,10 +1109,6 @@ a:-webkit-any-link {
1100 1109 max-height: 200px;
1101 1110 }
1102 1111
1103 #message-input::-webkit-scrollbar {
1104 width: 5px;
1105 }
1106
1107 1112 .hidden {
1108 1113 display: none;
1109 1114 }
Modified projects/windows/copy.sh +1 -1
@@ -1,5 +1,5 @@
1 1 cp -r * /var/win/shared/
2 cp -r windows/* /var/win/shared/
2 cp -r projects/windows/* /var/win/shared/
3 3 cp setup.py /var/win/shared/
4 4 cp README.md /var/win/shared/
5 5 #git clone https://github.com/pyinstaller/pyinstaller/ /var/win/shared/pyinstaller
Modified projects/windows/main.py +3 -6
@@ -8,15 +8,12 @@ ssl.create_default_context = partial(
8 8 cafile=certifi.where()
9 9 )
10 10
11 from g4f.gui.webview import run_webview
12 from g4f.gui.run import gui_parser
11 from g4f.gui.run import run_gui_args, gui_parser
13 12 import g4f.debug
14 13 g4f.debug.version_check = False
15 g4f.debug.version = "0.2.8.0"
14 g4f.debug.version = "0.3.1.7"
16 15
17 16 if __name__ == "__main__":
18 17 parser = gui_parser()
19 18 args = parser.parse_args()
20 if args.debug:
21 g4f.debug.logging = True
22 run_webview(args.debug)
19 run_gui_args(args)
Modified projects/windows/main.spec +2 -2
@@ -6,7 +6,7 @@ a = Analysis(
6 6 pathex=[],
7 7 binaries=[],
8 8 datas=[],
9 hiddenimports=['plyer.platforms.linux.filechooser', 'plyer.platforms.win.filechooser'],
9 hiddenimports=[],
10 10 hookspath=[],
11 11 hooksconfig={},
12 12 runtime_hooks=[],
@@ -42,4 +42,4 @@ coll = COLLECT(
42 42 upx=True,
43 43 upx_exclude=[],
44 44 name='g4f',
45 )
45 )