2022-06-26 23:32:01 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2022-06-27 12:56:16 +00:00
|
|
|
set -ex
|
2022-06-26 23:32:01 +00:00
|
|
|
|
|
|
|
mkdir -p dist
|
|
|
|
rm -rf dist/*
|
2022-07-01 19:08:30 +00:00
|
|
|
zig build mapgen
|
2022-06-26 23:32:01 +00:00
|
|
|
zig build -Drelease-small=true
|
2022-07-01 15:06:47 +00:00
|
|
|
wasm-opt -Oz --strip-producers --dce ./zig-out/lib/cart.wasm -o ./dist/tamamo.wasm
|
2022-06-27 12:56:16 +00:00
|
|
|
wasm-strip ./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" \
|
2022-07-01 17:37:13 +00:00
|
|
|
--html ./dist/tamamo.html \
|
2022-06-27 12:56:16 +00:00
|
|
|
--timestamp \
|
|
|
|
--html-disk-prefix "mara-2" \
|
|
|
|
./dist/tamamo.wasm
|