Skip to content

Commit

Permalink
prepare for npm publishing
Browse files Browse the repository at this point in the history
edit build flag and tested with vite create app
  • Loading branch information
andrewvmail committed Oct 31, 2023
1 parent 74ad448 commit 784d6fa
Show file tree
Hide file tree
Showing 7 changed files with 5,021 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
test/
node_modules/
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ cp libcrypto.a libssl.a $EMSCRIPTEN/system/lib

COPY . /RNCryptor-C-wasm
WORKDIR /RNCryptor-C-wasm
RUN source /emsdk/emsdk_env.sh && EMCC_DEBUG=1 emcc /RNCryptor-C-wasm/src/rncryptor.c /RNCryptor-C-wasm/RNCryptor-C/rncryptor_c.c -I RNCryptor-C $EMSCRIPTEN/system/lib/libssl.a $EMSCRIPTEN/system/lib/libcrypto.a -I $EMSCRIPTEN/cache/sysroot/include -s ERROR_ON_UNDEFINED_SYMBOLS=0 -s EXPORTED_RUNTIME_METHODS='["cwrap"]' -o rncryptor.out.js
RUN source /emsdk/emsdk_env.sh && mkdir -p dist/ && EMCC_DEBUG=1 emcc /RNCryptor-C-wasm/src/rncryptor.c /RNCryptor-C-wasm/RNCryptor-C/rncryptor_c.c /RNCryptor-C-wasm/RNCryptor-C/mutils.c -I RNCryptor-C $EMSCRIPTEN/system/lib/libssl.a $EMSCRIPTEN/system/lib/libcrypto.a -I $EMSCRIPTEN/cache/sysroot/include -s ERROR_ON_UNDEFINED_SYMBOLS=0 -s EXPORTED_RUNTIME_METHODS='["cwrap", "FS"]' -s ENVIRONMENT="web" -s ALLOW_MEMORY_GROWTH=1 -s EXPORT_ES6=1 -s MODULARIZE=1 -s WASM_ASYNC_COMPILATION=1 -o dist/rncryptor.js
Loading

0 comments on commit 784d6fa

Please # to comment.