Last active
March 28, 2019 01:35
-
-
Save kichiemon/99007988502c97c753366cba36aa95dd to your computer and use it in GitHub Desktop.
Generate iOS Project by Makefile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# curl rawURL -O | |
SHELL := /bin/bash | |
.PHONY: all | |
define setup_gem | |
bundle init | |
chmod +w Gemfile | |
echo "gem 'fastlane'" >> Gemfile | |
echo "gem 'cocoapods'" >> Gemfile | |
bundle install --path vendor/bundle --jobs=4 | |
endef | |
define setup_carthage | |
touch Mintfile | |
touch Cartfile | |
echo "Carthage/[email protected]" >> Mintfile | |
echo "artemnovichkov/[email protected]" >> Mintfile | |
mint bootstrap | |
mint run Carthage/Carthage carthage update | |
mint run artemnovichkov/Carting carting update | |
endef | |
define setup_fastlane | |
bundle exec fastlane init | |
endef | |
define setup_cocoapods | |
bundle exec pod init | |
bundle exec pod install | |
endef | |
define generate_proj | |
swift package init --type=executable | |
swift package generate-xcodeproj | |
endef | |
setup_carthage: | |
$(call setup_carthage) | |
generate_ios_project: | |
$(call generate_proj) | |
$(call setup_gem) | |
$(call setup_cocoapods) | |
$(call setup_fastlane) | |
$(call setup_carthage) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment