tamamo/release.sh

19 lines
491 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -ex
mkdir -p dist
rm -rf dist/*
zig build -Drelease-small=true
wasm-strip ./zig-out/lib/cart.wasm
wasm-opt -Oz --strip-producers --dce ./zig-out/lib/cart.wasm -o ./dist/tamamo.wasm
w4 bundle \
--windows ./dist/tamamo.exe \
--mac ./dist/tamamo.macOS \
--linux ./dist/tamamo.linux \
--title "Mara 2" \
--description "Tamamo-no-Mae's Fury" \
--html ./dist/tamamo.html \
--timestamp \
--html-disk-prefix "mara-2" \
./dist/tamamo.wasm