Rakefile
changeset 0 52d30e6014a0
equal deleted inserted replaced
-1:000000000000 0:52d30e6014a0
       
     1 #!rake
       
     2 # vim: set nosta noet ts=4 sw=4:
       
     3 
       
     4 require 'rake'
       
     5 require 'pathname'
       
     6 
       
     7 BASEDIR = Pathname.new( __FILE__ ).expand_path.dirname.relative_path_from( Pathname.getwd )
       
     8 NODEWEBKIT = '/Applications/node-webkit.app/Contents/MacOS/node-webkit'
       
     9 
       
    10 manifest = File.read( __FILE__ ).split( /^__END__/, 2 ).last.split
       
    11 manifest.each do |dep|
       
    12 	file dep
       
    13 end
       
    14 
       
    15 ########################################################################
       
    16 ### T A S K S
       
    17 ########################################################################
       
    18 
       
    19 task :default => [ :run ]
       
    20 
       
    21 desc "Run the application."
       
    22 task :run do
       
    23 	sh NODEWEBKIT, BASEDIR.to_s
       
    24 end
       
    25 
       
    26 desc "Package a node-webkit bundle."
       
    27 task :build => manifest do
       
    28 	sh 'zip', '-r', 'app.nw', *manifest
       
    29 end
       
    30 
       
    31 
       
    32 ########################################################################
       
    33 ### M A N I F E S T
       
    34 ########################################################################
       
    35 __END__
       
    36 css/main.css
       
    37 css/pure-min.css
       
    38 html/main.html
       
    39 img/yubi.png
       
    40 js/can.jquery-2.1.1.js
       
    41 js/jquery-2.1.1.js
       
    42 js/main.js
       
    43 js/startup.js
       
    44 js/yubi.js
       
    45 package.json
       
    46 platform/osx/app.icns
       
    47 platform/osx/Info.plist
       
    48 yubi/darwin/bin/ykinfo
       
    49 yubi/darwin/bin/ykpersonalize
       
    50 yubi/darwin/lib/libyubikey.0.dylib
       
    51 yubi/darwin/lib/libyubikey.a
       
    52 yubi/darwin/lib/libyubikey.dylib