-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
13 lines (13 loc) · 1.67 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
{
"name": "qubic-crypto",
"main": "index.js",
"module": "index.js",
"type": "module",
"scripts": {
"build":
"git submodule update --init --recursive && cd FourQlib && git stash && git checkout 1031567f23278e1135b35cc04e5d74c2ac88c029 && git apply --whitespace=warn --ignore-whitespace ../k12-wasm.diff && cd FourQ_64bit_and_portable && make clean && git -C emsdk pull || git clone https://github.com/emscripten-core/emsdk.git && cd emsdk && ./emsdk install latest && ./emsdk activate latest && source ./emsdk_env.sh && cd .. && make ARCH=x64 CC=emcc ASM=FALSE AVX=FALSE AVX2=FALSE EXTENDED_SET=FALSE USE_ENDO=TRUE GENERIC=FALSE SERIAL_PUSH=FALSE SHARED_LIB=TRUE PLAINK12=TRUE && cp crypto.wasm ../../crypto.wasm && cp crypto.cjs ../../crypto.cjs",
"test": "bun run test.js",
"postinstall":
"rm -rf K12 && rm -rf FourQlib && git clone https://github.com/XKCP/K12.git && cd K12 && git checkout 96738535cbf7495285c767b02ac35d589c251e26 && cd .. && git clone https://github.com/microsoft/FourQlib.git && cd K12 && git submodule update --init --recursive && cd ../FourQlib && git checkout 1031567f23278e1135b35cc04e5d74c2ac88c029 && git apply --whitespace=warn --ignore-whitespace ../k12-wasm.diff && cd FourQ_64bit_and_portable && make clean && git -C emsdk pull || git clone https://github.com/emscripten-core/emsdk.git && cd emsdk && ./emsdk install latest && ./emsdk activate latest && source ./emsdk_env.sh && cd .. && make ARCH=x64 CC=emcc ASM=FALSE AVX=FALSE AVX2=FALSE EXTENDED_SET=FALSE USE_ENDO=TRUE GENERIC=FALSE SERIAL_PUSH=FALSE SHARED_LIB=TRUE PLAINK12=TRUE && cp crypto.wasm ../../crypto.wasm && cp crypto.cjs ../../crypto.cjs && cd ../../ && bun run test"
}
}