build: prepare complete V1.2.1 runtime and Gitea regression workflow
Core regression / Python core and release configuration (push) Failing after 1m52s
Core regression / Python core and release configuration (push) Failing after 1m52s
This commit is contained in:
1 parent
344a2797b0
commit
cd9431985e
8 files changed
+99
-16
No files matched your search
@@ -3,14 +3,11 @@
|
||||
|
||||
from pathlib import Path
|
||||
import shutil
|
||||
import sys
|
||||
|
||||
import win32com.client.gencache
|
||||
|
||||
|
||||
project_root = Path(SPECPATH).parent
|
||||
sys.path.insert(0, str(project_root / 'packaging'))
|
||||
from dsh_runtime_staging import stage_node_modules
|
||||
generated_root = project_root / "build" / "DxPartReplace-generated"
|
||||
generated_root.mkdir(parents=True, exist_ok=True)
|
||||
viewdraw_api = win32com.client.gencache.EnsureModule(
|
||||
@@ -21,7 +18,7 @@ if viewdraw_api is None:
|
||||
shutil.copyfile(viewdraw_api.__file__, generated_root / "viewdraw_api.py")
|
||||
legacy_runtime_datas = [
|
||||
(
|
||||
str(project_root / 'src/dx_productivity/trial_task_center/assets/app.ico'),
|
||||
str(project_root / 'src/dx_productivity/trial_task_center/assets'),
|
||||
'dx_productivity/trial_task_center/assets',
|
||||
),
|
||||
(
|
||||
@@ -41,8 +38,9 @@ if (dsh_root / 'issue-bootstrap.json').is_file():
|
||||
if (dsh_root / 'node_modules' / '@deepseek-ai' / 'dsh' / 'package.json').is_file():
|
||||
if not (dsh_root / 'issue-bootstrap.json').is_file():
|
||||
raise RuntimeError('Provision the DSH issue-only reporter before packaging the native assistant.')
|
||||
staged_node_modules = stage_node_modules(
|
||||
dsh_root / 'node_modules', generated_root / 'dsh-node_modules')
|
||||
# Release distribution keeps the complete installed runtime, including
|
||||
# lazily loaded packages, native binaries, frontend assets and metadata.
|
||||
staged_node_modules = dsh_root / 'node_modules'
|
||||
legacy_runtime_datas.extend([
|
||||
(str(dsh_root / 'start.mjs'), 'dsh-runtime'),
|
||||
(str(dsh_root / 'package.json'), 'dsh-runtime'),
|
||||
|
||||
Reference in new issue
Block a user