diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4fcf9be..636e689 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -46,7 +46,7 @@ jobs: fi - name: Build executable run: | - pip install pyinstaller==5.* + pip install pyinstaller==6.* python -c "import time;open('define.py','a').write(f'\nBUILD_TIME={time.time():.0f}')" if [[ $RUNNER_OS == "Windows" || $RUNNER_OS == "Linux" ]]; then export REGUI_ONEFILE=1 diff --git a/realesrgan-gui.spec b/realesrgan-gui.spec index 4d98fa1..e7c8259 100644 --- a/realesrgan-gui.spec +++ b/realesrgan-gui.spec @@ -10,7 +10,7 @@ a = Analysis( ('icon-256px.ico', '.'), ('icon-128px.png', '.'), # macOS下通过app实现通知,打包时需要附带 - *(collect_data_files('notifypy') if sys.platform == 'darwin' else []), + *collect_data_files('notifypy'), ], hiddenimports=[ 'PIL._tkinter_finder',