From 063b7931fe8128baebeb33e0dfb5ef8673de9121 Mon Sep 17 00:00:00 2001 From: Fred Bricon Date: Fri, 30 Jan 2026 11:56:15 +0100 Subject: [PATCH] build: provide extension for Windows ARM64 Signed-off-by: Fred Bricon --- .github/workflows/release.yml | 2 +- README.md | 4 ++-- scripts/jre.mjs | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a0349ed56..44c1c27ad 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -134,7 +134,7 @@ jobs: echo "publishPreReleaseFlag=--pre-release" >> $GITHUB_ENV - name: Package vscode-java run: | - platforms=("win32-x64" "linux-x64" "linux-arm64" "darwin-x64" "darwin-arm64") + platforms=("win32-x64" "win32-arm64" "linux-x64" "linux-arm64" "darwin-x64" "darwin-arm64") for platform in ${platforms[@]}; do npm run download-jre -- --target ${platform} --javaVersion 21 vsce package ${{ env.publishPreReleaseFlag }} --target ${platform} -o java-${platform}-${{ env.EXT_VERSION }}-${GITHUB_RUN_NUMBER}.vsix diff --git a/README.md b/README.md index d8531de40..943e71899 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Provides Java ™ language support via Quick Start ============ 1. Install the Extension -2. On the following platforms, the extension should activate without any setup : `win32-x64`, `darwin-x64`, `darwin-arm64`, `linux-x64`, `linux-arm64`.\ +2. On the following platforms, the extension should activate without any setup : `win32-x64`, `win32-arm64`, `darwin-x64`, `darwin-arm64`, `linux-x64`, `linux-arm64`.\ If on another platform, or using the "universal" version, you can [set](#setting-the-jdk) a _Java_ Development Kit. It must be Java 21 or above. 3. Optionally, download and install a Java Development Kit for your project (Java 1.8 or above is supported). See [Project JDKs](#project-jdks) for more details 4. Extension is activated when you first access a Java file @@ -57,7 +57,7 @@ See the [changelog](CHANGELOG.md) for the latest release. You might also find us Setting the JDK =============== ## Java Tooling JDK -Now that Java extension will publish platform specific versions, it will embed a JRE for supported platforms such as `win32-x64`, `linux-x64`, `linux-arm64`, `darwin-x64`, `darwin-arm64`. The embedded JRE is used to launch the Language Server for Java. Users are only responsible for configuring [Project JDKs](#project-jdks) to compile your Java projects. +Now that Java extension will publish platform specific versions, it will embed a JRE for supported platforms such as `win32-x64`, `win32-arm64`, `linux-x64`, `linux-arm64`, `darwin-x64`, `darwin-arm64`. The embedded JRE is used to launch the Language Server for Java. Users are only responsible for configuring [Project JDKs](#project-jdks) to compile your Java projects. The following part is only kept for the universal version without embedded JRE. diff --git a/scripts/jre.mjs b/scripts/jre.mjs index 25abd2b85..0485afda7 100644 --- a/scripts/jre.mjs +++ b/scripts/jre.mjs @@ -15,7 +15,8 @@ const platformMapping = { "linux-x64": "linux-x86_64", "darwin-arm64": "macosx-aarch64", "darwin-x64": "macosx-x86_64", - "win32-x64": "win32-x86_64" + "win32-x64": "win32-x86_64", + "win32-arm64": "win32-aarch64" };