Repository navigation
Open
Description
What I did
- backend (wgtunnel/core) — added a
linux-arm64rule tobackend/native/backend/Makefile(onlylinux-amd64existed), builtlibwg.sofor aarch64, placed it intobackend/src/jvmMain/resources/natives/linux-aarch64/, and ran./gradlew :backend:publishToMavenLocal.- Also had to bump
coreindesktop/gradle/libs.versions.tomlfrom1.10.0→1.10.1to match the local core build.
- Also had to bump
- keyring — added a
linux-arm64rule tokeyring/tools/keyring-go/Makefile, and changedBuildKeyringGoLibsTask.ktto runmake copy_to_resources PLATFORMS=linux-arm64on Linux instead ofmake all(which also tries Windows cross-builds and fails without mingw). - JVM-only build — disabled the Android KMP plugin + android target in
backend, and excluded:hevtunnel/:backend-android-jnifromsettings.gradle.kts(they require an Android SDK, even for JVM-only builds). - PGP signing — disabled (
signAllPublications(),signingplugin,signing.required=false) becausepublishToMavenLocalshould not require a signatory.
Bugs found during the build (worth fixing)
- Compose version mix:
material3 = "1.13.0-beta01"is combined withcompose-plugin = "1.12.1". At runtime the native image throwsNoSuchMethodError: SemanticsNode.getLayoutNode$ui(). Workaround: use material31.12.0-alpha03. This affects x86_64 too, not just arm64. backend/native/backend/Makefileandkeyring/tools/keyring-go/Makefilelacklinux-arm64targets (only amd64 + windows/darwin).BuildKeyringGoLibsTaskrunsmake allon Linux, which tries Windows cross-builds and fails without mingw.publishToMavenLocalrequires PGP signing (signAllPublications()), which is unnecessary for local publishing.backendKMP module has an Android target requiring Android SDK even for JVM-only builds.- Linux packaging needs
patchelfandzlib1g-dev;npmis a separate package fromnodejson Ubuntu (electron-builder needs it).
Environment
- Host: ASUS Zenbook A14 UX3407Q (Snapdragon X Plus), aarch64
- Ubuntu 26.04, kernel 7.2.0-18-qcom-x1e
- JDK 21 (for core) + GraalVM 25 (for desktop), Go 1.25/1.27, Node 22
- Build commands:
cd core && JAVA_HOME=/usr/lib/jvm/java-21-openjdk-arm64 ./gradlew :backend:publishToMavenLocalcd desktop && JAVA_HOME=<graalvm-25> ./gradlew :composeApp:packageGraalvmDeb :composeApp:packageGraalvmTar -Papp.variant=release -Papp.version=2.4.1 -Papp.packageVersion=2.4.1
Result
wgtunnel-2.4.1-linux-arm64.deb+.tar.gzbuilt and working (GUI + daemon launch fine).- Native libs placed:
natives/linux-aarch64/libwg.so(backend-jvm),linux-aarch64/libkeyring.so(keyring).
Request
Please add a Linux arm64 job to .github/workflows/package-linux.yml (runs-on: ubuntu-24.04-arm) and include linux-arm64 in both Makefiles so arm64 users get official builds. I can help with the workflow / test artifacts if wanted.
The proposed Linux arm64 workflow can be found here: https://gist.github.com/Kiberbunny/715050b8bcc7a60f8bedbb4c9139e534
The built artifacts are available here (deb + tar.gz for aarch64):
https://github.com/Kiberbunny/-wgtunnel-arm64-builds/releases/tag/WG-Tunnel-2.4.1
Metadata
Metadata
Assignees
Labels
No labels
Activity