Building for Windows
Windows builds of Cordova 9.0 or higher are supported by electron apps. See here for building an electron app on Windows. Windows builds are available for Cordova 7.1 projects.
Windows Store apps are created by using HTML5 and JavaScript, and they run natively on the WinRT architecture. Therefore, applications created by using Monaca are equipped with the same functionalities as the ones created by development tools such as Visual Studio and can use all native features including WinJS.
Windows Store apps run on PCs and tablets installed with Windows and Windows RT. However, if you want to publish an app to the Windows Store, you will need to rebuild it separately by using Visual Studio or other development tools since the release build from Monaca is not supported yet.
On the other hand, Windows Store apps have some constraints that are not found on Android or iOS such as:
- There are some methods or features that are not supported sinceHTML5 and JavaScript run in the Trident/Chakra application mode. For
You are required to have a valid Microsoft Developer License in order to build Windows apps. It's free but you need to have a Microsoft account. If you don't have a license, please register here.
- 1.From the Monaca Cloud IDE menu, go to Configure → App Settings for Windows.
- 2.Fill in the app information:FieldDescriptionPackage Certificate KeyThis certificate is used when Monaca compiles a Windows app. It will also be used when doing sideloading or submitting to the Windows Store. It will be generated automatically in the first Windows build if it does not yet exist. If you want to upload an existing certificate file, it should be in the
PKCS#7
format without password.App Display NameThe application name. It will appear on the start screen.Package Display NameThe package name.Short NameThe name to be displayed on the taskbar.Show NameDefine the default setting of the logo displayed in the start menu of Windows 8 or higher.VersionThe version number of your app. A version number consist of numbers separated by dots (for example,0.0.1.0
).App DescriptionA short summary of your app.Package Publisher NameYour name, group name, company name, etc.ArchitectureSelect a CPU Architecture. Available options areAnyCPU
,x86
,x64
andArm
.

3. After setting the configurations, click Save.
- 1.From the Monaca Cloud IDE menu, go to Build → Build App for Windows.
- 2.Click Start Build.

3. After the build is completed, download the zip file of the built app.
- 1.Extract the downloaded zip file.
- 2.In the extracted folder, right-click on the Add-AppDevPackage.ps1 file and click Run with PowerShell. The installation will begin.

3. You might be asked to confirm the opening of the selected file. Click Open.

4. Press Enter to continue.

5. The UAC (User Account Control) prompt will appear asking you to grant the Administrative privilege. Click Yes.
6. Confirm the running of the app by typing
R
in the PowerShell windows.
7. Then, type
Y
.
8. Once the installation is completed, press Enter.

9. Now, your app should be installed. You can find your app in the Apps.

10. Click on it to launch the app. Then, your app should be running.

See Also:
Last modified 1yr ago