Skip to content

Commit 784d6fa

Browse files
committed
prepare for npm publishing
edit build flag and tested with vite create app
1 parent 74ad448 commit 784d6fa

File tree

7 files changed

+5021
-2
lines changed

7 files changed

+5021
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
test/
2+
node_modules/

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ cp libcrypto.a libssl.a $EMSCRIPTEN/system/lib
3333

3434
COPY . /RNCryptor-C-wasm
3535
WORKDIR /RNCryptor-C-wasm
36-
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
36+
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

0 commit comments

Comments
 (0)