diff --git a/app-builder-bin/index.js b/app-builder-bin/index.js index 7a6ffa5..951e33e 100644 --- a/app-builder-bin/index.js +++ b/app-builder-bin/index.js @@ -11,6 +11,15 @@ function getPath() { if (platform === "darwin") { return path.join(__dirname, "mac", "app-builder") } + else if (platform === "win32" && process.arch == "arm64") { + /** + * Golang isn't available for Windows ARM64 yet, so an ARM64 binary + * can't be built yet. However, Windows ARM64 does support ia32 + * emulation, so we can leverage the existing executable for ia32. + * https://github.com/golang/go/issues/36439 + */ + return path.join(__dirname, "win", "ia32", "app-builder.exe") + } else if (platform === "win32") { return path.join(__dirname, "win", process.arch, "app-builder.exe") } @@ -19,4 +28,4 @@ function getPath() { } } -exports.appBuilderPath = getPath() \ No newline at end of file +exports.appBuilderPath = getPath()