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:
1 parent
380d1d4b25
commit
18c523e63c
3 files changed
+7
-5
No files matched your search
@@ -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/*
|
||||
|
||||
+2
-1
@@ -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'],
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user