Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(504)

Side by Side Diff: third_party/go/src/golang.org/x/mobile/cmd/gomobile/install.go

Issue 1275153002: Remove third_party/golang.org/x/mobile as it is no longer used with Go 1.5. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Remove golang.org/x/mobile Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 package main
6
7 import (
8 "os"
9 "os/exec"
10 "path/filepath"
11 )
12
13 var cmdInstall = &command{
14 run: runInstall,
15 Name: "install",
16 Usage: "[package]",
17 Short: "compile android APK and/or iOS app and install on device",
18 Long: `
19 Install compiles and installs the app named by the import path on the
20 attached mobile device.
21
22 This command requires the 'adb' tool on the PATH.
23
24 See the build command help for common flags and common behavior.
25 `,
26 }
27
28 func runInstall(cmd *command) error {
29 if err := runBuild(cmd); err != nil {
30 return err
31 }
32 install := exec.Command(
33 `adb`,
34 `install`,
35 `-r`,
36 filepath.Base(pkg.Dir)+`.apk`,
37 )
38 if buildV {
39 install.Stdout = os.Stdout
40 install.Stderr = os.Stderr
41 }
42 return install.Run()
43 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698