mirror of
https://github.com/logos-blockchain/lez-programs.git
synced 2026-07-17 04:19:35 +00:00
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:
parent
7265cf18eb
commit
27cd79efdd
@ -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
|
||||
|
||||
|
||||
@ -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
5
apps/amm/flake.lock
generated
@ -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",
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user