cho45 (owner)

Forks

Revisions

gist: 145085 Download_button fork
public
Public Clone URL: git://gist.github.com/145085.git
Embed All Files: show embed
Rakefile #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require "rubygems"
require "rake"
require "pathname"
require "rexml/document"
 
manifest = REXML::Document.new(File.read("AndroidManifest.xml"))
PACKAGE = manifest.elements["/manifest/@package"].value
NAME = manifest.elements["/manifest/application/activity/@android:name"].value
 
task :default => :run
 
task :run do
sh "ant", "debug"
sh "adb", "install", "-r", Pathname.glob("bin/*.apk")[0]
sh "adb", "shell", "am start -a android.intent.action.MAIN -n #{PACKAGE}/#{NAME}"
end