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

27 lines
611 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
curl -LO https://mujs.com/downloads/mujs-1.3.4.zip
unzip mujs-1.3.4.zip
cd mujs-1.3.4
make release
cd ..
cp mujs-1.3.4/build/release/libmujs.a mujs-1.3.4/mujs.h .
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