/UWPAppMinGW

UWP application example using MinGW and MSYS2

Primary LanguageC++MIT LicenseMIT

UWP application example using MinGW and MSYS2

This is the simplest working application you can build using MinGW and MSYS2.
You can build and test you app before packaging as it were a normal Windows program, but take in mind that your application will be running in a box and won't be able to interact with anything else outside the box, for example you won't be able to launch programs or use any kind of IPC mechanism outside the box, also you won't be able to get any console output or pass any argument or environment variable to the app, also MinGW does not implements C++/WinRT API. You will have to adhere to the strictly available Win32 APIs in UWP apps.
Things that you can do with UWP apps and limitations are long to explain, if you have any question just check out Microsoft documentation. For signing the package and running the app in your system you will need to create a self-signed certificate and pass the sha1 hash to CERTIFICATE_SHA in package.bat. If you have any question about packaging and signing just check out Microsoft documentation.

Required dependencies

Building and running

Once you have everything prepared, run:

make
make package

and then double-click the UWPApp.msix package to install and run the app.