Permalink
Browse files

make sure sparkle binary is +x

  • Loading branch information...
Jigish Patel
Jigish Patel committed Oct 9, 2012
1 parent 843048c commit a0acae7aaa8f3b6e6d07aa40b0d81a38492e9225
Showing with 2 additions and 0 deletions.
  1. +2 −0 script/slate.rb
View
@@ -91,6 +91,7 @@ def dmgify
Dir.mkdir(DMG_STAGING_DIR)
FileUtils.cp_r File.join(RELEASE_DIR, APP_FILE), File.join(DMG_STAGING_DIR, APP_FILE)
File.new(File.join(DMG_STAGING_DIR, APP_FILE, "Contents", "MacOS", APP_NAME)).chmod(0755)
+ File.new(File.join(DMG_STAGING_DIR, APP_FILE, "Contents", "Frameworks", SPARKLE_FRAMEWORK, "Sparkle")).chmod(0755)
File.new(File.join(DMG_STAGING_DIR, APP_FILE, "Contents", "Frameworks", SPARKLE_FRAMEWORK, "Resources", "#{FINISH_INSTALL}.app", "Contents", "MacOS", FINISH_INSTALL)).chmod(0755)
File.open(README_TXT, 'w') { |f| f.write("Please visit http://github.com/jigish/slate") }
@@ -125,6 +126,7 @@ def gen
FileUtils.rm_rf File.join(to, APP_FILE)
FileUtils.cp_r File.join(from, "Applications", APP_FILE), File.join(to, APP_FILE)
File.new(File.join(to, APP_FILE, "Contents", "MacOS", APP_NAME)).chmod(0755)
+ File.new(File.join(DMG_STAGING_DIR, APP_FILE, "Contents", "Frameworks", SPARKLE_FRAMEWORK, "Sparkle")).chmod(0755)
File.new(File.join(to, APP_FILE, "Contents", "Frameworks", SPARKLE_FRAMEWORK, "Resources", "#{FINISH_INSTALL}.app", "Contents", "MacOS", FINISH_INSTALL)).chmod(0755)
end

0 comments on commit a0acae7

Please sign in to comment.