Blog

Turn a website into an .exe or .msi file you can share

Build an app · · 6 min read

To get a file you can hand to someone, build it with Pake CLI on Windows or in GitHub Actions. Both produce an .msi installer, and adding --keep-binary to the CLI also writes a standalone AppName.exe. Edge's Install this site as an app and the Pake desktop app install an app on your own computer instead and give you no installer file to send.

Which route gives you which file

RouteWhat you end up withA file to share?
Pake CLI on WindowsAn .msi in the folder you ran the command in, plus AppName.exe with --keep-binaryYes
GitHub ActionsA <name>-Windows artifact holding an .msiYes
Pake desktop appAn installed app in %LOCALAPPDATA%\Programs\Pake Apps\<name> with a Start menu shortcutNo, but settings export to a .pake file
EdgeAn installed app listed at edge://appsNo

Edge and the Pake desktop app are the better answer when the app is only for your own computer, because neither needs a toolchain. Make a Windows app from a website covers both in full, and this post is about the other case, a file for someone else.

Build the .msi with Pake CLI

The CLI needs Node.js 22.12 or later, Rust 1.85 or later, and on Windows the Visual Studio Build Tools with the "Desktop development with C++" workload (getting started). Install it and run it with an address and a name:

pnpm install -g pake-cli
pake https://example.com --name Example

Pake fetches the site's icon, converts it to .ico for Windows and writes an .msi into the current folder. Names with spaces are kept as typed on Windows, such as "Google Translate". The first build downloads and compiles dependencies, and the FAQ says to expect 10 to 15 minutes on Windows, with later builds much faster (CLI FAQ).

A few flags matter when the file is for other people:

  • --icon ./icon.png replaces the site's icon with your own file.
  • --width and --height set the starting window size, 1200 by 780 by default.
  • --targets x64 or --targets arm64 picks the processor. Without it, Pake detects the one it is building on, so build with arm64 explicitly if the recipient has an ARM machine.
  • --installer-language zh-CN sets the language of the Windows installer, en-US by default.

The complete list is in the CLI options.

Get an .exe instead of an installer

On Windows the CLI always builds an .msi: there --targets takes only x64 or arm64, which pick the processor, not the file format. What you can get as an .exe is the app's own executable: with --keep-binary, Pake writes AppName.exe next to the installer, and the docs describe it as a standalone executable that runs without installation.

pake https://example.com --name Example --keep-binary

That file still draws the page with the Microsoft Edge WebView2 Runtime, so the computer that opens it needs the runtime. If you build with --windows-toolchain gnu, which is meant for machines that have a GNU toolchain but no Visual Studio Build Tools and supports only x64, WebView2Loader.dll is copied next to the .exe, and the two files must stay together or it will not start.

Build it without a toolchain on GitHub Actions

Fork tw93/Pake, open Actions, run Build App With Pake CLI, choose windows-latest for Platform, enter the website URL and an app name, and download the <name>-Windows artifact when the run turns green. It holds an .msi, and the artifact is kept for 3 days. The form has no field for --keep-binary, so this route gives the installer only. The GitHub Actions guide has the steps, the failure causes and the Pake Action option for your own repository.

What the recipient needs

The .msi runs the app on the Microsoft Edge WebView2 Runtime, which Windows 11 includes. Tauri's installer documentation lists several ways its Windows installers can handle the runtime, and the default, downloadBootstrapper, needs an internet connection. Pake's Windows config and the CLI set no other mode, and Pake's installer template runs that step only when the runtime is not already installed, so on a computer without it, setup downloads Microsoft's bootstrapper and has to be online. For the runtime itself, see what WebView2 is.

Windows may also warn about the file. Tauri's signing guide says that signing prevents a SmartScreen warning, that an unsigned app can still run, and that on Windows 11 Smart App Control blocks unknown unsigned apps. Pake's Windows config sets no signing certificate and the CLI docs do not cover signing, so the .msi you build is unsigned, and the people you send it to should know what to expect.

Check the file before you send it

Install the .msi on a second Windows account or computer, open the app and use the part of the site you care about. Sign in, click a link that leaves the site and quit and reopen it. Then confirm the file's processor matches the recipient's computer, x64 or ARM64.

If sign-in fails inside the window, the provider may be refusing embedded web views, and no flag changes that (sign-in guide).

When it does not work

  • The build stops with an MSVC or Windows SDK error. Install the Build Tools with the C++ workload, and for ARM64 also the "MSVC v143 - VS 2022 C++ ARM64 build tools" component, as the FAQ describes.
  • The first build times out. The FAQ lists slow dependency downloads and real-time antivirus scanning as causes, and offers an opt-in CN mirror with PAKE_USE_CN_MIRROR=1.
  • The app says the runtime is missing, or does not start. Install the Evergreen WebView2 Runtime from Microsoft and try again.
  • The .exe from --keep-binary does not start after you moved it. Check whether you built with the gnu toolchain and left WebView2Loader.dll behind.

FAQ

Can I get a single .exe that installs the app?

On Windows the CLI builds an .msi for installing and, with --keep-binary, a standalone .exe that needs no installation. It has no option for an .exe setup installer.

Can I build the .msi on a Mac or Linux?

Pake's Windows target is .msi, and Tauri says .msi installers can only be created on Windows. A Windows runner on GitHub Actions is the way to do it without a Windows computer.

Can I send my Pake desktop app to someone?

On Windows, the app installs on your computer and does not hand you an installer. You can export its settings to a .pake file, and moving your apps explains how someone else imports it into their own copy of Pake.

Does it need Edge installed?

No. It needs the WebView2 Runtime, which is separate from the Edge browser.