mirror of
https://github.com/lil-org/wallet.git
synced 2024-12-27 14:35:55 +03:00
cleanup pre_xcodebuild
This commit is contained in:
parent
599c4dbec0
commit
2ee219091d
@ -1,7 +1,22 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
echo "CI_PRODUCT_PLATFORM: $CI_PRODUCT_PLATFORM"
|
||||||
|
echo "CI_XCODEBUILD_ACTION: $CI_XCODEBUILD_ACTION"
|
||||||
|
echo "CI_PRIMARY_REPOSITORY_PATH: $CI_PRIMARY_REPOSITORY_PATH"
|
||||||
|
echo "CI_XCODE_PROJECT: $CI_XCODE_PROJECT"
|
||||||
|
|
||||||
if [ "$CI_PRODUCT_PLATFORM" = 'macOS' ] && [ "$CI_XCODEBUILD_ACTION" = 'build-for-testing' ]; then
|
if [ "$CI_PRODUCT_PLATFORM" = 'macOS' ] && [ "$CI_XCODEBUILD_ACTION" = 'build-for-testing' ]; then
|
||||||
sed -i'~' 's/ENABLE_HARDENED_RUNTIME = YES;/ENABLE_HARDENED_RUNTIME = NO;/g' \
|
filePath="$CI_PRIMARY_REPOSITORY_PATH/$CI_XCODE_PROJECT/project.pbxproj"
|
||||||
"$CI_PRIMARY_REPOSITORY_PATH/$CI_XCODE_PROJECT/project.pbxproj"
|
echo "File path: $filePath"
|
||||||
|
|
||||||
|
if [ -f "$filePath" ]; then
|
||||||
|
echo "Modifying project.pbxproj"
|
||||||
|
sed -i'~' 's/ENABLE_HARDENED_RUNTIME = YES;/ENABLE_HARDENED_RUNTIME = NO;/g' "$filePath"
|
||||||
|
else
|
||||||
|
echo "Error: File not found"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "Conditions not met for script execution"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user