Meshtastic-Apple/ci_scripts/ci_pre_xcodebuild.sh

17 lines
612 B
Bash
Raw Permalink Normal View History

2025-02-03 08:36:23 -08:00
#!/bin/sh
echo "Stage: PRE-Xcode Build is activated .... "
# Move to the place where the scripts are located.
# This is important because the position of the subsequently mentioned files depend of this origin.
2025-02-07 09:20:51 -08:00
cd $CI_PRIMARY_REPOSITORY_PATH/ci_scripts || exit 1
2025-02-03 08:36:23 -08:00
# Write a JSON File containing all the environment variables and secrets.
2025-02-07 09:20:51 -08:00
printf "{\"PUBLIC_MQTT_USERNAME\":\"%s\",\"PUBLIC_MQTT_PASSWORD\":\"%s\"}" "$PUBLIC_MQTT_USERNAME" "$PUBLIC_MQTT_PASSWORD" >> .\ $CI_PRIMARY_REPOSITORY_PATH/SupportingFiles/secrets.json
2025-02-03 08:36:23 -08:00
echo "Wrote Secrets.json file."
echo "Stage: PRE-Xcode Build is DONE .... "
exit 0