Update pyinstaller-publish.yml

Fix pyinstaller copy metadata (#1357)

* Update tauri.conf.json

* Update biliup.spec

Update pyinstaller-publish.yml
This commit is contained in:
ForgQi committed 2025-07-22 01:52:43 +08:00
1 parent 380d1d4b25
commit 18c523e63c
3 files changed
+7 -5

No files matched your search

+3 -2
View File
@@ -27,10 +27,11 @@ jobs:
command: build command: build
args: --release args: --release
- name: Build - name: Build
shell: bash
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install target/wheels/*.whl pip install target/wheels/*.whl
pip install pyinstaller pip install Pillow pyinstaller
pyinstaller biliup.spec pyinstaller biliup.spec
- name: Rename and move sidecar - name: Rename and move sidecar
run: | run: |
@@ -63,7 +64,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
tagName: ${{ github.ref }} # the action automatically replaces \_\_VERSION\_\_ with the app version. tagName: ${{ github.ref }} # the action automatically replaces \_\_VERSION\_\_ with the app version.
projectPath: tauri-app
# - uses: actions/upload-artifact@v4 # - uses: actions/upload-artifact@v4
# with: # with:
# path: dist/* # path: dist/*
+2 -1
View File
@@ -1,11 +1,12 @@
# -*- mode: python ; coding: utf-8 -*- # -*- 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/')] datas = [('biliup/database/migration/', 'biliup/database/migration/'), ('biliup/web/public/', 'biliup/web/public/'), ('biliup/Danmaku/douyin_util/', 'biliup/Danmaku/douyin_util/')]
binaries = [] binaries = []
hiddenimports = [] hiddenimports = []
tmp_ret = collect_all('biliup.plugins') tmp_ret = collect_all('biliup.plugins')
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2] datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]
datas += copy_metadata('biliup')
a = Analysis( a = Analysis(
['biliup\\__main__.py'], ['biliup\\__main__.py'],
+2 -2
View File
@@ -1,6 +1,6 @@
{ {
"$schema": "https://schema.tauri.app/config/2", "$schema": "https://schema.tauri.app/config/2",
"productName": "tauri-app", "productName": "bbup-app",
"version": "0.1.0", "version": "0.1.0",
"identifier": "com.tauri-app.app", "identifier": "com.tauri-app.app",
"build": { "build": {
@@ -12,7 +12,7 @@
"app": { "app": {
"windows": [ "windows": [
{ {
"title": "tauri-app", "title": "bbup-app",
"width": 800, "width": 800,
"height": 600 "height": 600
} }