-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix ios CD/CD #87
Fix ios CD/CD #87
Changes from 5 commits
93ca584
8a641f7
be9f0ad
e461191
72c7ca1
33ddeb5
1265abb
1ef35ae
e565f9f
c403826
91c506d
0568ccd
83e3562
4f207a0
70f6a7b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -3,10 +3,19 @@ | |||||
DIST_PROFILE_FILE=${DIST_PROVISION_UUID}.mobileprovision | ||||||
|
||||||
# Recreate the certificate from the secure environment variable | ||||||
echo $DIST_PROVISION | base64 --decode > $DIST_PROFILE_FILE | ||||||
echo $BUILD_PROVISION_PROFILE_BASE64 | base64 --decode > $DIST_PROFILE_FILE | ||||||
|
||||||
mkdir -p "$HOME/Library/MobileDevice/Provisioning Profiles" | ||||||
|
||||||
# copy where Xcode can find it | ||||||
cp ${DIST_PROFILE_FILE} "$HOME/Library/MobileDevice/Provisioning Profiles/${DIST_PROVISION_UUID}.mobileprovision" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The - cp ${DIST_PROFILE_FILE} "$HOME/Library/MobileDevice/Provisioning Profiles/${DIST_PROVISION_UUID}.mobileprovision"
+ cp "${DIST_PROFILE_FILE}" "$HOME/Library/MobileDevice/Provisioning Profiles/${DIST_PROVISION_UUID}.mobileprovision" Committable suggestion
Suggested change
|
||||||
|
||||||
if [ -f "$HOME/Library/MobileDevice/Provisioning Profiles/${DIST_PROVISION_UUID}.mobileprovision" ]; then | ||||||
grep -a -A 1 'UUID' "$HOME/Library/MobileDevice/Provisioning Profiles/${DIST_PROVISION_UUID}.mobileprovision" | ||||||
echo "Provisioning profile copied successfully." | ||||||
else | ||||||
echo "Error: Provisioning profile copy failed." | ||||||
fi | ||||||
|
||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When cleaning up provisioning profiles, it's safer to specify the glob pattern more explicitly to avoid unintended deletions, especially in scripts that might be run in different environments. - rm -fr *.mobileprovision
+ rm -fr ./*.mobileprovision Committable suggestion
Suggested change
|
||||||
# clean | ||||||
rm -fr *.mobileprovision | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When cleaning up provisioning profiles, it's safer to specify the glob pattern more explicitly to avoid unintended deletions, especially in scripts that might be run in different environments. - rm -fr *.mobileprovision
+ rm -fr ./*.mobileprovision Committable suggestion
Suggested change
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The command uses an environment variable without double quotes. This could lead to globbing and word splitting issues.
Committable suggestion