Skip to content

Commit

Permalink
proof of concept
Browse files Browse the repository at this point in the history
  • Loading branch information
raoofha committed Jun 4, 2021
1 parent d719809 commit ce79aa1
Show file tree
Hide file tree
Showing 99 changed files with 8,637 additions and 9,090 deletions.
584 changes: 94 additions & 490 deletions CMakeLists.txt

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions bundle_box86_html.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

sed -e '/_BOX86JS_/r box86.js' -e '/_BOX86JS_/d' $1/src/browser/box86.html > box86.html &&
htmlSize=$(printf '%14d' `cat box86.html | wc -c`) &&
wasmSize=$(printf '%14d' `cat box86.wasm | wc -c`) &&
sed -i -e "s/_14W_HTMLSIZE_/$htmlSize/g" -e "s/_14W_WASMSIZE_/$wasmSize/g" box86.html &&
cat box86.wasm >> box86.html &&
box86Size=`cat box86.html | wc -c`
if [ $(($htmlSize + $wasmSize)) -ne $box86Size ] ; then
echo $htmlSize + $wasmSize != $box86Size
exit -1
fi
echo $htmlSize + $wasmSize = $(($htmlSize + $wasmSize)) == $box86Size

~/playground/bin/addDataToElfFile box86.html ~/playground/bin/tetris tetris.html &&
~/playground/bin/addDataToElfFile box86.html ~/playground/bin/2048 2048.html &&
~/playground/bin/addDataToElfFile box86.html ~/playground/bin/2048-i386.AppImage 2048-i386.AppImage.html
Binary file added docs/2048.html
Binary file not shown.
135 changes: 0 additions & 135 deletions docs/CHANGELOG.md

This file was deleted.

81 changes: 0 additions & 81 deletions docs/COMPILE.md

This file was deleted.

19 changes: 0 additions & 19 deletions docs/LICENSE

This file was deleted.

Loading

0 comments on commit ce79aa1

Please sign in to comment.