Skip to content

Commit

Permalink
Merge pull request #1620 from quicksilver/push-plugin
Browse files Browse the repository at this point in the history
Remove checks for 32 bit in the plugin pusher
  • Loading branch information
skurfer committed Sep 23, 2013
2 parents 08f6317 + 7a19a7c commit 0783cb7
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions Quicksilver/Tools/qs-push-plugin
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,6 @@ require 'plist'

# FUNCTIONS

# Check to make sure the file contains a 32/64 bit binary. If not, die
def checkIsUniversalBinary(plist, file)
# Make sure the file is a 32/64 bit binary
bin_file = plist['CFBundleName']
bin_path = File.join(file, "Contents","MacOS",bin_file)
# Some plugins don't contain binaries
if not File.exists?(bin_path)
return
end
arch_details = %x(file "#{bin_path}")
if not (arch_details.include? "Mach-O 64-bit bundle x86_64" and arch_details.include? "Mach-O bundle i386")
Trollop::die "#{file} does not contain a 32/64 bit binary. Aborting"
end
end

# MAIN SCRIPT

Expand Down Expand Up @@ -128,7 +114,6 @@ files.each do |file|
plist = Plist::parse_xml(info_path)

# Make sure the file is a 32/64 bit binary
checkIsUniversalBinary(plist, file)

image_file = if image_path = plist['QSPlugIn']['icon']
path = Dir.glob(File.join(file, "Contents", "Resources", image_path + ".[jpg|png]"))
Expand Down

0 comments on commit 0783cb7

Please sign in to comment.