* Add script to inject iOS app ID to public/.well-known/apple-app-site-association * package.json * Fix typo * Fix typo * Fix build * Debug * Updated to use "dist" folder
19 lines
402 B
Bash
Executable File
19 lines
402 B
Bash
Executable File
#!/bin/sh
|
|
|
|
source="dist/.well-known/apple-app-site-association"
|
|
if [ ! -f "$source" ]; then
|
|
echo "Error: $source file not found"
|
|
exit 1
|
|
fi
|
|
|
|
app_id=$IOS_APP_ID
|
|
if [ -z "$app_id" ]; then
|
|
echo "Error: IOS_APP_ID is empty"
|
|
exit 1
|
|
fi
|
|
|
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
sed -i '' "s/{PLACE_YOUR_APP_ID_HERE}/$app_id/g" $source
|
|
else
|
|
sed -i "s/{PLACE_YOUR_APP_ID_HERE}/$app_id/g" $source
|
|
fi |