-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
20 lines (14 loc) · 1.17 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
build:
emcc -O3 -sFETCH -s FORCE_FILESYSTEM=1 -lwebsocket.js -sEXPORTED_FUNCTIONS=_qwallet,_main -sEXPORTED_RUNTIME_METHODS=ccall -pthread -sPROXY_TO_PTHREAD -s PTHREAD_POOL_SIZE=8 -s INITIAL_MEMORY=33554432 -s WASM_ASYNC_COMPILATION=0 -s SINGLE_FILE=1 -s -D_LARGEFILE64_SOURCE=1 -fPIC -Wno-implicit-function-declaration -msse2 -msse3 -msse4.1 -msimd128 -msse4.2 -mavx -sASYNCIFY wasm.c -lnodefs.js -lidbfs.js -o app/server/utils/a.out.js -s MODULARIZE=1 -s 'EXPORT_NAME="createModule"' && sed -i "s/var Module=moduleArg;/var Module=moduleArg;Module['print'] = function(text) {console.log('From C stdout: ' + text);}; Module['printErr'] = function(text) {console.error('From C stderr: ' + text);};/" app/server/utils/a.out.js
ccall:
/root/.nvm/versions/node/v18.19.1/bin/node commander.js
deletekeys:
find app/server/keys -type f ! -name '.gitkeep' -exec rm {} +
prepare:
cd app/server && npm install && rm -rf dist && mkdir dist && cd ../client && npm install && npm run build
start:
cd app/server && npm start
dev:
cd app/server && npm run dev
release:
cd app/server && npx electron-packager . --overwrite --platform=darwin --arch=x64 --icon=logo.ico --prune=true --out=release-builds -f