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 }