Sha256: a657e7007af5823119e9e873294a9a3fc00cd9ee9c8c64a72290acd486f864d6

Contents?: true

Size: 1.5 KB

Versions: 5

Compression:

Stored size: 1.5 KB

Contents

# Rake tasks
namespace :sparkle do 

  desc "Setup Sparkle configuration"
  task :setup do
    sparkle = App.config.sparkle
    sparkle.setup
  end

  desc "Create a ZIP file with you application .app release build"
  task :package do
    sparkle = App.config.sparkle
    sparkle.package
  end

  task :setup_certificates do
    sparkle = App.config.sparkle
    sparkle.generate_keys
  end

  desc "Sign the ZIP file with appropriate certificates"
  task :sign do
    sparkle = App.config.sparkle
    sparkle.sign_package
  end

  task :recreate_public_key do
    sparkle = App.config.sparkle
    sparkle.generate_public_key
  end

  task :copy_release_notes_templates do
    sparkle = App.config.sparkle
    sparkle.copy_templates(force = true)
  end

  desc "Generate the appcast xml feed"
  task :feed do
    sparkle = App.config.sparkle
    sparkle.create_appcast
  end

  desc "Update the release notes of this build"
  task :release_notes do
    sparkle = App.config.sparkle
    sparkle.create_release_notes
  end

  desc "Upload to configured location"
  task :upload do
  end

  desc "Clean the Sparkle release folder"
  task :clean do
    dir = Motion::Project::Sparkle::RELEASE_PATH
    if File.exist?("./#{dir}")
      App.info 'Delete', "./#{dir}"
      rm_rf dir
    end
  end
end

namespace :clean do
  # Delete Sparkle release folder when cleaning all
  task :all do
    dir = Motion::Project::Sparkle::RELEASE_PATH
    if File.exist?("./#{dir}")
      App.info 'Delete', "./#{dir}"
      rm_rf dir
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
motion-sparkle-0.0.5 lib/motion/project/rake_tasks.rb
motion-sparkle-0.0.4 lib/motion/project/rake_tasks.rb
motion-sparkle-0.0.3 lib/motion/project/rake_tasks.rb
motion-sparkle-0.0.2 lib/motion/project/rake_tasks.rb
motion-sparkle-0.0.1 lib/motion/project/rake_tasks.rb