mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Xcode Cloud Support (#234)
* Removed now unnecessary code from alpha builds * Add nightly build configuration * Update ruby dependencies * Stop changing the app name for PRs and Nightly, the icon is sufficient * Add ITSAppUsesNonExemptEncryption flag as per https://developer.apple.com/documentation/bundleresources/information_property_list/itsappusesnonexemptencryption and https://stackoverflow.com/questions/35841117/missing-compliance-status-in-testflight * Updated app groups to reflect various environments: production, nightly and PR. Remove keychain access group as they should be inferred from the access groups
This commit is contained in:
Executable
+37
@@ -0,0 +1,37 @@
|
||||
#!/bin/sh
|
||||
|
||||
setup_environment () {
|
||||
# Return on failures
|
||||
# Fail when expanding unset variables
|
||||
# Trace each command before executing it
|
||||
set -eEu
|
||||
|
||||
# Move to the project root
|
||||
cd ..
|
||||
|
||||
# Prevent installing dependencies in system directories
|
||||
echo 'export GEM_HOME=$HOME/.gem' >>~/.zshrc
|
||||
echo 'export PATH=$GEM_HOME/bin:$PATH' >>~/.zshrc
|
||||
echo 'export PATH="/usr/local/opt/ruby@2.7/bin:$PATH"' >> ~/.zshrc
|
||||
|
||||
export GEM_HOME=$HOME/.gem
|
||||
export PATH=$GEM_HOME/bin:$PATH
|
||||
export PATH="/usr/local/opt/ruby@2.7/bin:$PATH"
|
||||
|
||||
# Things don't work well on the default ruby version
|
||||
brew install "ruby@2.7"
|
||||
|
||||
gem install bundler
|
||||
|
||||
bundle config path vendor/bundle
|
||||
bundle install --jobs 4 --retry 3
|
||||
}
|
||||
|
||||
install_brew_dependencies () {
|
||||
brew install "xcodegen"
|
||||
brew install "imagemagick"
|
||||
}
|
||||
|
||||
install_python_dependencies () {
|
||||
pip3 install -r requirements.txt # Install towncrier for generating changelogs
|
||||
}
|
||||
Reference in New Issue
Block a user