Sha256: eaf4947dcd97ec9a93223e49ef11822af602e04032cfc24366fcfd6fb2dc3a7f

Contents?: true

Size: 1.57 KB

Versions: 1

Compression:

Stored size: 1.57 KB

Contents

# Rake tasks
namespace :sparkle do 

  task :install do
    sparkle = App.config.sparkle
    sparkle.install
  end

  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

1 entries across 1 versions & 1 rubygems

Version Path
motion-sparkle-0.0.6 lib/motion/project/rake_tasks.rb