ci: prepare proper build script, move script into /scripts, move index.html into /assets

This commit is contained in:
2023-09-11 16:44:44 -05:00
parent de5cddd9b6
commit d15dbe3982
5 changed files with 33 additions and 32 deletions

21
assets/index.html Normal file
View File

@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>
<body>
<canvas id="canvas"></canvas>
<script>
var Module = {
'locateFile': function (path, prefix) {
if (path.endsWith(".data")) {
return prefix + "deps/" + path;
}
return prefix + path;
},
'canvas': document.getElementById('canvas'),
};
</script>
<script src="pacman.js"></script>
</body>
</html>