From 18c523e63c6bc8d585d30a4b703fc61e638bc2f0 Mon Sep 17 00:00:00 2001 From: ForgQi <34411314+ForgQi@users.noreply.github.com> Date: Fri, 18 Jul 2025 03:01:20 +0800 Subject: [PATCH] Update pyinstaller-publish.yml Fix pyinstaller copy metadata (#1357) * Update tauri.conf.json * Update biliup.spec Update pyinstaller-publish.yml --- .github/workflows/pyinstaller-publish.yml | 5 +++-- biliup.spec | 3 ++- tauri-app/src-tauri/tauri.conf.json | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pyinstaller-publish.yml b/.github/workflows/pyinstaller-publish.yml index 60e464a..5a69524 100644 --- a/.github/workflows/pyinstaller-publish.yml +++ b/.github/workflows/pyinstaller-publish.yml @@ -27,10 +27,11 @@ jobs: command: build args: --release - name: Build + shell: bash run: | python -m pip install --upgrade pip pip install target/wheels/*.whl - pip install pyinstaller + pip install Pillow pyinstaller pyinstaller biliup.spec - name: Rename and move sidecar run: | @@ -63,7 +64,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tagName: ${{ github.ref }} # the action automatically replaces \_\_VERSION\_\_ with the app version. - + projectPath: tauri-app # - uses: actions/upload-artifact@v4 # with: # path: dist/* diff --git a/biliup.spec b/biliup.spec index d94c8d3..ae5cd0f 100644 --- a/biliup.spec +++ b/biliup.spec @@ -1,11 +1,12 @@ # -*- mode: python ; coding: utf-8 -*- -from PyInstaller.utils.hooks import collect_all +from PyInstaller.utils.hooks import collect_all, copy_metadata datas = [('biliup/database/migration/', 'biliup/database/migration/'), ('biliup/web/public/', 'biliup/web/public/'), ('biliup/Danmaku/douyin_util/', 'biliup/Danmaku/douyin_util/')] binaries = [] hiddenimports = [] tmp_ret = collect_all('biliup.plugins') datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2] +datas += copy_metadata('biliup') a = Analysis( ['biliup\\__main__.py'], diff --git a/tauri-app/src-tauri/tauri.conf.json b/tauri-app/src-tauri/tauri.conf.json index 43385ba..8362609 100644 --- a/tauri-app/src-tauri/tauri.conf.json +++ b/tauri-app/src-tauri/tauri.conf.json @@ -1,6 +1,6 @@ { "$schema": "https://schema.tauri.app/config/2", - "productName": "tauri-app", + "productName": "bbup-app", "version": "0.1.0", "identifier": "com.tauri-app.app", "build": { @@ -12,7 +12,7 @@ "app": { "windows": [ { - "title": "tauri-app", + "title": "bbup-app", "width": 800, "height": 600 }