diff --git a/scripts/carthage.sh b/scripts/carthage.sh new file mode 100755 index 000000000..3e7222d35 --- /dev/null +++ b/scripts/carthage.sh @@ -0,0 +1,3 @@ +export XCODE_XCCONFIG_FILE=$PWD/scripts/carthage.xcconfig +carthage build --no-skip-current +carthage archive Mixpanel diff --git a/scripts/carthage.xcconfig b/scripts/carthage.xcconfig new file mode 100644 index 000000000..f5b2a4bb9 --- /dev/null +++ b/scripts/carthage.xcconfig @@ -0,0 +1,2 @@ +EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64=arm64 arm64e armv7 armv7s armv6 armv8 +EXCLUDED_ARCHS=$(inherited) $(EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_$(EFFECTIVE_PLATFORM_SUFFIX)__NATIVE_ARCH_64_BIT_$(NATIVE_ARCH_64_BIT)) \ No newline at end of file diff --git a/generate_docs.sh b/scripts/generate_docs.sh similarity index 100% rename from generate_docs.sh rename to scripts/generate_docs.sh diff --git a/release.py b/scripts/release.py similarity index 91% rename from release.py rename to scripts/release.py index 78809d7c1..1802c67ce 100644 --- a/release.py +++ b/scripts/release.py @@ -30,7 +30,7 @@ def replace_version(file_name, old_version, new_version): f.write(file_str) def generate_docs(): - subprocess.call('./generate_docs.sh', shell=True) + subprocess.call('./scripts/generate_docs.sh', shell=True) subprocess.call('git add docs', shell=True) subprocess.call('git commit -m "Update docs"', shell=True) subprocess.call('git push', shell=True) @@ -43,8 +43,7 @@ def pushPod(): subprocess.call('pod trunk push Mixpanel-swift.podspec --allow-warnings', shell=True) def build_Carthage(): - subprocess.call('carthage build --no-skip-current', shell=True) - subprocess.call('carthage archive Mixpanel', shell=True) + subprocess.call('./scripts/carthage.sh', shell=True) def main(): bump_version()