Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hipersayanx/uwpappmingw
UWP application example using MinGW and MSYS2
https://github.com/hipersayanx/uwpappmingw
mingw msys2 uwp-application uwp-apps
Last synced: 23 days ago
JSON representation
UWP application example using MinGW and MSYS2
- Host: GitHub
- URL: https://github.com/hipersayanx/uwpappmingw
- Owner: hipersayanX
- License: mit
- Created: 2021-02-07T00:17:21.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-02-07T00:26:20.000Z (over 3 years ago)
- Last Synced: 2024-05-01T20:08:46.833Z (6 months ago)
- Topics: mingw, msys2, uwp-application, uwp-apps
- Language: C++
- Homepage:
- Size: 15.6 KB
- Stars: 9
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# 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](https://docs.microsoft.com/en-us/windows/uwp/cpp-and-winrt-apis/intro-to-using-cpp-with-winrt). You will have to adhere to the strictly available [Win32 APIs in UWP apps](https://docs.microsoft.com/en-us/uwp/win32-and-com/win32-and-com-for-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](https://docs.microsoft.com/en-us/windows/uwp/get-started/universal-application-platform-guide).
For signing the package and running the app in your system you will need to [create a self-signed certificate](https://docs.microsoft.com/en-us/windows/msix/package/create-certificate-package-signing) 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](://docs.microsoft.com/en-us/windows/msix/package/manual-packaging-root).# Required dependencies
* [Windows SDK for UWP Managed Apps](https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk/), read [here](https://docs.microsoft.com/en-us/windows/uwp/app-resources/makepri-exe-command-options).
* [MSYS2](https://www.msys2.org/)# 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.