From 5ace31d3a4fd3bedf04ca56169d07c23c7183046 Mon Sep 17 00:00:00 2001 From: mso7nueh Date: Mon, 21 Apr 2025 17:43:19 +0300 Subject: [PATCH] fix(ci/cd): build tf --- Build-tf | 64 +++++++++++++++++++++++++++++++------------------------- 1 file changed, 35 insertions(+), 29 deletions(-) diff --git a/Build-tf b/Build-tf index ed00b077..d1e13ecf 100644 --- a/Build-tf +++ b/Build-tf @@ -42,36 +42,42 @@ cd .. rm -rf "${RESULT_BUNDLE_PATH}" "${DERIVED_DATA_PATH}" mkdir -p "${ARTIFACT_PATH}" -# Archive the build -xcrun xcodebuild \ - -workspace "${WORKSPACE}" \ - -scheme "${SCHEME}" \ - -configuration "${CONFIGURATION}" \ - -sdk "${SDK}" \ - -parallelizeTargets \ - -showBuildTimingSummary \ - -derivedDataPath "${DERIVED_DATA_PATH}" \ - -archivePath "${ARCHIVE_PATH}" \ - -resultBundlePath "${RESULT_BUNDLE_PATH}" \ - -allowProvisioningUpdates \ - CURRENT_PROJECT_VERSION="${CURRENT_PROJECT_VERSION}" \ - CODE_SIGNING_ALLOWED=NO \ - DEVELOPMENT_TEAM=VL68C36HYS \ - archive || { echo "Xcode archive failed"; exit 1; } - codesign --remove-signature "${ARCHIVE_PATH}/Products/Applications/Runner.app/Frameworks/App.framework/App" codesign --remove-signature "${ARCHIVE_PATH}/Products/Applications/Runner.app/Frameworks/Flutter.framework/Flutter" -# Export the build to .ipa -xcrun xcodebuild \ - -exportArchive \ - -exportOptionsPlist "${EXPORT_OPTIONS_FILE}" \ - -archivePath "${ARCHIVE_PATH}" \ - -exportPath "${ARTIFACT_PATH}/${SCHEME}.ipa" || { echo "Export to IPA failed"; exit 1; } +codesign -f -s "Apple Distribution: ITVIO, OOO (VL68C36HYS)" --preserve-metadata=entitlements,identifier,flags \ + "${ARCHIVE_PATH}/Products/Applications/Runner.app/Frameworks/App.framework/App" -# Zip the archive -if [[ -d "${ARCHIVE_PATH}" ]]; then - ditto -c -k --sequesterRsrc --keepParent "${ARCHIVE_PATH}" "${ARTIFACT_PATH}/${SCHEME}.xcarchive.zip" -else - echo "Archive directory not found, skipping zip." -fi +codesign -f -s "Apple Distribution: ITVIO, OOO (VL68C36HYS)" --preserve-metadata=entitlements,identifier,flags \ + "${ARCHIVE_PATH}/Products/Applications/Runner.app/Frameworks/Flutter.framework/Flutter" + +## Archive the build +#xcrun xcodebuild \ +# -workspace "${WORKSPACE}" \ +# -scheme "${SCHEME}" \ +# -configuration "${CONFIGURATION}" \ +# -sdk "${SDK}" \ +# -parallelizeTargets \ +# -showBuildTimingSummary \ +# -derivedDataPath "${DERIVED_DATA_PATH}" \ +# -archivePath "${ARCHIVE_PATH}" \ +# -resultBundlePath "${RESULT_BUNDLE_PATH}" \ +# -allowProvisioningUpdates \ +# CURRENT_PROJECT_VERSION="${CURRENT_PROJECT_VERSION}" \ +# CODE_SIGNING_ALLOWED=NO \ +# DEVELOPMENT_TEAM=VL68C36HYS \ +# archive || { echo "Xcode archive failed"; exit 1; } +# +## Export the build to .ipa +#xcrun xcodebuild \ +# -exportArchive \ +# -exportOptionsPlist "${EXPORT_OPTIONS_FILE}" \ +# -archivePath "${ARCHIVE_PATH}" \ +# -exportPath "${ARTIFACT_PATH}/${SCHEME}.ipa" || { echo "Export to IPA failed"; exit 1; } +# +## Zip the archive +#if [[ -d "${ARCHIVE_PATH}" ]]; then +# ditto -c -k --sequesterRsrc --keepParent "${ARCHIVE_PATH}" "${ARTIFACT_PATH}/${SCHEME}.xcarchive.zip" +#else +# echo "Archive directory not found, skipping zip." +#fi