Tuesday, September 27, 2016

apple store publish app


1) apple developer to fill out the information ( itune connect )

2) apple developer (certificate ID, provisioning file )

    first create a app ID, for example "net.transparentgov.ios.mapbox"

    second, with this app ID, create 2 certificate, development and distribution

   third, create the provisioning file based on above app id, certificate.


3) xcode, download provisioning file, by
  1. In the Xcode Preferences window, click Accounts.
  2. Select your team, and click View Details.

4) xcode, general tab  , code signing section
 
use this downloaded provisiong file.

5) upload the app by

    xcode, general tab ,  use distribution code signing identity, and  distribution provisioning file.

     use generic ios device, instead of real iphone

     then, top menu, -- product -- archive 

  click upload to app store. 

6) after upload, go to apple developer, you should see it. 


    

Friday, September 23, 2016

android studio publish apk

android studio:

right click "app" project,  -- open module setting ----


signing tab, click + add config,   fill out keystore etc...





Build Types tab, choose release, signing config choose config



menu, build -- generate signed APK....


finish.

The final app_release.apk is under the root of your project folder, /root project/app/

C:\jh\android\trgv_2\app\app-free-release.apk

Upload this to google play developer console


=====================================================

for new version apk,


1) gradle file need to change :

versionCode 2versionName "1.0.1"


2) menu - build - generate signed apk
you must use same certificate as last build, so no change here. click next.


3) be aware that no change here
app- right click -- open module setting ---




Auto start node.js server on boot

This isn't something to configure in node.js at all, this is purely OS responsibility (Windows in your case). The most reliable way to achieve this is through a Windows Service.
There's this super easy module that installs a node script as a windows service, it's called node-windows (npmgithubdocumentation). I've used before and worked like a charm.
var Service = require('node-windows').Service;

// Create a new service object
var svc = new Service({
  name:'Hello World',
  description: 'The nodejs.org example web server.',
  script: 'C:\\path\\to\\helloworld.js'
});

// Listen for the "install" event, which indicates the
// process is available as a service.
svc.on('install',function(){
  svc.start();
});

svc.install();

p.s.
I found the thing so useful that I built an even easier to use wrapper around it (npmgithub).
Installing it:
npm install -g qckwinsvc
Installing your service:
> qckwinsvc
prompt: Service name: [name for your service]
prompt: Service description: [description for it]
prompt: Node script path: [path of your node script]
Service installed
Uninstalling your service:
> qckwinsvc --uninstall
prompt: Service name: [name of your service]
prompt: Node script path: [path of your node script]
Service stopped
Service uninstalled