Skip to content

Commit a9e80b8

Browse files
authored
chore(web-shell): minor update on packaging (#429)
Signed-off-by: Alex Chi <[email protected]>
1 parent a6aac80 commit a9e80b8

File tree

14 files changed

+80
-669
lines changed

14 files changed

+80
-669
lines changed

build_support/build-web-shell.sh

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,29 @@ mkdir -p cmake-build-wasm
1212
cd cmake-build-wasm
1313
emcmake cmake .. -DCMAKE_BUILD_TYPE=MinSizeRel
1414

15+
rm -rf deploy
16+
mkdir -p deploy
17+
cp ../.gitignore deploy
18+
cp ../LICENSE deploy
19+
cp ../tools/wasm-shell/extra_files/vercel.json deploy
20+
1521
make -j$(nproc) wasm-shell
16-
mkdir -p wasm-shell
17-
cp bin/bustub-wasm-shell.js wasm-shell
18-
cp bin/bustub-wasm-shell.wasm wasm-shell
19-
cp -a ../tools/wasm-shell/extra_files/* wasm-shell/
20-
sed -i '' "s|\${BUSTUB_PRIVATE_VERSION}|${BUSTUB_PRIVATE_VERSION}|" wasm-shell/index.html
21-
sed -i '' "s|\${BUSTUB_PUBLIC_VERSION}|${BUSTUB_PUBLIC_VERSION}|" wasm-shell/index.html
22+
mkdir -p deploy/shell
23+
cp bin/bustub-wasm-shell.js deploy/shell
24+
cp bin/bustub-wasm-shell.wasm deploy/shell
25+
cp -a ../tools/wasm-shell/extra_files/index.html deploy/shell
26+
cp ../logo/bustub.svg deploy/shell
27+
sed -i '' "s|\${BUSTUB_PRIVATE_VERSION}|${BUSTUB_PRIVATE_VERSION}|" deploy/shell/index.html
28+
sed -i '' "s|\${BUSTUB_PUBLIC_VERSION}|${BUSTUB_PUBLIC_VERSION}|" deploy/shell/index.html
2229

2330
make -j$(nproc) wasm-bpt-printer
24-
mkdir -p wasm-bpt-printer
25-
cp bin/bustub-wasm-bpt-printer.js wasm-bpt-printer
26-
cp bin/bustub-wasm-bpt-printer.wasm wasm-bpt-printer
27-
cp -a ../tools/wasm-bpt-printer/extra_files/* wasm-bpt-printer/
28-
sed -i '' "s|\${BUSTUB_PRIVATE_VERSION}|${BUSTUB_PRIVATE_VERSION}|" wasm-bpt-printer/index.html
29-
sed -i '' "s|\${BUSTUB_PUBLIC_VERSION}|${BUSTUB_PUBLIC_VERSION}|" wasm-bpt-printer/index.html
30-
31-
ls -alh wasm-shell/
32-
ls -alh wasm-bpt-printer/
31+
mkdir -p deploy/bpt-printer
32+
cp bin/bustub-wasm-bpt-printer.js deploy/bpt-printer
33+
cp bin/bustub-wasm-bpt-printer.wasm deploy/bpt-printer
34+
cp -a ../tools/wasm-bpt-printer/extra_files/index.html deploy/bpt-printer
35+
cp ../logo/bustub.svg deploy/bpt-printer
36+
sed -i '' "s|\${BUSTUB_PRIVATE_VERSION}|${BUSTUB_PRIVATE_VERSION}|" deploy/bpt-printer/index.html
37+
sed -i '' "s|\${BUSTUB_PUBLIC_VERSION}|${BUSTUB_PUBLIC_VERSION}|" deploy/bpt-printer/index.html
38+
39+
ls -alh deploy/shell
40+
ls -alh deploy/bpt-printer

tools/wasm-bpt-printer/extra_files/.gitignore

Lines changed: 0 additions & 245 deletions
This file was deleted.

tools/wasm-bpt-printer/extra_files/LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)