mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-10 22:49:26 +08:00
set spec_mode and distribution_mode without setup
This commit is contained in:
@@ -121,7 +121,7 @@ namespace :archive do
|
||||
desc "Create an .ipa archive for distribution (AppStore)"
|
||||
task :distribution do
|
||||
App.config_without_setup.build_mode = :release
|
||||
App.config.distribution_mode = true
|
||||
App.config_without_setup.distribution_mode = true
|
||||
Rake::Task["archive"].invoke
|
||||
end
|
||||
end
|
||||
@@ -132,13 +132,13 @@ task :spec => ['spec:simulator']
|
||||
namespace :spec do
|
||||
desc "Run the test/spec suite on the simulator"
|
||||
task :simulator do
|
||||
App.config.spec_mode = true
|
||||
App.config_without_setup.spec_mode = true
|
||||
Rake::Task["simulator"].invoke
|
||||
end
|
||||
|
||||
desc "Run the test/spec suite on the device"
|
||||
task :device do
|
||||
App.config.spec_mode = true
|
||||
App.config_without_setup.spec_mode = true
|
||||
ENV['debug'] ||= '1'
|
||||
Rake::Task["device"].invoke
|
||||
end
|
||||
|
||||
@@ -68,7 +68,7 @@ end
|
||||
|
||||
desc "Run the test/spec suite"
|
||||
task :spec do
|
||||
App.config.spec_mode = true
|
||||
App.config_without_setup.spec_mode = true
|
||||
Rake::Task["run"].invoke
|
||||
end
|
||||
|
||||
@@ -81,7 +81,7 @@ end
|
||||
namespace :archive do
|
||||
desc "Create a .pkg archive for distribution (AppStore)"
|
||||
task :distribution do
|
||||
App.config.distribution_mode = true
|
||||
App.config_without_setup.distribution_mode = true
|
||||
Rake::Task['archive'].invoke
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user