From f53f76e220b9e9a299b2c44a26c81775ca6dd762 Mon Sep 17 00:00:00 2001 From: 18alantom <2.alan.tom@gmail.com> Date: Thu, 11 May 2023 12:43:28 +0530 Subject: [PATCH] chore: update pub script build outside root --- .gitignore | 1 - scripts/publish-mac-arm.sh | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 10ce88a0..d886c570 100644 --- a/.gitignore +++ b/.gitignore @@ -25,5 +25,4 @@ yarn-error.log* #Electron-builder output /dist_electron -/build_publish log_creds.txt \ No newline at end of file diff --git a/scripts/publish-mac-arm.sh b/scripts/publish-mac-arm.sh index dded8382..d08e2857 100755 --- a/scripts/publish-mac-arm.sh +++ b/scripts/publish-mac-arm.sh @@ -17,6 +17,7 @@ fi source .env.publish # Create folder for the publish build +cd ../ rm -rf build_publish mkdir build_publish cd build_publish @@ -36,11 +37,11 @@ echo $TELEMETRY_URL >> log_creds.txt yarn install # Set .env and build -export GH_TOKEN=$GH_PUBLISH_TOKEN && +export GH_TOKEN=$GH_TOKEN && export CSC_IDENTITY_AUTO_DISCOVERY=true && export APPLE_ID=$APPLE_ID && export APPLE_TEAM_ID=$APPLE_TEAM_ID && export APPLE_APP_SPECIFIC_PASSWORD=$APPLE_APP_SPECIFIC_PASSWORD && yarn electron:build --mac --publish=always -cd ../../ +cd ../books