forked from eatvio/eatvio_app
Merge pull request 'fix(ci/cd): build tf env' (#357) from mso7nueh/eatvio_app:main into main
Reviewed-on: eatvio/eatvio_app#357
This commit is contained in:
14
Build-tf
14
Build-tf
@@ -6,10 +6,6 @@ set -o pipefail
|
||||
export LANG=en_US.UTF-8
|
||||
LANG=en_US.UTF-8
|
||||
|
||||
IDENTITY="Apple Distribution: ITVIO, OOO (VL68C36HYS)"
|
||||
P12_PATH="${P12_PATH:-certs/distribution.p12}"
|
||||
P12_PASSWORD="${P12_PASSWORD:-password}"
|
||||
|
||||
function finish() {
|
||||
if [[ -d "${RESULT_BUNDLE_PATH}" ]]; then
|
||||
ditto -c -k --sequesterRsrc --keepParent "${RESULT_BUNDLE_PATH}" "${RESULT_BUNDLE_PATH}.zip"
|
||||
@@ -32,16 +28,6 @@ DERIVED_DATA_PATH="${DERIVED_DATA_PATH:-${BUILD_DIR}/DerivedData}"
|
||||
CURRENT_PROJECT_VERSION="${BUILD_NUMBER:-0}"
|
||||
EXPORT_OPTIONS_FILE="Support/ExportOptions.plist"
|
||||
|
||||
# 🛡️ Ensure signing identity is available
|
||||
if ! security find-identity -v -p codesigning | grep -q "${IDENTITY}"; then
|
||||
echo "🔑 Importing .p12 certificate..."
|
||||
security import "${P12_PATH}" -k login.keychain -P "${P12_PASSWORD}" -T /usr/bin/codesign || {
|
||||
echo "❌ Failed to import .p12"
|
||||
exit 1
|
||||
}
|
||||
security set-key-partition-list -S apple-tool:,apple: -s -k "${P12_PASSWORD}" login.keychain
|
||||
fi
|
||||
|
||||
# Clean and prepare the build
|
||||
flutter clean
|
||||
flutter pub get
|
||||
|
||||
Reference in New Issue
Block a user