mirror of
https://github.com/logos-blockchain/lez-programs.git
synced 2026-07-25 08:13:12 +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
|
# AMM UI on macOS
|
||||||
|
|
||||||
The AMM UI supports both Apple Silicon and Intel Macs through the Nix flake.
|
The AMM UI supports Apple Silicon through the Nix flake. Intel Macs are not
|
||||||
The project packages its QML wallet and AMM client libraries with relative
|
supported because the pinned Nixpkgs release no longer supports
|
||||||
macOS loader paths, so a normal `nix run .` does not need `DYLD_LIBRARY_PATH`.
|
`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
|
## 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.
|
This makes `lgpm` available as a global command.
|
||||||
|
|
||||||
For macOS prerequisites, the Metal toolchain requirement, and common Nix
|
For Apple Silicon prerequisites, the Metal toolchain requirement, and common
|
||||||
recovery steps, see [macOS setup](MACOS.md).
|
Nix recovery steps, see [macOS setup](MACOS.md).
|
||||||
|
|
||||||
## Running the UI standalone
|
## Running the UI standalone
|
||||||
|
|
||||||
|
|||||||
5
apps/amm/flake.lock
generated
5
apps/amm/flake.lock
generated
@ -26906,15 +26906,14 @@
|
|||||||
"shared_wallet": {
|
"shared_wallet": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1,
|
|
||||||
"narHash": "sha256-m7PiWaU5Beio+XeJP6Tz7JFUq8PZZJvcZrmKwShekTY=",
|
|
||||||
"path": "../shared/wallet",
|
"path": "../shared/wallet",
|
||||||
"type": "path"
|
"type": "path"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"path": "../shared/wallet",
|
"path": "../shared/wallet",
|
||||||
"type": "path"
|
"type": "path"
|
||||||
}
|
},
|
||||||
|
"parent": []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": "root",
|
"root": "root",
|
||||||
|
|||||||
@ -40,14 +40,16 @@
|
|||||||
test -f ${./qml}/Logos/Wallet/qmldir
|
test -f ${./qml}/Logos/Wallet/qmldir
|
||||||
|
|
||||||
walletQmlDir="shared-wallet/qml/Logos/Wallet"
|
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"
|
echo "Built Logos.Wallet QML module not found"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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/.
|
# The standalone plugin directory only copies directories below lib/.
|
||||||
# Ship the Rust client in one of those directories and teach the
|
# Ship the Rust client in one of those directories and teach the
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user