janpio commented on a change in pull request #785: [WIP] cordova-windows: Windows 10 default URL: https://github.com/apache/cordova-docs/pull/785#discussion_r170420504
########## File path: www/docs/en/dev/guide/platforms/win8/index.md ########## @@ -111,47 +120,64 @@ the [Understanding Remote Mode vs Local Mode](#understanding-remote-mode-vs-loca When using Remote Mode, developers are encouraged to apply a Content Security Policy (CSP) to their application to prevent script injection attacks. -### The --appx parameter +### Deploy options -You may decide that you want to build a particular version of your application targeting a particular OS (for example, you might have set that you want to target Windows 10, but you want to build for Windows Phone 8.1). To do this, you can use the `--appx` parameter: +To deploy Windows package: ``` -cordova build windows -- --appx=8.1-phone +cordova run windows ``` -The build system will ignore the preference set in config.xml for the target Windows version and strictly build a package for Windows Phone 8.1. - -Valid values for the `--appx` flag are `8.1-win`, `8.1-phone`, and `uap` (for Windows 10 Universal Apps). These options also apply to the `cordova run` command. - -### Deploy options - -To deploy Windows package: +This command will give you the list of all available targets: ``` -cordova run windows -- --win # explicitly specify Windows as deployment target -cordova run windows # `run` uses Windows package by default +cordova run windows --list ``` -To deploy Windows Phone package: +This allows you to run the application on a specific device or emulator, in this case "Emulator 8.1 720p 4.7 inch" ``` -cordova run windows -- --phone # deploy app to Windows Phone 8.1 emulator -cordova run windows --device -- --phone # deploy app to connected device +cordova run windows --target="Emulator 8.1 720P 4.7 inch" -- --phone ``` -This command will give you the list of all available targets: +#### Architecture option + +TODO +- `--archs` +- Specific chip architectures (`anycpu`, `arm`, `x86`, `x64`) + +#### Bundle option + +TODO +- `--bundle` +- Generates an .appxbundle. Not valid if anycpu AND chip-specific architectures are used (at the same time) + +You can also use __cordova run --help__ to see additional build and run options. + +#### Deploy options when targetting Windows (Phone) 8.1 + +With Windows (Phone) 8.1 packages you have more options for deployment. + +##### `--phone` and `--win` + +To deploy Windows 8.1 package: ``` -cordova run windows --list +cordova run windows -- --win # explicitly specify Windows as deployment target Review comment: recheck if this is enough to really trigger a 8.1 build ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org For additional commands, e-mail: commits-h...@cordova.apache.org