Rakefile
author Mahlon E. Smith <mahlon@martini.nu>
Mon, 09 Feb 2015 09:20:01 -0800
changeset 0 52d30e6014a0
permissions -rw-r--r--
Initial commit. Experimental cross-platform frontend for yubikey programming.

#!rake
# vim: set nosta noet ts=4 sw=4:

require 'rake'
require 'pathname'

BASEDIR = Pathname.new( __FILE__ ).expand_path.dirname.relative_path_from( Pathname.getwd )
NODEWEBKIT = '/Applications/node-webkit.app/Contents/MacOS/node-webkit'

manifest = File.read( __FILE__ ).split( /^__END__/, 2 ).last.split
manifest.each do |dep|
	file dep
end

########################################################################
### T A S K S
########################################################################

task :default => [ :run ]

desc "Run the application."
task :run do
	sh NODEWEBKIT, BASEDIR.to_s
end

desc "Package a node-webkit bundle."
task :build => manifest do
	sh 'zip', '-r', 'app.nw', *manifest
end


########################################################################
### M A N I F E S T
########################################################################
__END__
css/main.css
css/pure-min.css
html/main.html
img/yubi.png
js/can.jquery-2.1.1.js
js/jquery-2.1.1.js
js/main.js
js/startup.js
js/yubi.js
package.json
platform/osx/app.icns
platform/osx/Info.plist
yubi/darwin/bin/ykinfo
yubi/darwin/bin/ykpersonalize
yubi/darwin/lib/libyubikey.0.dylib
yubi/darwin/lib/libyubikey.a
yubi/darwin/lib/libyubikey.dylib