From 644cb185819cb478a5847982b35f5d2e40234044 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Wed, 16 Oct 2024 12:18:17 +0200 Subject: [PATCH] fixes --- .woodpecker.yml | 7 +++---- Trunk.toml | 2 ++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 11af422..9948bda 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,17 +1,16 @@ variables: - &rust_image "rust:1.81" - &install_binstall "wget https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-unknown-linux-musl.tgz && tar -xvf cargo-binstall-x86_64-unknown-linux-musl.tgz && cp cargo-binstall /usr/local/cargo/bin" - + - &install_trunk "cargo-binstall -y trunk@0.21.1" steps: build_release: image: *rust_image environment: CARGO_HOME: .cargo_home commands: - - wget https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-unknown-linux-musl.tgz - - tar -xvf cargo-binstall-x86_64-unknown-linux-musl.tgz + - *install_binstall - rustup target add wasm32-unknown-unknown - - ./cargo-binstall -y trunk + - *install_trunk - export PATH="$PATH:$(pwd)/.cargo_home/bin/" - ls -lah assets - ls -lah assets/dist || true diff --git a/Trunk.toml b/Trunk.toml index 0a3f0cd..b4f64e3 100644 --- a/Trunk.toml +++ b/Trunk.toml @@ -1,3 +1,5 @@ [build] filehash = false target = "assets/index.html" +dist = "assets/dist" +minify = "on_release" \ No newline at end of file