forked from eatvio/eatvio_app
Merge pull request 'fix(ci/cd): build tf' (#353) from mso7nueh/eatvio_app:main into main
Reviewed-on: eatvio/eatvio_app#353
This commit is contained in:
60
Build-tf
60
Build-tf
@@ -42,6 +42,23 @@ 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"
|
||||
|
||||
@@ -51,33 +68,16 @@ codesign -f -s "Apple Distribution: ITVIO, OOO (VL68C36HYS)" --preserve-metadata
|
||||
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
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user