forked from ptitSeb/box86
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
99 changed files
with
8,637 additions
and
9,090 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.