Skip to content

Commit bdaca78

Browse files
authored
fix: add support for collecting data from builtin stars in electron pyinstaller build (#5145)
1 parent 6326d7e commit bdaca78

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

desktop/scripts/build-backend.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ const kbStopwordsSrc = path.join(
1616
'hit_stopwords.txt',
1717
);
1818
const kbStopwordsDest = 'astrbot/core/knowledge_base/retrieval';
19+
const builtinStarsSrc = path.join(rootDir, 'astrbot', 'builtin_stars');
20+
const builtinStarsDest = 'astrbot/builtin_stars';
1921

2022
const args = [
2123
'run',
@@ -35,9 +37,13 @@ const args = [
3537
'pip',
3638
'--collect-submodules',
3739
'astrbot.api',
40+
'--collect-submodules',
41+
'astrbot.builtin_stars',
3842
'--collect-data',
3943
'certifi',
4044
'--add-data',
45+
`${builtinStarsSrc}${dataSeparator}${builtinStarsDest}`,
46+
'--add-data',
4147
`${kbStopwordsSrc}${dataSeparator}${kbStopwordsDest}`,
4248
'--distpath',
4349
outputDir,

0 commit comments

Comments
 (0)