Created
August 18, 2016 13:21
-
-
Save henteko/5e88e0b88d0c17cce0ad2a8936a3f4cc to your computer and use it in GitHub Desktop.
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
source "https://rubygems.org" | |
gem 'gym', '~> 1.7.0' |
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
require 'gym' | |
EXPORT_METHOD = 'ad-hoc' # ad-hoc or enterprise | |
WORKSPACE = '/path/to/ios-app/app.xcodeproj' # cocoapodsを使ってる場合はapp.xcworkspace | |
CONFIGURATION = 'Release' | |
SCHEME = 'target_scheme' | |
CODESIGNING_IDENTITY = 'iPhone Distribution: HOGE (xxxxxxxxx)' | |
def build | |
values = { | |
export_method: EXPORT_METHOD, | |
workspace: WORKSPACE, | |
configuration: CONFIGURATION, | |
scheme: SCHEME, | |
codesigning_identity: CODESIGNING_IDENTITY | |
} | |
v = FastlaneCore::Configuration.create(Gym::Options.available_options, values) | |
File.expand_path(Gym::Manager.new.work(v)) | |
end | |
puts "Output ipa path: #{build}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment