Skip to content

Commit

Permalink
add bundle.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
joyrider3774 committed Jun 20, 2024
1 parent 698b86e commit dd3b6e5
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@
/Formula_1_mac.zip
/Formula_1_windows.disk
/Formula_1_windows.exe
/formula-1-windows.tar.gz
/formula-1.wasm
/formula-1-cart.tar.gz
/formula-1-html.tar.gz
/formula-1-linux.tar.gz
/formula-1-mac.tar.gz
18 changes: 18 additions & 0 deletions bundle.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/sh

w4 bundle --windows formula-1-windows.exe --title "Formula 1" build/cart.wasm
w4 bundle --mac formula-1-mac --title "Formula 1" build/cart.wasm
w4 bundle --linux formula-1-linux --title "Formula 1" build/cart.wasm
w4 bundle --html index.html --title "Formula 1" build/cart.wasm
cp build/cart.wasm formula-1.wasm
chmod +x ./formula-1-mac
chmod +x ./formula-1-linux
chmod +x ./formula-1-windows.exe
tar -czvf ./formula-1-windows.tar.gz ./formula-1-windows.exe
tar -czvf ./formula-1-mac.tar.gz ./formula-1-mac
tar -czvf ./formula-1-linux.tar.gz ./formula-1-linux
tar -czvf ./formula-1-html.tar.gz ./index.html
tar -czvf ./formula-1-cart.tar.gz ./formula-1.wasm
rm -f ./formula-1-windows.exe
rm -f ./formula-1-mac
rm -f ./formula-1-linux

0 comments on commit dd3b6e5

Please sign in to comment.