appcrush 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/appcrush +4 -12
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c08eda7fad0f8355727e39ef234c12da8e21b5dd
4
- data.tar.gz: 6d9cc9d81cad5a1f77373f68a04e71700b0c1150
3
+ metadata.gz: 1d3cbad2cc13c81010fca1d9051b43aebae83865
4
+ data.tar.gz: 045ad0d6cb7588cac2b0d3779adad1bb598b5c8a
5
5
  SHA512:
6
- metadata.gz: 3f0a3ca520d0538e848544f2452057560440a822a65ee68341104e77f71d1370967527b6ed0b7140f0fa2bd0d1dc71b65be4ce7b2e9967541cab62352676af4d
7
- data.tar.gz: 13f32c396794b4d2347d11addc0518b045f5275e9497e1dab7165f0b78b9dea7185b68a065d3e09bcf257b3a4db0a15ae8c3e79c7491276ad69e3fb9d6a802db
6
+ metadata.gz: 0e99069b67c78c859b7796a9823b8b6a42ba103b00690a94c2c3c650f2329bb2a163a7a282d7bce6ced6deef3a02bd54106b27a7909b2f80b29653c43f01c342
7
+ data.tar.gz: 398068dcb2c9c795a34c9d058e6d6a08d2869a7f18694a8213cb958befb6c072e417ae00b55dc94399e1866e91fcecd860a4a09991acda25a78c8479a44b0d59
data/bin/appcrush CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/ruby -rubygems
2
-
2
+ #
3
3
  # Point appcrush at an .ipa file from the iTunes AppStore and it
4
4
  # - expands the zip file
5
5
  # - finds all the images
@@ -9,7 +9,6 @@
9
9
  #
10
10
  # Usage: appcrush '/Users/boctor/Music/iTunes/Mobile Applications/iBooks.ipa'
11
11
  #
12
- # Credit:
13
12
  # Author: Peter Boctor
14
13
  # http://idevrecipes.com
15
14
  # https://github.com/boctor/idev-recipes/Utilities/appcrush
@@ -17,10 +16,6 @@
17
16
  #
18
17
  # Copyright (c) 2011 Peter Boctor
19
18
  #
20
- # Author: Zachary Friedman (kulte)
21
- # https://github.com/kulte/appcrush
22
- # Version 1.0
23
- #
24
19
  # Permission is hereby granted, free of charge, to any person obtaining a copy
25
20
  # of this software and associated documentation files (the "Software"), to deal
26
21
  # in the Software without restriction, including without limitation the rights
@@ -42,10 +37,7 @@
42
37
 
43
38
  # Only pngcrush in 3.2 and above supports revert-iphone-optimizations
44
39
  # See http://developer.apple.com/library/ios/#qa/qa2010/qa1681.html
45
- # Modify original appcrush script written by Peter Boctor to account for the new
46
- # location of the developer tools
47
- developer_root = "`xcode-select --print-path`".chop
48
- pngcrush = "#{developer_root}/Platforms/iPhoneOS.platform/Developer/usr/bin/pngcrush"
40
+ pngcrush = '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/pngcrush'
49
41
 
50
42
  if ARGV.empty?
51
43
  puts "Usage: ./appcrush path/to/ipa"
@@ -60,7 +52,7 @@ ARGV.each do |ipa|
60
52
  app_name = File.basename(ipa, ".*")
61
53
 
62
54
  # Get the expanded dir by stripping out the extension from the file path
63
- expanded_dir = ipa.sub(File.extname(ipa), '')
55
+ expanded_dir = File.join(destination, "#{app_name}") # ipa.sub(File.extname(ipa), '')
64
56
 
65
57
  # In case the dir is already there, try and remove it
66
58
  system "rm -drf '#{expanded_dir}'"
@@ -89,6 +81,6 @@ ARGV.each do |ipa|
89
81
  end
90
82
 
91
83
  # Cleanup. Delete the expanded dir
92
- system "rm -drf '#{expanded_dir}'"
84
+ # system "rm -drf '#{expanded_dir}'"
93
85
  end
94
86
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appcrush
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Boctor