Sha256: 7325458416425f7bf6be9d0e35380ef23a8a2305d92a74d2275d10171adf806f

Contents?: true

Size: 927 Bytes

Versions: 1

Compression:

Stored size: 927 Bytes

Contents

require 'chocbomb/tools/dmg'
require 'chocbomb/tools/xcode'
require 'chocbomb/tools/feed'

module ChocBomb
  module Tasks
    include Tools
    include Rake::DSL
    
    def define_tasks
      return unless Object.const_defined?("Rake")
      
      desc "Build #{@name} #{@build_type}"
      task :build => "build/#{@build_type}/#{@name}/Contents/Info.plist"

      task "build/#{@build_type}/#{@name}/Contents/Info.plist" do
        XCode.build(self)
      end
      
      desc "Create the dmg file"
      task :dmg do
        DMG.detach(self)
        DMG.make(self)
        DMG.detach(self)
        DMG.readonly(self)
      end
      
      desc "Create feed"
      task :feed do
        Feed.make_appcast(self)
        Feed.make_dmg_symlink(self)
        Feed.make_index_redirect(self)
        Feed.make_release_notes(self)
      end
      
      desc "All"
      task :appcast => [:build, :dmg, :feed]
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
chocbomb-0.0.3 lib/chocbomb/rake/tasks.rb