Files
Marcos Paulo ca0d68f9ab
ci / ci (macos-latest) (push) Has been cancelled
ci / ci (ubuntu-latest) (push) Has been cancelled
ci / ci (windows-latest) (push) Has been cancelled
feat: export.pandoc, properties.rename_all, first wasm plugin (dice) (MiniMax M3.1 Flash)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-21 06:39:51 -03:00

20 lines
646 B
Bash
Executable File

#!/bin/sh
# Builds the dice plugin and leaves the module next to its manifest.
#
# The plugin is its own workspace, so this never touches the lock file or the
# profile of the app. The host looks for `plugin.wasm` inside the plugin
# folder of a vault; `dice.wasm` is the build artefact the engine test loads.
set -eu
cd "$(dirname "$0")"
# The launcher may point the target dir somewhere else; keep it.
TARGET_DIR="${CARGO_TARGET_DIR:-$PWD/target}"
cargo build --release --target wasm32-unknown-unknown --target-dir "$TARGET_DIR"
cp "$TARGET_DIR/wasm32-unknown-unknown/release/notescraft_dice.wasm" dice.wasm
echo "built $(pwd)/dice.wasm"