Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.
Rust chatgptclaudeclidesktopdesktop-appelectron-alternativegeminilinuxmacosnativefierno-electronrusttauriweb-to-desktopwebsite-to-appwebviewwindowsyoutube
feat: add Windows ARM64 build and CI support (#1450)
MUGUNDANeff3e02dee56
diff --git a/.github/actions/setup-env/action.yml b/.github/actions/setup-env/action.ymlindex 93fa215d..b239b9e2 100644--- a/.github/actions/setup-env/action.yml+++ b/.github/actions/setup-env/action.yml@@ -87,8 +87,8 @@ runs:if: env.SETUP_RUST == 'true' && runner.os == 'Windows'uses: dtolnay/rust-toolchain@e2a55d2ffb04f378e9626c28d38b36d230d1e12f # masterwith:- toolchain: stable-x86_64-msvc- target: x86_64-pc-windows-msvc+ toolchain: ${{ runner.arch == 'ARM64' && 'stable-aarch64-pc-windows-msvc' || 'stable-x86_64-msvc' }}+ target: ${{ runner.arch == 'ARM64' && 'aarch64-pc-windows-msvc' || 'x86_64-pc-windows-msvc' }}- name: Setup Rust for macOSif: env.SETUP_RUST == 'true' && runner.os == 'macOS'@@ -127,20 +127,21 @@ runs:uses: actions/cache@v4id: wix-cachewith:- path: C:\Program Files (x86)\WiX Toolset v3.11- key: windows-wix-3.11.2+ path: C:\wix311+ key: windows-wix-3.11.2-binaries- name: Install WIX Toolsetif: env.SETUP_SYSTEM == 'true' && runner.os == 'Windows' && steps.wix-cache.outputs.cache-hit != 'true'shell: powershellrun: |try {- # Download and install WIX Toolset v3.11- Invoke-WebRequest -Uri "https://github.com/wixtoolset/wix3/releases/download/wix3112rtm/wix311.exe" -OutFile "wix311.exe"- Start-Process -FilePath "wix311.exe" -ArgumentList "/quiet" -Wait+ # Portable WiX v3.11.2 binaries work on both x64 and ARM64 (WoW64)+ Invoke-WebRequest -Uri "https://github.com/wixtoolset/wix3/releases/download/wix3112rtm/wix311-binaries.zip" -OutFile "wix311.zip"+ Expand-Archive -Path "wix311.zip" -DestinationPath "C:\wix311" -Force+ Remove-Item -Path "wix311.zip" -ForceWrite-Host "✅ WIX Toolset installed successfully"} catch {- Write-Error "Failed to install WIX Toolset: $($_.Exception.Message)"+ Write-Error "Failed to setup WiX Toolset: $($_.Exception.Message)"exit 1}@@ -148,9 +149,8 @@ runs:if: env.SETUP_SYSTEM == 'true' && runner.os == 'Windows'shell: powershellrun: |- $wixPath = "${env:ProgramFiles(x86)}\WiX Toolset v3.11\bin"- if (Test-Path $wixPath) {- echo $wixPath >> $env:GITHUB_PATH+ if (Test-Path "C:\wix311") {+ Add-Content -Path $env:GITHUB_PATH -Value "C:\wix311"}# Build optimizations (caching). No sccache: its per-crate cache entries hit@@ -160,5 +160,5 @@ runs:uses: swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2with:workspaces: "src-tauri -> target"- shared-key: "pake-build-${{ runner.os }}"+ shared-key: "pake-build-${{ runner.os }}${{ runner.arch == 'ARM64' && '-arm64' || '' }}"save-if: ${{ inputs.rust-cache-save == 'true' }}diff --git a/.github/workflows/pake-cli.yaml b/.github/workflows/pake-cli.yamlindex 3d794aa9..c774a264 100644--- a/.github/workflows/pake-cli.yaml+++ b/.github/workflows/pake-cli.yaml@@ -14,6 +14,7 @@ on:type: choiceoptions:- "windows-latest"+ - "windows-11-arm"- "macos-latest"- "ubuntu-24.04"url:@@ -225,9 +226,22 @@ jobs:$args += "--new-window"}+ # Native Windows ARM64 runner builds the aarch64-pc-windows-msvc target;+ # x64 runners keep the CLI's default target selection.+ $isArm64 = $env:RUNNER_ARCH -eq "ARM64"+ if ($isArm64) {+ $args += "--targets", "arm64"+ }+Write-Host "Running: node dist/cli.js $($args -join ' ')"node dist/cli.js $args+ # Give the ARM64 MSI an architecture-specific name so it can never+ # collide with (or overwrite) the x64 artifact.+ if ($isArm64) {+ Move-Item -Path "$($env:INPUT_NAME).msi" -Destination "$($env:INPUT_NAME)_arm64.msi" -Force+ }+git checkout -- src-tauri/Cargo.lock- name: Upload DMG (macOS)@@ -279,6 +293,6 @@ jobs:if: runner.os == 'Windows'uses: actions/upload-artifact@v6with:- name: ${{ inputs.name }}-Windows- path: ${{ inputs.name }}.msi+ name: ${{ inputs.name }}-Windows${{ runner.arch == 'ARM64' && '-arm64' || '' }}+ path: ${{ inputs.name }}${{ runner.arch == 'ARM64' && '_arm64' || '' }}.msiretention-days: 3diff --git a/.github/workflows/quality-and-test.yml b/.github/workflows/quality-and-test.ymlindex 5e4ef20a..00cad982 100644--- a/.github/workflows/quality-and-test.yml+++ b/.github/workflows/quality-and-test.yml@@ -70,8 +70,12 @@ jobs:# Windows-only cfg arms (WebView2 downloads, password autosave, proxy args)# never compile on the Linux job, so lint and test them on a Windows host.rust-quality-windows:- name: Rust Code Quality (windows-latest)- runs-on: windows-latest+ name: Rust Code Quality (${{ matrix.os }})+ runs-on: ${{ matrix.os }}+ strategy:+ matrix:+ os: [windows-latest, windows-11-arm]+ fail-fast: falsedefaults:run:shell: bash@@ -106,7 +110,7 @@ jobs:runs-on: ${{ matrix.os }}strategy:matrix:- os: [ubuntu-24.04, windows-latest, macos-latest]+ os: [ubuntu-24.04, windows-latest, windows-11-arm, macos-latest]fail-fast: falsesteps:- name: Checkout repository@@ -155,7 +159,7 @@ jobs:runs-on: ${{ matrix.os }}strategy:matrix:- os: [ubuntu-24.04, windows-latest, macos-latest]+ os: [ubuntu-24.04, windows-latest, windows-11-arm, macos-latest]fail-fast: falsesteps:- name: Checkout repositorydiff --git a/.github/workflows/single-app.yaml b/.github/workflows/single-app.yamlindex 4125ddb1..912db168 100644--- a/.github/workflows/single-app.yaml+++ b/.github/workflows/single-app.yaml@@ -114,7 +114,7 @@ jobs:strategy:fail-fast: falsematrix:- build: [linux, macos, windows]+ build: [linux, macos, windows, windows-arm64]include:- build: linuxos: ubuntu-24.04@@ -122,6 +122,9 @@ jobs:- build: windowsos: windows-latestrust: stable-x86_64-msvc+ - build: windows-arm64+ os: windows-11-arm+ rust: stable- build: macosos: macos-latestrust: stable@@ -348,7 +351,7 @@ jobs:xcrun stapler staple "$DMG_PATH"- name: Build for Windows- if: matrix.os == 'windows-latest'+ if: startsWith(matrix.os, 'windows')timeout-minutes: 20env:INPUT_URL: ${{ inputs.url }}@@ -381,7 +384,8 @@ jobs:$args += "--width", $env:INPUT_WIDTH$args += "--height", $env:INPUT_HEIGHT- $args += "--targets", "x64"+ $arch = if ($env:RUNNER_ARCH -eq "ARM64") { "arm64" } else { "x64" }+ $args += "--targets", $archnode dist/cli.js $args@@ -393,12 +397,13 @@ jobs:$legacyProjectRootMsi = "$($env:INPUT_NAME).msi"if (Test-Path $projectRootMsi) {- Move-Item -Path $projectRootMsi -Destination "output\windows\$($env:INPUT_TITLE)_x64.msi"+ Move-Item -Path $projectRootMsi -Destination "output\windows\$($env:INPUT_TITLE)_$arch.msi"} elseif (Test-Path $legacyProjectRootMsi) {- Move-Item -Path $legacyProjectRootMsi -Destination "output\windows\$($env:INPUT_TITLE)_x64.msi"+ Move-Item -Path $legacyProjectRootMsi -Destination "output\windows\$($env:INPUT_TITLE)_$arch.msi"} else {# Check architecture-specific path (x64 builds)- $msiFiles = Get-ChildItem -Path "src-tauri\target\x86_64-pc-windows-msvc\release\bundle\msi\*.msi" -ErrorAction SilentlyContinue+ $triple = if ($arch -eq "arm64") { "aarch64-pc-windows-msvc" } else { "x86_64-pc-windows-msvc" }+ $msiFiles = Get-ChildItem -Path "src-tauri\target\$triple\release\bundle\msi\*.msi" -ErrorAction SilentlyContinue# Fallback to generic pathif (-not $msiFiles) {@@ -406,13 +411,13 @@ jobs:}if ($msiFiles) {- Move-Item -Path $msiFiles[0].FullName -Destination "output\windows\$($env:INPUT_TITLE)_x64.msi"+ Move-Item -Path $msiFiles[0].FullName -Destination "output\windows\$($env:INPUT_TITLE)_$arch.msi"} else {Write-Error "No MSI files found in expected locations"Write-Host "Searched paths:"Write-Host " - $projectRootMsi (project root)"Write-Host " - $legacyProjectRootMsi (project root)"- Write-Host " - src-tauri\target\x86_64-pc-windows-msvc\release\bundle\msi\"+ Write-Host " - src-tauri\target\$triple\release\bundle\msi\"Write-Host " - src-tauri\target\release\bundle\msi\"Write-Host "`nAll MSI files in target directory:"Get-ChildItem -Path "src-tauri\target\" -Recurse -Name "*.msi" | Write-Host@@ -451,7 +456,7 @@ jobs:- name: Upload to release (Windows)uses: ncipollo/release-action@339a81892b84b4eeb0f6e744e4574d79d0d9b8dd # v1.21.0- if: matrix.os == 'windows-latest' && startsWith(github.ref, 'refs/tags/')+ if: startsWith(matrix.os, 'windows') && startsWith(github.ref, 'refs/tags/')with:allowUpdates: trueomitBody: truediff --git a/bin/builders/BaseBuilder.ts b/bin/builders/BaseBuilder.tsindex 538429ed..c43ba758 100644--- a/bin/builders/BaseBuilder.ts+++ b/bin/builders/BaseBuilder.ts@@ -144,6 +144,7 @@ export default abstract class BaseBuilder {if (IS_WIN &&+ this.options.targets !== 'arm64' &&this.options.windowsToolchain !== 'gnu' &&!hasWindowsMsvcBuildTools() &&hasWindowsGnuToolchain()diff --git a/bin/builders/WinBuilder.ts b/bin/builders/WinBuilder.tsindex adea72ec..5cc1b164 100644--- a/bin/builders/WinBuilder.ts+++ b/bin/builders/WinBuilder.ts@@ -48,7 +48,8 @@ export default class WinBuilder extends BaseBuilder {getFileName(): string {const { name } = this.options;const language = this.options.installerLanguage;- const targetArch = this.getArchDisplayName(this.buildArch);+ // WiX names the MSI after the arch itself (x64/arm64), not the macOS-style aarch64.+ const targetArch = this.buildArch;return `${name}_${this.options.appVersion}_${targetArch}_${language}`;}diff --git a/bin/helpers/rust.ts b/bin/helpers/rust.tsindex 00d8a0b9..03af6143 100644--- a/bin/helpers/rust.ts+++ b/bin/helpers/rust.ts@@ -151,15 +151,19 @@ function getVsWherePath(): string {* the same registry vswhere reads), so checking PATH directly would warn on* most MSVC machines.*/-export function hasWindowsMsvcBuildTools(): boolean {+export function hasWindowsMsvcBuildTools(arch: string = process.arch): boolean {const vswhere = getVsWherePath();if (!fsExtra.pathExistsSync(vswhere)) return false;+ const component =+ arch === 'arm64'+ ? 'Microsoft.VisualStudio.Component.VC.Tools.ARM64'+ : 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64';try {const { stdout } = execaSync(vswhere, ['-products','*','-requires',- 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64',+ component,'-property','installationPath',]);diff --git a/dist/cli.js b/dist/cli.jsindex 5711a0c8..8894e7a4 100644--- a/dist/cli.js+++ b/dist/cli.js@@ -812,16 +812,19 @@ function getVsWherePath() {* the same registry vswhere reads), so checking PATH directly would warn on* most MSVC machines.*/-function hasWindowsMsvcBuildTools() {+function hasWindowsMsvcBuildTools(arch = process.arch) {const vswhere = getVsWherePath();if (!fsExtra.pathExistsSync(vswhere))return false;+ const component = arch === 'arm64'+ ? 'Microsoft.VisualStudio.Component.VC.Tools.ARM64'+ : 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64';try {const { stdout } = execaSync(vswhere, ['-products','*','-requires',- 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64',+ component,'-property','installationPath',]);@@ -2095,6 +2098,7 @@ class BaseBuilder {}ensureRustEnv();if (IS_WIN &&+ this.options.targets !== 'arm64' &&this.options.windowsToolchain !== 'gnu' &&!hasWindowsMsvcBuildTools() &&hasWindowsGnuToolchain()) {@@ -2583,7 +2587,8 @@ class WinBuilder extends BaseBuilder {getFileName() {const { name } = this.options;const language = this.options.installerLanguage;- const targetArch = this.getArchDisplayName(this.buildArch);+ // WiX names the MSI after the arch itself (x64/arm64), not the macOS-style aarch64.+ const targetArch = this.buildArch;return `${name}_${this.options.appVersion}_${targetArch}_${language}`;}getBuildCommand(packageManager = 'pnpm') {diff --git a/docs/github-actions-usage.md b/docs/github-actions-usage.mdindex eecccb01..a39ba73b 100644--- a/docs/github-actions-usage.md+++ b/docs/github-actions-usage.md@@ -23,26 +23,26 @@ The first run builds the dependency cache and takes about 10-15 minutes, later r## Form Inputs-| Field | What it does | Default |-| --------------------------------------------------------- | ---------------------------------------------------------------------- | -------------- |-| `Platform` | Runner to build on: `windows-latest`, `macos-latest` or `ubuntu-24.04` | `macos-latest` |-| `Website URL` | The site to package, required | none |-| `App name (lowercase for Linux)` | App name and artifact prefix, required | none |-| `Icon URL, auto-fetch if empty` | Icon for the app, fetched from the site when empty | empty |-| `Window width (px)` | Initial window width | `1200` |-| `Window height (px)` | Initial window height | `780` |-| `Minimum window width (px)` | Smallest width the window can shrink to | empty |-| `Minimum window height (px)` | Smallest height the window can shrink to | empty |-| `App version` | Version written into the package | `1.0.0` |-| `Start in fullscreen mode` | Open the app in fullscreen | off |-| `Hide title bar (macOS only)` | Hide the window title bar | off |-| `Allow sites to open new windows` | Let the site open pop-up windows | off |-| `Universal binary (macOS only)` | Build one app for Intel and Apple Silicon | off |-| `Package formats (comma-separated: deb,appimage,rpm,zst)` | Linux package formats, ignored on other platforms | `deb` |+| Field | What it does | Default |+| --------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -------------- |+| `Platform` | Runner to build on: `windows-latest`, `windows-11-arm`, `macos-latest` or `ubuntu-24.04` | `macos-latest` |+| `Website URL` | The site to package, required | none |+| `App name (lowercase for Linux)` | App name and artifact prefix, required | none |+| `Icon URL, auto-fetch if empty` | Icon for the app, fetched from the site when empty | empty |+| `Window width (px)` | Initial window width | `1200` |+| `Window height (px)` | Initial window height | `780` |+| `Minimum window width (px)` | Smallest width the window can shrink to | empty |+| `Minimum window height (px)` | Smallest height the window can shrink to | empty |+| `App version` | Version written into the package | `1.0.0` |+| `Start in fullscreen mode` | Open the app in fullscreen | off |+| `Hide title bar (macOS only)` | Hide the window title bar | off |+| `Allow sites to open new windows` | Let the site open pop-up windows | off |+| `Universal binary (macOS only)` | Build one app for Intel and Apple Silicon | off |+| `Package formats (comma-separated: deb,appimage,rpm,zst)` | Linux package formats, ignored on other platforms | `deb` |## Artifacts-Each run uploads the package as an artifact named after the app: `<name>-macOS` holds the `.dmg`, `<name>-Windows` the `.msi`, and Linux gets one artifact per format, `<name>-Linux-deb`, `<name>-Linux-AppImage`, `<name>-Linux-rpm` and `<name>-Linux-zst`. Artifacts are kept for 3 days, so download them soon after the build. Instead of the `Artifacts` section, you can also fetch them with the GitHub CLI: `gh run download RUN_ID`.+Each run uploads the package as an artifact named after the app: `<name>-macOS` holds the `.dmg`, `<name>-Windows` (or `<name>-Windows-arm64` on `windows-11-arm`) holds the `.msi`, and Linux gets one artifact per format, `<name>-Linux-deb`, `<name>-Linux-AppImage`, `<name>-Linux-rpm` and `<name>-Linux-zst`. Artifacts are kept for 3 days, so download them soon after the build. Instead of the `Artifacts` section, you can also fetch them with the GitHub CLI: `gh run download RUN_ID`.## Tipsdiff --git a/docs/github-actions-usage_CN.md b/docs/github-actions-usage_CN.mdindex 531fc307..baf53f8b 100644--- a/docs/github-actions-usage_CN.md+++ b/docs/github-actions-usage_CN.md@@ -23,26 +23,26 @@## 表单字段-| 字段 | 作用 | 默认值 |-| --------------------------------------------------------- | ----------------------------------------------------------------- | -------------- |-| `Platform` | 构建平台,可选 `windows-latest`、`macos-latest` 或 `ubuntu-24.04` | `macos-latest` |-| `Website URL` | 要打包的网站,必填 | 无 |-| `App name (lowercase for Linux)` | 应用名称,也是产物名的前缀,必填 | 无 |-| `Icon URL, auto-fetch if empty` | 应用图标,留空时从网站自动获取 | 空 |-| `Window width (px)` | 窗口初始宽度 | `1200` |-| `Window height (px)` | 窗口初始高度 | `780` |-| `Minimum window width (px)` | 窗口能缩到的最小宽度 | 空 |-| `Minimum window height (px)` | 窗口能缩到的最小高度 | 空 |-| `App version` | 写入安装包的版本号 | `1.0.0` |-| `Start in fullscreen mode` | 以全屏模式启动 | 关 |-| `Hide title bar (macOS only)` | 隐藏窗口标题栏 | 关 |-| `Allow sites to open new windows` | 允许网站弹出新窗口 | 关 |-| `Universal binary (macOS only)` | 打一个同时支持 Intel 和 Apple 芯片的应用 | 关 |-| `Package formats (comma-separated: deb,appimage,rpm,zst)` | Linux 安装包格式,其他平台忽略 | `deb` |+| 字段 | 作用 | 默认值 |+| --------------------------------------------------------- | ----------------------------------------------------------------------------------- | -------------- |+| `Platform` | 构建平台,可选 `windows-latest`、`windows-11-arm`、`macos-latest` 或 `ubuntu-24.04` | `macos-latest` |+| `Website URL` | 要打包的网站,必填 | 无 |+| `App name (lowercase for Linux)` | 应用名称,也是产物名的前缀,必填 | 无 |+| `Icon URL, auto-fetch if empty` | 应用图标,留空时从网站自动获取 | 空 |+| `Window width (px)` | 窗口初始宽度 | `1200` |+| `Window height (px)` | 窗口初始高度 | `780` |+| `Minimum window width (px)` | 窗口能缩到的最小宽度 | 空 |+| `Minimum window height (px)` | 窗口能缩到的最小高度 | 空 |+| `App version` | 写入安装包的版本号 | `1.0.0` |+| `Start in fullscreen mode` | 以全屏模式启动 | 关 |+| `Hide title bar (macOS only)` | 隐藏窗口标题栏 | 关 |+| `Allow sites to open new windows` | 允许网站弹出新窗口 | 关 |+| `Universal binary (macOS only)` | 打一个同时支持 Intel 和 Apple 芯片的应用 | 关 |+| `Package formats (comma-separated: deb,appimage,rpm,zst)` | Linux 安装包格式,其他平台忽略 | `deb` |## 构建产物-每次运行会把安装包按应用名上传为 Artifact,`<name>-macOS` 里是 `.dmg`,`<name>-Windows` 里是 `.msi`,Linux 每种格式各一个,分别是 `<name>-Linux-deb`、`<name>-Linux-AppImage`、`<name>-Linux-rpm` 和 `<name>-Linux-zst`。产物只保留 3 天,构建完尽快下载,除了在 `Artifacts` 部分下载,也可以用 GitHub CLI 执行 `gh run download RUN_ID` 拿到。+每次运行会把安装包按应用名上传为 Artifact,`<name>-macOS` 里是 `.dmg`,`<name>-Windows`(在 `windows-11-arm` 上为 `<name>-Windows-arm64`)里是 `.msi`,Linux 每种格式各一个,分别是 `<name>-Linux-deb`、`<name>-Linux-AppImage`、`<name>-Linux-rpm` 和 `<name>-Linux-zst`。产物只保留 3 天,构建完尽快下载,除了在 `Artifacts` 部分下载,也可以用 GitHub CLI 执行 `gh run download RUN_ID` 拿到。## 提示diff --git a/tests/index.js b/tests/index.jsindex eb92c247..be865339 100644--- a/tests/index.js+++ b/tests/index.js@@ -785,7 +785,11 @@ class PakeTestRunner {"--hide-title-bar",...(multiArch ? ["--multi-arch"] : []),"--targets",- process.platform === "win32" ? "x64" : extension,+ process.platform === "win32"+ ? process.arch === "arm64"+ ? "arm64"+ : "x64"+ : extension,"--json","--icon",path.join(config.PROJECT_ROOT, "src-tauri/icons/icon.png"),diff --git a/tests/unit/windows-toolchain-detection.test.ts b/tests/unit/windows-toolchain-detection.test.tsindex 49ca6d34..bc1e5c83 100644--- a/tests/unit/windows-toolchain-detection.test.ts+++ b/tests/unit/windows-toolchain-detection.test.ts@@ -33,7 +33,28 @@ describe('hasWindowsMsvcBuildTools', () => {stdout: 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community',});- expect(hasWindowsMsvcBuildTools()).toBe(true);+ expect(hasWindowsMsvcBuildTools('x64')).toBe(true);+ expect(execaSyncMock).toHaveBeenCalledWith(+ expect.any(String),+ expect.arrayContaining([+ 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64',+ ]),+ );+ });++ it('queries the ARM64 VC tools component on Windows ARM64', () => {+ pathExistsSyncMock.mockReturnValue(true);+ execaSyncMock.mockReturnValue({+ stdout: 'C:\\Program Files\\Microsoft Visual Studio\\2022\\BuildTools',+ });++ expect(hasWindowsMsvcBuildTools('arm64')).toBe(true);+ expect(execaSyncMock).toHaveBeenCalledWith(+ expect.any(String),+ expect.arrayContaining([+ 'Microsoft.VisualStudio.Component.VC.Tools.ARM64',+ ]),+ );});it('returns false when vswhere finds no matching installation', () => {diff --git a/tests/unit/windows-toolchain.test.ts b/tests/unit/windows-toolchain.test.tsindex 4a834d13..0567137a 100644--- a/tests/unit/windows-toolchain.test.ts+++ b/tests/unit/windows-toolchain.test.ts@@ -31,6 +31,15 @@ const makeWinBuilder = (targets: string, windowsToolchain?: 'msvc' | 'gnu') =>windowsToolchain,} as PakeAppOptions);+describe('WinBuilder MSI file name', () => {+ it('uses the WiX arch names (x64/arm64) so the built MSI is found', () => {+ expect(makeWinBuilder('x64').getFileName()).toBe('Demo_1.0.0_x64_en-US');+ expect(makeWinBuilder('arm64').getFileName()).toBe(+ 'Demo_1.0.0_arm64_en-US',+ );+ });+});+describe('WinBuilder toolchain target selection', () => {it('keeps the default msvc triples when windowsToolchain is not set', () => {expect((makeWinBuilder('x64') as any).getTauriTarget('x64')).toBe(