Cordova : how to deploy windows 10 apps

被刻印的时光 ゝ 提交于 2019-12-24 07:09:31

问题


I built a cordova windows 10 app. The build works fine and I am able to launch my app on the simulator via Visual Studio 2015.

How can i deploy this app for an entreprise? Basically I want to build an appx but I really don't know where to start? And what are the different stages?

I developped and distributed many cordova apps on iOS and Android but the windows universe seems quiet dark...


回答1:


I have recently entered the dark world of deploying Cordova-based Window 10 apps for enterprise purposes.

Firstly, it makes a big difference if you are going to deploy via Windows Store or not. My answer below assumes you are going to use the standard public-facing Windows Store, but you can also go down the private store via Windows Store For Business route to distribute enterpise apps, however I have no experience of this.

Unlike the Google Play Store for Android or App Store for iOS, Windows Store enables you to deploy apps without publicly listing them. You can restrict access to Windows 10 apps to anyone in possession of the direct link or restrict access to a constrained list of people. The first option was good enough for me.

In order to upload the apps to the Windows Store, you need to generate a .appxupload bundle.

To do so with Cordova CLI I used cordova build windows --release -- --archs="x86 x64 arm" --bundle --win. You can also do this by opening the platforms/windows/CordovaApp.sln in Visual Studio and selecting "Project > Store > Create App Packages...".

Both of the above assume your app is already configured with the correct package name and certificate for the corresponding app profile. You can create a new app profile in the Windows Store developer portal: https://developer.microsoft.com/en-us/dashboard/overview. The easiest way to associate a profile with the your Cordova project is via Visual Studio: "Project > Store > Associate App with the Store...".

You can then upload your .appxupload via the Windows Store developer portal when prompted to do so during the submission process.

For testing purposes, I used the Sideloading mechanism, however this requires the device to be set in Sideloading or Developer mode, so is not suitable for enterprise deployment.



来源:https://stackoverflow.com/questions/39952640/cordova-how-to-deploy-windows-10-apps

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!