sigh 1.7.0 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c0a6111203a414e101d5ea0c626733f804556932
4
- data.tar.gz: 5dacfa3e6b32ddf8db0a53a3a48d1958ca447068
3
+ metadata.gz: 2d5af70020fddc9626153f04cbee13842dfd87ee
4
+ data.tar.gz: e06070ef70768fff055194025f35045c3a5f67e3
5
5
  SHA512:
6
- metadata.gz: a21ee4e42712a199ac02da1d3f19e67d93023cbf97ec391fdbb9561b82afd9040fbc700d685fdc2c90460ebd7a15e87355837c96f71e36cee7398fa6e06e6bd9
7
- data.tar.gz: 9de2cb74088c34847745880b53a8a1938e7c62c90875a1f81641015e8cdadb871ef49e40123aba25af5b3c44ff9f7800c47e4785c27cc4923d34691f5fa2ad55
6
+ metadata.gz: 7fbe6f5cf2b574e19ced821a6dced4a7d7df48024e3ec244d9c44e57dd1c939b6a29768b46f319fc9b9ef802d0da10e326d9248f3d5855ef270d8f99fda8c422
7
+ data.tar.gz: 7618fdc40f2b722f4a2ad1364059ab9f9d8456e5c5c3856d9a6b2b9d66b13eedae3d75b9bdc7a253bd3794263c298a9e996fd0a2a3e95bcda239451a115a22a0
data/README.md CHANGED
@@ -53,7 +53,7 @@ Get in contact with the developer on Twitter: [@FastlaneTools](https://twitter.c
53
53
 
54
54
  -------
55
55
 
56
- <h5 align="center"><code>sigh</code> is part of <a href="https://fastlane.tools">fastlane</a>: connect all deployment tools into one streamlined workflow.</h5>
56
+ <h5 align="center"><code>sigh</code> is part of <a href="https://fastlane.tools">fastlane</a>: The easiest way to automate building and releasing your iOS and Android apps.</h5>
57
57
 
58
58
  # Features
59
59
 
@@ -217,7 +217,7 @@ If you're using [cert](https://github.com/fastlane/fastlane/tree/master/cert) in
217
217
  # Tips
218
218
  ## [`fastlane`](https://fastlane.tools) Toolchain
219
219
 
220
- - [`fastlane`](https://fastlane.tools): Connect all deployment tools into one streamlined workflow
220
+ - [`fastlane`](https://fastlane.tools): The easiest way to automate building and releasing your iOS and Android apps
221
221
  - [`deliver`](https://github.com/fastlane/fastlane/tree/master/deliver): Upload screenshots, metadata and your app to the App Store
222
222
  - [`snapshot`](https://github.com/fastlane/fastlane/tree/master/snapshot): Automate taking localized screenshots of your iOS app on every device
223
223
  - [`frameit`](https://github.com/fastlane/fastlane/tree/master/frameit): Quickly put your screenshots into the right device frames
data/bin/sigh CHANGED
@@ -72,6 +72,7 @@ class SighApplication
72
72
  '\nCannot be used together with -x|--version_number option.'
73
73
  c.option '--bundle-version STRING', String, 'Bundle version to force binary and all nested binaries to use (CFBundleIdentifier). '\
74
74
  'Cannot be used together with -x|--version_number option.'
75
+ c.option '-g', '--new_bundle_id STRING', String, 'New application bundle ID'
75
76
 
76
77
  c.action do |args, options|
77
78
  Sigh::Resign.new.run(options, args)
data/lib/sigh/resign.rb CHANGED
@@ -6,16 +6,16 @@ module Sigh
6
6
  def run(options, args)
7
7
  # get the command line inputs and parse those into the vars we need...
8
8
 
9
- ipa, signing_identity, provisioning_profiles, entitlements, version, display_name, short_version, bundle_version = get_inputs(options, args)
9
+ ipa, signing_identity, provisioning_profiles, entitlements, version, display_name, short_version, bundle_version, new_bundle_id = get_inputs(options, args)
10
10
  # ... then invoke our programmatic interface with these vars
11
- resign(ipa, signing_identity, provisioning_profiles, entitlements, version, display_name, short_version, bundle_version)
11
+ resign(ipa, signing_identity, provisioning_profiles, entitlements, version, display_name, short_version, bundle_version, new_bundle_id)
12
12
  end
13
13
 
14
- def self.resign(ipa, signing_identity, provisioning_profiles, entitlements, version, display_name, short_version, bundle_version)
15
- self.new.resign(ipa, signing_identity, provisioning_profiles, entitlements, version, display_name, short_version, bundle_version)
14
+ def self.resign(ipa, signing_identity, provisioning_profiles, entitlements, version, display_name, short_version, bundle_version, new_bundle_id)
15
+ self.new.resign(ipa, signing_identity, provisioning_profiles, entitlements, version, display_name, short_version, bundle_version, new_bundle_id)
16
16
  end
17
17
 
18
- def resign(ipa, signing_identity, provisioning_profiles, entitlements, version, display_name, short_version, bundle_version)
18
+ def resign(ipa, signing_identity, provisioning_profiles, entitlements, version, display_name, short_version, bundle_version, new_bundle_id)
19
19
  resign_path = find_resign_path
20
20
  signing_identity = find_signing_identity(signing_identity)
21
21
 
@@ -32,6 +32,7 @@ module Sigh
32
32
  short_version = "--short-version #{short_version}" if short_version
33
33
  bundle_version = "--bundle-version #{bundle_version}" if bundle_version
34
34
  verbose = "-v" if $verbose
35
+ bundle_id = "-b '#{new_bundle_id}'" if new_bundle_id
35
36
 
36
37
  command = [
37
38
  resign_path.shellescape,
@@ -44,6 +45,7 @@ module Sigh
44
45
  short_version,
45
46
  bundle_version,
46
47
  verbose,
48
+ bundle_id,
47
49
  ipa.shellescape
48
50
  ].join(' ')
49
51
 
@@ -68,12 +70,13 @@ module Sigh
68
70
  display_name = options.display_name || nil
69
71
  short_version = options.short_version || nil
70
72
  bundle_version = options.bundle_version || nil
73
+ new_bundle_id = options.new_bundle_id || nil
71
74
 
72
75
  if options.provisioning_name
73
76
  UI.important "The provisioning_name (-n) option is not applicable to resign. You should use provisioning_profile (-p) instead"
74
77
  end
75
78
 
76
- return ipa, signing_identity, provisioning_profiles, entitlements, version, display_name, short_version, bundle_version
79
+ return ipa, signing_identity, provisioning_profiles, entitlements, version, display_name, short_version, bundle_version, new_bundle_id
77
80
  end
78
81
 
79
82
  def find_resign_path
data/lib/sigh/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Sigh
2
- VERSION = "1.7.0"
2
+ VERSION = "1.8.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sigh
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-28 00:00:00.000000000 Z
11
+ date: 2016-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastlane_core