When I create a sample cordova app in Visual Studio I can target Android and it generates an APK what I can open easily in Android. How to do the same for Windows 8/8.1 ? ... what is the equivalent of the APK file for windows? (I was looking for a .exe or similar but cant find ... assume this must be simple!?)Answer1:
In Windows 8.0/8.1 <strong><em>.appx</em></strong> and <strong>.appxupload</strong> package are created after build and like apk this is also a zip file, to view the content of package, change the extension to .zip and extract the content. *.appx is equivalent to apk in Windows. Appx package after build is located at bld[Debug or Release]\platforms\Windows\AppPackagesAnswer2:
Here's a link to the Cordova documentation on how to package an app for windows 8/8.1.
<strong><em>Documentation</em></strong> <a href="https://msdn.microsoft.com/en-us/library/vstudio/dn757048.aspx" rel="nofollow">https://msdn.microsoft.com/en-us/library/vstudio/dn757048.aspx</a>
The documentation does the job, check it out.Answer3:
You can refer to the below link for a detailed explanation on how to make the Cordova Windows/Windows Phone apps ready for packaging:
<a href="https://taco.visualstudio.com/en-us/docs/tutorial-package-publish-readme/#windows-81" rel="nofollow">https://taco.visualstudio.com/en-us/docs/tutorial-package-publish-readme/#windows-81</a>
From Visual Studio, you basically do a Project --> Store --> Create App Packages, in the resulting Wizard, choose 'No' if you just want to create the equivalent of apk and test it on a phone/emulator and click next. Choose Version and other details and click on 'Create'. This should generate an 'appxupload' file which you can move to a phone and install and test.