From a7076800cfe51c8084e1f87426dceb8a55d298d3 Mon Sep 17 00:00:00 2001 From: naskya Date: Wed, 11 Oct 2023 00:02:17 +0900 Subject: [PATCH] dev: stop building native-utils twice as it doesn't seem to fix anything --- update.sh | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/update.sh b/update.sh index 6cb55bd2..d9afe8f3 100755 --- a/update.sh +++ b/update.sh @@ -84,21 +84,8 @@ say "Done! We're almost there.\n" ## prevent migration errors if [[ ! -f packages/backend/native-utils/built/index.js ]]; then say "Something went wrong orz... Gonnya try fixing that." - running "pushd packages/backend/native-utils" - pushd packages/backend/native-utils - running "NODE_OPTIONS=--max_old_space_size=3072 NODE_ENV=production pnpm build" - NODE_OPTIONS=--max_old_space_size=3072 NODE_ENV=production pnpm build - running "popd" - popd - - if [[ ! -f packages/backend/native-utils/built/index.js ]]; then - say "Something is still broken... I'll take another measure." - running "cp neko/index.js packages/backend/native-utils/built/index.js" - cp neko/index.js packages/backend/native-utils/built/index.js - say "Let's see if it works...\n" - else - say "The issue seems to be fixed!\n" - fi + running "cp neko/index.js packages/backend/native-utils/built/index.js" + cp neko/index.js packages/backend/native-utils/built/index.js else say "It's going well so far!\n" fi