appcrush 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/appcrush +4 -12
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d3cbad2cc13c81010fca1d9051b43aebae83865
|
4
|
+
data.tar.gz: 045ad0d6cb7588cac2b0d3779adad1bb598b5c8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|