# web-to-exe **Repository Path**: mxvc/web-to-exe ## Basic Information - **Project Name**: web-to-exe - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-05-07 - **Last Updated**: 2024-05-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # example https://github.com/webview/webview.git ### Windows Your compiler must support C++14 and we recommend to pair it with an up-to-date Windows 10 SDK. For Visual C++ we recommend Visual Studio 2022 or later. We have a [separate section for MinGW-w64](#mingw-w64-requirements). Developers and end-users must have the [WebView2 runtime][ms-webview2-rt] installed on their system for any version of Windows before Windows 11. ## Getting Started ```sh mkdir my-project && cd my-project mkdir build libs "libs/webview" ``` ### Windows Preparation The [WebView2 SDK][ms-webview2-sdk] is required when compiling programs: ```bat mkdir libs\webview2 curl -sSL "https://www.nuget.org/api/v2/package/Microsoft.Web.WebView2" | tar -xf - -C libs\webview2 ``` ### C/C++ Preparation Fetch the webview library: ```sh curl -sSLo "libs/webview/webview.h" "https://raw.githubusercontent.com/webview/webview/master/webview.h" curl -sSLo "libs/webview/webview.cc" "https://raw.githubusercontent.com/webview/webview/master/webview.cc" ``` ### Getting Started with C++ Save the basic C++ example into your project directory: ```sh curl -sSLo basic.cc "https://raw.githubusercontent.com/webview/webview/master/examples/basic.cc" ``` Build and run the example: ```sh # Windows/MinGW g++ main.cc -std=c++14 -mwindows -Ilibs/webview -Ilibs/webview2/build/native/include -ladvapi32 -lole32 -lshell32 -lshlwapi -luser32 -lversion -o app.exe ```