2 Commits

Author SHA1 Message Date
a09ba01c67 Build with --release in flake
Some checks failed
Push Workflows / rustfmt (push) Successful in 8s
Push Workflows / mdbook (push) Successful in 19s
Push Workflows / mdbook-server (push) Successful in 50s
Push Workflows / docs (push) Successful in 1m42s
Push Workflows / clippy (push) Successful in 7m50s
Push Workflows / test (push) Successful in 10m40s
Push Workflows / leptos-test (push) Successful in 11m34s
Push Workflows / build (push) Successful in 12m18s
Push Workflows / nix-build (push) Successful in 15m12s
Push Workflows / docker-build (push) Has been cancelled
2025-09-02 14:51:50 -04:00
4d1dde3893 Add binaryen package for wasm-opt for release builds 2025-09-02 14:51:05 -04:00

View File

@@ -43,6 +43,7 @@
imagemagick
pkg-config
tailwindcss_4
binaryen
];
in
{
@@ -86,16 +87,13 @@
imagemagick
];
# TODO enable --release builds
# Creates an issue with cargo-leptos trying to create cache directories
# See https://github.com/leptos-rs/cargo-leptos/issues/79
buildPhase = ''
cargo-leptos build --precompress #--release
cargo-leptos build --precompress --release
'';
installPhase = ''
mkdir -p $out/bin
install -t $out target/debug/libretunes
install -t $out target/release/libretunes
cp -r target/site $out/site
makeWrapper $out/libretunes $out/bin/libretunes \