fix(release): bundle memind-runtime-profile for WeChat menu scripts
Memind CI / Test, build, and release guards (push) Successful in 5m55s
Memind CI / Test, build, and release guards (push) Successful in 5m55s
load-env.mjs depends on memind-runtime-profile.mjs; include it in portal runtime packaging so wechat-mp-menu.mjs works on 103 without manual scp. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -21,6 +21,7 @@ export const REQUIRED_PORTAL_RUNTIME_PATHS = Object.freeze([
|
|||||||
'scripts/goosed-canary.compose.yml',
|
'scripts/goosed-canary.compose.yml',
|
||||||
'scripts/check-mindspace-public-links.mjs',
|
'scripts/check-mindspace-public-links.mjs',
|
||||||
'scripts/load-env.mjs',
|
'scripts/load-env.mjs',
|
||||||
|
'scripts/memind-runtime-profile.mjs',
|
||||||
'scripts/wechat-mp-menu.mjs',
|
'scripts/wechat-mp-menu.mjs',
|
||||||
'scripts/memind-portal-tunnel.sh',
|
'scripts/memind-portal-tunnel.sh',
|
||||||
]);
|
]);
|
||||||
|
|||||||
@@ -447,6 +447,10 @@ async function writeMetadata() {
|
|||||||
path.join(root, 'scripts', 'load-env.mjs'),
|
path.join(root, 'scripts', 'load-env.mjs'),
|
||||||
path.join(runtimeRoot, 'scripts', 'load-env.mjs'),
|
path.join(runtimeRoot, 'scripts', 'load-env.mjs'),
|
||||||
);
|
);
|
||||||
|
await fs.copyFile(
|
||||||
|
path.join(root, 'scripts', 'memind-runtime-profile.mjs'),
|
||||||
|
path.join(runtimeRoot, 'scripts', 'memind-runtime-profile.mjs'),
|
||||||
|
);
|
||||||
await fs.copyFile(
|
await fs.copyFile(
|
||||||
path.join(root, 'scripts', 'wechat-mp-menu.mjs'),
|
path.join(root, 'scripts', 'wechat-mp-menu.mjs'),
|
||||||
path.join(runtimeRoot, 'scripts', 'wechat-mp-menu.mjs'),
|
path.join(runtimeRoot, 'scripts', 'wechat-mp-menu.mjs'),
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ fi
|
|||||||
|
|
||||||
verify_runtime_artifact() {
|
verify_runtime_artifact() {
|
||||||
local missing=0
|
local missing=0
|
||||||
for required in server.mjs mindspace-sandbox-mcp.mjs tkmind-excel-mcp.mjs dist package.json scripts/run-memind-portal-prod.sh scripts/load-env.mjs scripts/wechat-mp-menu.mjs; do
|
for required in server.mjs mindspace-sandbox-mcp.mjs tkmind-excel-mcp.mjs dist package.json scripts/run-memind-portal-prod.sh scripts/load-env.mjs scripts/memind-runtime-profile.mjs scripts/wechat-mp-menu.mjs; do
|
||||||
if [[ ! -e "${RUNTIME_ROOT}/${required}" ]]; then
|
if [[ ! -e "${RUNTIME_ROOT}/${required}" ]]; then
|
||||||
echo "runtime 产物缺失: ${RUNTIME_ROOT}/${required}" >&2
|
echo "runtime 产物缺失: ${RUNTIME_ROOT}/${required}" >&2
|
||||||
missing=1
|
missing=1
|
||||||
|
|||||||
@@ -177,7 +177,7 @@ fi
|
|||||||
|
|
||||||
verify_runtime_artifact() {
|
verify_runtime_artifact() {
|
||||||
local missing=0
|
local missing=0
|
||||||
for required in server.mjs memind-canary-proxy.mjs deepseek-no-think-proxy.mjs wechat-mp.bundle.mjs mindspace-sandbox-mcp.mjs tkmind-search-mcp.mjs tkmind-excel-mcp.mjs mindspace-public-links.mjs dist package.json scripts/run-memind-portal-prod.sh scripts/run-memind-portal-candidate.sh scripts/run-memind-canary-proxy-prod.sh scripts/run-deepseek-compat-proxy-candidate.sh scripts/goosed-canary.compose.yml scripts/check-mindspace-public-links.mjs scripts/load-env.mjs scripts/wechat-mp-menu.mjs scripts/memind-portal-tunnel.sh; do
|
for required in server.mjs memind-canary-proxy.mjs deepseek-no-think-proxy.mjs wechat-mp.bundle.mjs mindspace-sandbox-mcp.mjs tkmind-search-mcp.mjs tkmind-excel-mcp.mjs mindspace-public-links.mjs dist package.json scripts/run-memind-portal-prod.sh scripts/run-memind-portal-candidate.sh scripts/run-memind-canary-proxy-prod.sh scripts/run-deepseek-compat-proxy-candidate.sh scripts/goosed-canary.compose.yml scripts/check-mindspace-public-links.mjs scripts/load-env.mjs scripts/memind-runtime-profile.mjs scripts/wechat-mp-menu.mjs scripts/memind-portal-tunnel.sh; do
|
||||||
if [[ ! -e "${RUNTIME_ROOT}/${required}" ]]; then
|
if [[ ! -e "${RUNTIME_ROOT}/${required}" ]]; then
|
||||||
echo "runtime 产物缺失: ${RUNTIME_ROOT}/${required}" >&2
|
echo "runtime 产物缺失: ${RUNTIME_ROOT}/${required}" >&2
|
||||||
missing=1
|
missing=1
|
||||||
|
|||||||
Reference in New Issue
Block a user