Sha256: 0fd1081205f026af539f781c94b5056a171f87e1d6facc03d2f76219b99482aa

Contents?: true

Size: 718 Bytes

Versions: 11

Compression:

Stored size: 718 Bytes

Contents

# -*- mode: ruby; coding: utf-8 -*-


task :app => 'app:build'

%w[clean run].each do |t|
  task t.intern => "app:#{t}"
end


namespace :app do


  mod     = MODULE
  name    = env :NAME,   MODULE.name.downcase
  bindir  = env :BINDIR, 'bin'
  ruby    = env :RUBY,   'ruby'

  bin       = "#{bindir}/#{name}"
  appname   = name.capitalize
  appdir    = "#{appname}.app"
  appbindir = "#{appdir}/Contents/MacOS"
  out       = "#{appbindir}/#{name}"

  tmps = [appdir]


  task :build => out

  task :clean do
    sh %( rm -rf #{tmps.join ' '} )
  end

  task :run => :app do
    sh %( #{ruby} #{bin} )
  end

  file out => [bin, appbindir] do
    sh %( cp #{bin} #{appbindir} )
  end

  directory appbindir


end# :app

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
xot-0.1.12 task/mac.rake
xot-0.1.11 task/mac.rake
xot-0.1.10 task/mac.rake
spacy-0.1.9 task/mac.rake
xot-0.1.9 task/mac.rake
spacy-0.1.8 task/mac.rake
xot-0.1.8 task/mac.rake
xot-0.1.7 task/mac.rake
spacy-0.1.6 task/mac.rake
spacy-0.1.5 task/mac.rake
spacy-0.1.4 task/mac.rake