docs.sheetjs.com/tests/engines-mujs.sh

28 lines
609 B
Bash
Raw Normal View History

2024-05-26 07:50:55 +00:00
#!/bin/bash
# https://docs.sheetjs.com/docs/demos/engines/mujs
cd /tmp
rm -rf sheetjs-mu
mkdir sheetjs-mu
cd sheetjs-mu
2024-12-18 05:47:18 +00:00
curl -LO https://mujs.com/downloads/mujs-1.3.5.zip
2025-02-17 04:49:35 +00:00
unzip mujs-*.zip
rm mujs-*.zip
cd mujs-*
2024-05-26 07:50:55 +00:00
make release
cd ..
2025-02-17 04:49:35 +00:00
cp mujs-*/build/release/libmujs.a mujs-*/mujs.h .
2024-05-26 07:50:55 +00:00
curl -LO https://docs.sheetjs.com/mujs/SheetJSMu.c
gcc -o SheetJSMu SheetJSMu.c -L. -lmujs -lm -lc -std=c89 -Wall
curl -LO https://cdn.sheetjs.com/xlsx-latest/package/dist/shim.min.js
curl -LO https://cdn.sheetjs.com/xlsx-latest/package/dist/xlsx.full.min.js
curl -LO https://sheetjs.com/pres.xlsb
./SheetJSMu pres.xlsb