-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuildForPreview.rb
executable file
·50 lines (32 loc) · 1.58 KB
/
buildForPreview.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/env ruby
$LOAD_PATH << '.'
require 'fastlane_core'
require 'spaceship'
require 'colorize'
require 'config'
=begin
xcodebuild -workspace PublishingTestApp.xcworkspace -scheme PublishingTestApp PROFILE=af367fcf-16b5-49c3-9c28-e3d563d7abf9 SIGNING='iPhone Distribution: Mobitti Ltd. (P2WQ65BAA8)' -derivedDataPath '~/Tmp/Previews/PublishingTestApp' -archivePath '~/Tmp/Previews/PublishingTestApp' archive
xcodebuild -exportArchive -archivePath ~/Tmp/Previews/PublishingTestApp.xcarchive -exportPath ~/Tmp/Previews/PublishingTestApp -exportOptionsPlist ~/Work/AppMaker/exportPList.plist
=end
#package_path = FastlaneCore::IpaUploadPackageBuilder.new.generate(
# app_id: '1034264437',
# ipa_path: '/Users/pavelyankelevich/Tmp/Previews/PublishingTestApp/PublishingTestApp.ipa',
# package_path: "/Users/pavelyankelevich/Tmp"
# )
#puts package_path.yellow
#transporter = FastlaneCore::ItunesTransporter::new(AppMakerConfig::USER, AppMakerConfig::PASSWORD)
#transporter.upload('1034264437', package_path)
#puts transporter.download('1034264437')
Spaceship::Tunes.login(AppMakerConfig::USER, AppMakerConfig::PASSWORD)
app = Spaceship::Tunes::Application.find(1034264437)
version = app.edit_version
builds = version.candidate_builds
puts '------------------------------------------'.green
builds.each do |build|
puts "#{build.app_name} #{build.train_version}(#{build.build_version}) - #{build.processing ? 'processing' : 'ready'}"
#puts build
puts '------------------------------------------'.green
end
#version.select_build(builds.first)
#version.save!
puts 'Done'