fix: add support for collecting data from builtin stars in electron pyinstaller build (#5145)
This commit is contained in:
@@ -16,6 +16,8 @@ const kbStopwordsSrc = path.join(
|
||||
'hit_stopwords.txt',
|
||||
);
|
||||
const kbStopwordsDest = 'astrbot/core/knowledge_base/retrieval';
|
||||
const builtinStarsSrc = path.join(rootDir, 'astrbot', 'builtin_stars');
|
||||
const builtinStarsDest = 'astrbot/builtin_stars';
|
||||
|
||||
const args = [
|
||||
'run',
|
||||
@@ -35,9 +37,13 @@ const args = [
|
||||
'pip',
|
||||
'--collect-submodules',
|
||||
'astrbot.api',
|
||||
'--collect-submodules',
|
||||
'astrbot.builtin_stars',
|
||||
'--collect-data',
|
||||
'certifi',
|
||||
'--add-data',
|
||||
`${builtinStarsSrc}${dataSeparator}${builtinStarsDest}`,
|
||||
'--add-data',
|
||||
`${kbStopwordsSrc}${dataSeparator}${kbStopwordsDest}`,
|
||||
'--distpath',
|
||||
outputDir,
|
||||
|
||||
Reference in New Issue
Block a user