mobox 0.0.1.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +8 -0
- data/bin/mobox +2 -2
- data/lib/mobox/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -63,7 +63,15 @@ Running `mobox build:ios:create` will prompt you for a namespace and app name, w
|
|
63
63
|
|
64
64
|
#### Android
|
65
65
|
|
66
|
+
|
66
67
|
mobox build:android:create
|
68
|
+
|
69
|
+
Before you can actually run the app, you must start your emulator (assuming you already set up an AVD with the Android SDK):
|
70
|
+
|
71
|
+
build/android/cordova/emulate
|
72
|
+
|
73
|
+
Then you can build the app:
|
74
|
+
|
67
75
|
mobox build:android
|
68
76
|
|
69
77
|
Running `mobox build:android:create` will prompt you for a namespace and app name, which you must fill out in the correct format.
|
data/bin/mobox
CHANGED
@@ -33,8 +33,7 @@ end
|
|
33
33
|
|
34
34
|
def make_environment(platform, app_name, app_namespace)
|
35
35
|
executable = MOBOX_ROOT.join('vendor', 'phonegap', 'lib', platform, 'bin', 'create')
|
36
|
-
|
37
|
-
`#{executable} #{platform_build_path(platform)} #{app_namespace} #{app_name}`
|
36
|
+
puts `#{executable} #{platform_build_path(platform)} #{app_namespace} #{app_name}`
|
38
37
|
end
|
39
38
|
|
40
39
|
def platform_build_path(platform)
|
@@ -168,6 +167,7 @@ namespace :build do
|
|
168
167
|
app_namespace = ask_user("Project namespace? [com.example.projectname]: ")
|
169
168
|
app_name = ask_user("Project name? [MyApp]: ")
|
170
169
|
print "Creating iOS build environment... "
|
170
|
+
FileUtils.mkdir_p platform_build_path('ios')
|
171
171
|
make_environment('ios', app_name, app_namespace)
|
172
172
|
puts "done."
|
173
173
|
end
|
data/lib/mobox/version.rb
CHANGED