mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
16 lines
612 B
Bash
Executable file
16 lines
612 B
Bash
Executable file
#!/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.
|
|
cd $CI_PRIMARY_REPOSITORY_PATH/ci_scripts || exit 1
|
|
|
|
# Write a JSON File containing all the environment variables and secrets.
|
|
printf "{\"PUBLIC_MQTT_USERNAME\":\"%s\",\"PUBLIC_MQTT_PASSWORD\":\"%s\"}" "$PUBLIC_MQTT_USERNAME" "$PUBLIC_MQTT_PASSWORD" >> .\ $CI_PRIMARY_REPOSITORY_PATH/SupportingFiles/secrets.json
|
|
|
|
echo "Wrote Secrets.json file."
|
|
|
|
echo "Stage: PRE-Xcode Build is DONE .... "
|
|
|
|
exit 0
|