fix corepack prompt

This commit is contained in:
CanbiZ 2026-01-18 18:08:41 +01:00
parent 9c1b350b94
commit 0c76bfaf44
2 changed files with 4 additions and 0 deletions

View File

@ -49,7 +49,9 @@ function update_script() {
set -a && source /opt/affine/.env && set +a
$STD corepack enable
export COREPACK_ENABLE_DOWNLOAD_PROMPT=0
$STD corepack prepare yarn@stable --activate
$STD yarn config set enableTelemetry 0
$STD yarn install
$STD yarn build
msg_ok "Rebuilt Application"

View File

@ -61,7 +61,9 @@ export PATH="/root/.cargo/bin:$PATH"
set -a && source /opt/affine/.env && set +a
$STD corepack enable
export COREPACK_ENABLE_DOWNLOAD_PROMPT=0
$STD corepack prepare yarn@stable --activate
$STD yarn config set enableTelemetry 0
$STD yarn install
$STD yarn build
msg_ok "Built AFFiNE"