<commit_before>#!/bin/bash
echo "starting phonegap build.sh"

# only for xcrun, Xcode build tool
# must install xcode xmd-line tools before using
PROVISIONING_PROFILE=$1
KEYCHAIN_PASSWORD=$2
RELEASE_BUILDDIR="app/platforms/ios/build/device"
BUILD_HISTORY_DIR="app/platforms/ios/build/archive"
APPLICATION_NAME="em"
CONFIGURATION_NAME="Release"
CODE_SIGN_IDENTITY="<PASSWORD>"
PROVISIONING_UUID="A6105942-B272-4FB0-BCB3-4999C39A7F70"

#echo "unlocking keychain"
#security unlock-keychain -p ${KEYCHAIN_PASSWORD} /Users/Xcloud/Library/Keychains/Jenkins.keychain

# make new iOS project from sources
cd app

# make sure cordova assets are updated
# phonegap platform update ios

# make phonegap build? (maybe not needed)
cordova build ios

## change dir:
#cd platforms/ios

# build xcode
# xcodebuild -scheme em -configuration "${CONFIGURATION_NAME}" clean build archive -archivePath "build/archive" PROVISIONING_PROFILE="${PROVISIONING_UUID}" | grep -A 5 error

# list all available identities
# /usr/bin/security find-identity -v -p codesigning

# make signing again
# codesign -f --sign "iPhone Distribution: Extended Mind Technologies Oy (Z9X5PYT4CA)" "build/archive.xcarchive"

# makedir
# rm -f build/package/release.ipa
# mkdir -p build/package

# package for distribution
# xcodebuild -archivePath "build/archive.xcarchive" -exportPath 'build/package/release' -exportArchive<commit_msg>cordova update in place<commit_after>#!/bin/bash
echo "starting phonegap build.sh"

# only for xcrun, Xcode build tool
# must install xcode xmd-line tools before using
PROVISIONING_PROFILE=$1
KEYCHAIN_PASSWORD=$2
RELEASE_BUILDDIR="app/platforms/ios/build/device"
BUILD_HISTORY_DIR="app/platforms/ios/build/archive"
APPLICATION_NAME="em"
CONFIGURATION_NAME="Release"
CODE_SIGN_IDENTITY="<PASSWORD>"
PROVISIONING_UUID="A6105942-B272-4FB0-BCB3-4999C39A7F70"

#echo "unlocking keychain"
#security unlock-keychain -p ${KEYCHAIN_PASSWORD} /Users/Xcloud/Library/Keychains/Jenkins.keychain

# make new iOS project from sources
cd app

# make sure cordova assets are updated?
cordova platform update ios

# make phonegap build? (maybe not needed)
cordova build ios

## change dir:
#cd platforms/ios

# build xcode
# xcodebuild -scheme em -configuration "${CONFIGURATION_NAME}" clean build archive -archivePath "build/archive" PROVISIONING_PROFILE="${PROVISIONING_UUID}" | grep -A 5 error

# list all available identities
# /usr/bin/security find-identity -v -p codesigning

# make signing again
# codesign -f --sign "iPhone Distribution: Extended Mind Technologies Oy (Z9X5PYT4CA)" "build/archive.xcarchive"

# makedir
# rm -f build/package/release.ipa
# mkdir -p build/package

# package for distribution
# xcodebuild -archivePath "build/archive.xcarchive" -exportPath 'build/package/release' -exportArchive
{'fraction_non_alphanumeric': 0.1017921146953405, 'fraction_numerical': 0.02007168458781362, 'mean_word_length': 5.790754257907542, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6934941', 'n_tokens_mistral': 966, 'n_tokens_neox': 924, 'n_words': 244}