@@ -12,21 +12,29 @@ mkdir -p cmake-build-wasm
12
12
cd cmake-build-wasm
13
13
emcmake cmake .. -DCMAKE_BUILD_TYPE=MinSizeRel
14
14
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
+
15
21
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
22
29
23
30
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
0 commit comments