thaliproject / postcardapp

A sample app to demonstrate how to build Thali applications
MIT License
22 stars 5 forks source link

Build app for Windows #101

Open deadlyfingers opened 8 years ago

deadlyfingers commented 8 years ago

Add support to build for Windows Universal app

Requires JXcore 0.3. 1.0 / 1.1 release. http://jxcore.com/jxcore-0-3-1-0-release/ http://jxcore.com/universal-windows-platform-uwp-samples-using-jxcore/

deadlyfingers commented 8 years ago

Cordova for Windows 10 documentation: https://cordova.apache.org/docs/en/dev/guide/platforms/win8/win10-support.html https://cordova.apache.org/docs/en/latest/guide/platforms/win8/index.html

But with regards to app assets the latest Cordova documentation only appears to cover Windows 8 & WP8: https://cordova.apache.org/docs/en/latest/config_ref/images.html

Windows 10 platform may need to added as follows: cordova platform remove windows cordova platform add "windows@https://aka.ms/cordova-win10"

Build for UWP: cordova build windows -- --appx=uap

deadlyfingers commented 8 years ago

Notes while setting up on W10 :

".jx\npm\node_modules\node-gyp\gyp\pylib\MSVSVersion.py", line 402, in SelectVisualStudioVersion
versions = _DetectVisualStudioVersions(version_map[version], 'e' in version)
KeyError: '2015'

jx npm node-gyp -v => 1.4.14, while npm version is 3.5.2. This will be updated in jx 0.3.1.1. So VS2013 tools are still required for current jx 0.3.1.0 version.

possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase the limit.
deadlyfingers commented 8 years ago

Cordova Windows 4.3.0 released - https://cordova.apache.org/announcements/2016/01/18/cordova-windows-4.3.0.html