libgdx / libgdx/packr

Support for macOS ARM binaries

Open
#198 4 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C++
Stars
2.6k
Forks
174
PR merge metrics
No merged PRs in 30d

Description

Currently, packr builds all .app binaries as Application (Intel) binaries, even from an M1 mac. Though the Intel build runs on ARM under Rosetta 2, the CPU and GPU usage on Idle are much much higher than running a native ARM binary.

image
(built on an M1 mac)

Even when building with a zulu arm64 JDK build, we get errors saying "Wrong Architecture", as it's trying to run the binary as Intel, through Rosetta 2.

image

Is there any possibility of supporting M1 and Apple Silicon platforms going forward?
We'd greatly appreciate your consideration.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue provides no file or test entry point. Start by tracing packr's macOS .app build path and how it selects the bundled JDK and binary architecture, then reproduce the reported Wrong Architecture case with an Apple Silicon build. Done means a native ARM macOS .app can be built and run without Rosetta while existing Intel support remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, java, macos
Domain
build-system, desktop, operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.