-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[workflow] - Bring back iOS prebuild (#192)
* workflow - Bring back iOS prebuild * workflows - iOS | Mention secrets * workflows - aline all the secrets
- Loading branch information
1 parent
4352787
commit ec2a69a
Showing
5 changed files
with
63 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/usr/bin/env bash | ||
echo "Launching ios pre-build script" | ||
if [ -z "$discord_client_id" ] | ||
then | ||
echo "You need define the discord_client_id variable in App Center" | ||
exit | ||
fi | ||
if [ -z "$api_host" ] | ||
then | ||
echo "You need define the api_host variable in App Center" | ||
exit | ||
fi | ||
if [ -z "$monitoring_key" ] | ||
then | ||
echo "You need define the monitoring_key variable in App Center" | ||
exit | ||
fi | ||
|
||
APP_CONSTANT_FILE=$project_folder/App/Core/AppConstant.cs | ||
|
||
if [ -e "$APP_CONSTANT_FILE" ] | ||
then | ||
echo "Updating AppConstant.cs" | ||
echo "---" | ||
echo "DiscordClientId = "$discord_client_id | ||
sed -i '' 's#DiscordClientId = Environment.GetEnvironmentVariable("discord_client_id")#DiscordClientId = "'$discord_client_id'"#g' $APP_CONSTANT_FILE | ||
echo "ApiHost = "$api_host | ||
sed -i '' 's#ApiHost = Environment.GetEnvironmentVariable("api_host")#ApiHost = "'$api_host'"#g' $APP_CONSTANT_FILE | ||
echo "MonitoringKey = "$monitoring_key | ||
sed -i '' 's#MonitoringKey = Environment.GetEnvironmentVariable("monitoring_key")#MonitoringKey = "'$monitoring_key'"#g' $APP_CONSTANT_FILE | ||
echo "File content:" | ||
cat $APP_CONSTANT_FILE | ||
else | ||
echo "Incorrect file: "$APP_CONSTANT_FILE | ||
exit | ||
fi |