fix(amm-ui): stabilize standalone flake outputs

Skip compiled wallet packaging for generation-only outputs and normalize the relative shared-wallet lock entry. Document the supported macOS architecture accurately.
This commit is contained in:
Ricardo Guilherme Schmidt 2026-07-15 20:34:13 -03:00
parent 7265cf18eb
commit 27cd79efdd
No known key found for this signature in database
GPG Key ID: 1396EA17DE132FFE
4 changed files with 16 additions and 13 deletions

View File

@ -1,8 +1,10 @@
# AMM UI on macOS
The AMM UI supports both Apple Silicon and Intel Macs through the Nix flake.
The project packages its QML wallet and AMM client libraries with relative
macOS loader paths, so a normal `nix run .` does not need `DYLD_LIBRARY_PATH`.
The AMM UI supports Apple Silicon through the Nix flake. Intel Macs are not
supported because the pinned Nixpkgs release no longer supports
`x86_64-darwin`. The project packages its QML wallet and AMM client libraries
with relative macOS loader paths, so a normal `nix run .` does not need
`DYLD_LIBRARY_PATH`.
## One-time prerequisites

View File

@ -50,8 +50,8 @@ nix profile install 'github:logos-co/logos-package-manager#cli'
This makes `lgpm` available as a global command.
For macOS prerequisites, the Metal toolchain requirement, and common Nix
recovery steps, see [macOS setup](MACOS.md).
For Apple Silicon prerequisites, the Metal toolchain requirement, and common
Nix recovery steps, see [macOS setup](MACOS.md).
## Running the UI standalone

5
apps/amm/flake.lock generated
View File

@ -26906,15 +26906,14 @@
"shared_wallet": {
"flake": false,
"locked": {
"lastModified": 1,
"narHash": "sha256-m7PiWaU5Beio+XeJP6Tz7JFUq8PZZJvcZrmKwShekTY=",
"path": "../shared/wallet",
"type": "path"
},
"original": {
"path": "../shared/wallet",
"type": "path"
}
},
"parent": []
}
},
"root": "root",

View File

@ -40,14 +40,16 @@
test -f ${./qml}/Logos/Wallet/qmldir
walletQmlDir="shared-wallet/qml/Logos/Wallet"
if [ ! -d "$walletQmlDir" ]; then
if [ -d "$walletQmlDir" ]; then
walletQmlInstallDir="$out/lib/Logos/Wallet"
mkdir -p "$walletQmlInstallDir"
cp -r "$walletQmlDir/." "$walletQmlInstallDir/"
test -f "$walletQmlInstallDir/qmldir"
elif [ -f "$out/lib/amm_ui_plugin.dylib" ] \
|| [ -f "$out/lib/amm_ui_plugin.so" ]; then
echo "Built Logos.Wallet QML module not found"
exit 1
fi
walletQmlInstallDir="$out/lib/Logos/Wallet"
mkdir -p "$walletQmlInstallDir"
cp -r "$walletQmlDir/." "$walletQmlInstallDir/"
test -f "$walletQmlInstallDir/qmldir"
# The standalone plugin directory only copies directories below lib/.
# Ship the Rust client in one of those directories and teach the