Skip to content

Commit

Permalink
Create ZIP file and hash in build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
wginolas committed Apr 5, 2024
1 parent 43760e1 commit a9b92bc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ RUN apt update \
make \
qt6-base-dev \
build-essential \
cmake
cmake \
zip

WORKDIR /
RUN git clone https://github.com/emscripten-core/emsdk.git
Expand Down Expand Up @@ -130,8 +131,14 @@ RUN embuild.sh \
-l "-sALLOW_MEMORY_GROWTH" \
X2tConverter/build/Qt/X2tConverter.pro

WORKDIR /core/build/bin/linux_64/
RUN cp x2t x2t.js
RUN zip x2t.zip x2t.wasm x2t.js
RUN sha512sum x2t.zip > x2t.zip.sha512

WORKDIR /
RUN cp /core/build/bin/linux_64/x2t* .

COPY test.js /test.js
EXPOSE 9229

Expand Down
3 changes: 2 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ mkdir build
CONTAINER_ID=$(docker create "$IMAGE_ID")
docker cp "$CONTAINER_ID:/core/build/bin/linux_64/x2t" build/x2t.js
docker cp "$CONTAINER_ID:/core/build/bin/linux_64/x2t.wasm" build/
# docker cp "$CONTAINER_ID:/core/build/bin/linux_64/x2t.wasm.map" build/
docker cp "$CONTAINER_ID:/core/build/bin/linux_64/x2t.zip" build/
docker cp "$CONTAINER_ID:/core/build/bin/linux_64/x2t.zip.sha512" build/
docker rm "$CONTAINER_ID"

0 comments on commit a9b92bc

Please sign in to comment.