mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-06-14 18:19:12 +08:00
set spec_mode and distribution_mode without setup
This commit is contained in:
@@ -102,7 +102,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
|
||||
@@ -113,13 +113,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
|
||||
|
||||
@@ -61,7 +61,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
|
||||
|
||||
@@ -74,7 +74,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