diff --git a/desktop/scripts/build-backend.mjs b/desktop/scripts/build-backend.mjs index e88297c0e..8fbff674a 100644 --- a/desktop/scripts/build-backend.mjs +++ b/desktop/scripts/build-backend.mjs @@ -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,