Refactor web build output and packaging paths
Updated Dockerfile to copy from /biliup/out instead of /biliup/biliup/web/public. Removed web public directory from PyInstaller and pyproject.toml includes. Adjusted build script in package.json to stop copying build output to web/public. These changes streamline the build and packaging process by consolidating output paths.
This commit is contained in:
1 parent
3744c0f14c
commit
1e035df468
4 files changed
+4
-4
No files matched your search
+1
-1
@@ -95,7 +95,7 @@ RUN set -eux; \
|
||||
/var/tmp/* \
|
||||
/var/log/*
|
||||
|
||||
COPY --from=webui /biliup/biliup/web/public/ /biliup/biliup/web/public/
|
||||
COPY --from=webui /biliup/out /biliup/out
|
||||
WORKDIR /opt
|
||||
|
||||
ENTRYPOINT ["biliup"]
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
# -*- mode: python ; coding: utf-8 -*-
|
||||
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/Danmaku/douyin_util/', 'biliup/Danmaku/douyin_util/')]
|
||||
binaries = []
|
||||
hiddenimports = []
|
||||
tmp_ret = collect_all('biliup.plugins')
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
"build": "next build && ncp ./out ./biliup/web/public",
|
||||
"build": "next build",
|
||||
"start": "next start",
|
||||
"lint": "next lint"
|
||||
},
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ build-backend = "maturin"
|
||||
# "extension-module" tells pyo3 we want to build an extension module (skips linking against libpython.so)
|
||||
features = ["pyo3/extension-module"]
|
||||
# Include additional files
|
||||
include = [ "biliup/web/public/**/*" ]
|
||||
#include = [ "biliup/web/public/**/*" ]
|
||||
#data = "biliup/web/public"
|
||||
python-packages = ["biliup"]
|
||||
manifest-path = "crates/stream-gears/Cargo.toml"
|
||||
|
||||
Reference in new issue
Block a user