-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathRakefile
30 lines (27 loc) · 894 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
$:.unshift("/Library/RubyMotion/lib")
require 'motion/project/template/osx' if ENV['osx']
require 'motion/project/template/ios' unless ENV['osx']
require 'bundler'
Bundler.require
# Borrowed from BubbleWrap: https://github.com/rubymotion/BubbleWrap
# Thanks BubbleWrap Team! http://bubblewrap.io
module Motion; module Project
class Config
def spec_files=(spec_files)
@spec_files = spec_files
end
end
end; end
Motion::Project::App.setup do |app|
app.name = 'Joybox'
app.identifier = 'com.rubymotion.joybox'
app.version = "1.0.0"
if app.template != :ios
app.spec_files -= Dir.glob("./spec/motion/joybox-ios/**/*.rb")
app.files -= Dir.glob("./app/ios/**/*.rb")
else
app.interface_orientations = [:landscape_left, :landscape_right]
app.spec_files -= Dir.glob("./spec/motion/joybox-osx/**/*.rb")
app.files -= Dir.glob("./app/osx/**/*.rb")
end
end