Builds for native Apple silicon #656
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Native builds for Apple silicon.
+1 on this
You can do this yourself by following one of the items under Build instructions.
The only modification you'll need to do is adding a copy command (copied from #587) to address missing files in QMLTermWidget:
any one need a native build?I have build a dmg use qt 5.15.5
Is it signed?
sorry, I haven't register the Apple Developer Program,you can build it with qt 5.15.5 for yourself , it works.
Could you share it please?
yes please.
I was able to build in on Ventura 13.1 with Qt installed via
brew install qt@5
(version5.15.7
as of now) using the original instructions. I found out I didn't have to copy those extra files like what @radnor said, and the app still runs.cp -r qmltermwidget/src/qmldir qmltermwidget/lib/kb-layouts qmltermwidget/lib/color-schemes qmltermwidget/src/QMLTermScrollbar.qml qmltermwidget/QMLTermWidget
.However, I found some issues with some special characters I use for my ZSH prompt, like
»
,✘
, etc.It renders fine (below) if
open cool-retro-term.app
.dmg
from Releases) using Rosetta (this is in a virtual machine to test, I do not have Rosetta installed on my main M1 machine)It does not render the chracters if I run it directly (double click the app, or via Spotlight/Alfred launcher).
This somehow seems like a shell issue, but I have no idea where to start yet. It also does not happen on my Intel mac.
UP
@ngocpham just created #809 to track this issue (powerline fonts broken).
On macOS 14.1 Sonoma.
Just built it trying what @radnor suggested.
Installed qt via brew by doing
brew install qt5
&brew link qt5 --force
and applying suggested change(export PATH="/opt/homebrew/opt/qt@5/bin:$PATH"
) to.zshrc
.At first font's were broken, but then i did
macdeployqt cool-retro-term.app -qmldir=app/qml -dmg
as build instructions suggest.Which actually breaks the resulting .app inside the .dmg for me.
But after doing this 3-5 times and then skipping
macdeployqt
step i finally got it working.Seems to me that
macdeployqt
does some crucial step, so building after running it again gave me a working variation where font's arrent bugged.Here's a proof screenshot.

By the way i'm using monospaced
MesloLGMDZ Nerd Font Mono
which is icon patched version ofMenlo
.You can see icons are fine and
starship.rs
prompt isn't glitched or missing.Also you may see that architecture is
arm64
which indicates that i indeed just built this and it isn't running in Rosetta mode as version from releases page.@ngocphamm @iamthebot i believe #809 is a false positive, and build instructions can probably be adapted to reproduce working app every time.
Just noticed:
open cool-retro-term.app
- font's work fineI narrowed this down to the env variable that's needed to avoid breaking the font—
LC_CTYPE
.You can simulate the "no icons" condition by running:
and it will load without icons as if it were launched directly from Finder. But if I run:
then the icons appear as expected.
I thought the following should account for this but it doesn't seem to be. I installed Qt 5.15.12 via
brew
, so maybe this isn't getting set when pre-processing?f157648d1e/app/main.cpp (L45-L48)
Anyway, to set this variable globally at least on newer macOS versions (I'm using Sonoma right now), you need to create a file
/Library/LaunchDaemons/setenv.LC_CTYPE.plist
with the following contents:Save it. Then run the following command for this to take effect globally even after reboots:
Now if you open the app directly from Finder or from Spotlight, it'll load fonts correctly.
Looks like
launchctl load
gets reset if you upgrade the OS. Have to run it again.