Skip to content

nobonobo/gomobileapp

Repository files navigation

gomobileapp

cli wrapper with additional features for gomobile.

japanese-document: http://golang.rdy.jp/2015/11/01/gomobileapp/

features

  • icons generation from one image.
  • add icon resource of app. (golang/go#9985)
  • run on desktop
  • install app for iOS

install

go get -u golang.org/x/mobile/cmd/...
go get github.com/nobonobo/gomobileapp
gomobileapp init

prerequire

for iOS

  • Xcode7 install
  • npm install -g ios-deploy

Create Certificate for iOS Code signing

  • Open Preferences of Xcode7.
  • Select Accounts and append own account.
  • Click 'View Details' button for own account.
  • Show 'Sigining Identities'
  • Click 'Create' button for 'iOS Development'

for Android

  • android-platform-tools install
  • android-apktool install
  • java runtime environment(> 1.8) install

icon generator

curl -kL https://raw.github.com/pypa/pip/master/contrib/get-pip.py | sudo python2
sudo pip2 install icons

usage

for iOS app

go get -d github.com/nobonobo/nobopiano
gomobileapp build -icon icon.png -target ios github.com/nobopiano/nobopiano
# first time: open xcode(second or later: not open xcode.)
ios-deploy install -b nobopiano.app

for Android apk

go get -d github.com/nobonobo/nobopiano
gomobileapp build -icon icon.png -target android github.com/nobopiano/nobopiano
adb install -r nobopiano.apk

for Desktop app

go get -d github.com/nobonobo/nobopiano
gomobileapp build -target desktop github.com/nobopiano/nobopiano
./nobopiano

TODO

  • no dependency icons.
  • support icon for desktop

About

utility wrapper for gomobile

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages