diff --git a/.gitignore b/.gitignore index 10ce88a08..d886c5705 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 dded8382f..d08e28577 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