fix build
This commit is contained in:
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
@ -95,7 +95,6 @@ jobs:
|
|||||||
New-Item -Path "nginx/temp/__keep__.txt" -ItemType File -Force
|
New-Item -Path "nginx/temp/__keep__.txt" -ItemType File -Force
|
||||||
New-Item -Path "nginx/logs" -ItemType Directory -Force
|
New-Item -Path "nginx/logs" -ItemType Directory -Force
|
||||||
New-Item -Path "nginx/logs/__keep__.txt" -ItemType File -Force
|
New-Item -Path "nginx/logs/__keep__.txt" -ItemType File -Force
|
||||||
Rename-Item -Path "nginx/nginx.exe" -NewName "nginx_mp.exe" -Force
|
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|
||||||
- name: Pyinstaller
|
- name: Pyinstaller
|
||||||
|
@ -63,9 +63,9 @@ def start_frontend():
|
|||||||
if not SystemUtils.is_frozen():
|
if not SystemUtils.is_frozen():
|
||||||
return
|
return
|
||||||
if SystemUtils.is_windows():
|
if SystemUtils.is_windows():
|
||||||
nginx_path = settings.ROOT_PATH / 'nginx' / 'nginx_mp.exe'
|
nginx_path = settings.ROOT_PATH / 'nginx' / 'nginx.exe'
|
||||||
else:
|
else:
|
||||||
nginx_path = settings.ROOT_PATH / 'nginx' / 'nginx_mp'
|
nginx_path = settings.ROOT_PATH / 'nginx' / 'nginx'
|
||||||
if Path(nginx_path).exists():
|
if Path(nginx_path).exists():
|
||||||
import subprocess
|
import subprocess
|
||||||
subprocess.Popen(f"start {nginx_path}", shell=True)
|
subprocess.Popen(f"start {nginx_path}", shell=True)
|
||||||
@ -79,9 +79,9 @@ def stop_frontend():
|
|||||||
return
|
return
|
||||||
import subprocess
|
import subprocess
|
||||||
if SystemUtils.is_windows():
|
if SystemUtils.is_windows():
|
||||||
subprocess.Popen(f"taskkill /f /im nginx_mp.exe", shell=True)
|
subprocess.Popen(f"taskkill /f /im nginx.exe", shell=True)
|
||||||
else:
|
else:
|
||||||
subprocess.Popen(f"killall nginx_mp", shell=True)
|
subprocess.Popen(f"killall nginx", shell=True)
|
||||||
|
|
||||||
|
|
||||||
def start_tray():
|
def start_tray():
|
||||||
|
Reference in New Issue
Block a user