Skip to content

- #3921

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 26 commits into
base: master
Choose a base branch
from
Open

- #3921

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 3 additions & 36 deletions apps.json
Original file line number Diff line number Diff line change
@@ -1,38 +1,5 @@
---
# =================================================================
# ALL THE INFORMATION INSIDE APPS.JSON HAS NOW BEEN MOVED
#
# You'll find it inside a file called apps/yourapp/metadata.json
#
# Otherwise nothing has changed. GitHub Pages will automatically
# create apps.json as your site is hosted, or if you're hosting
# yourself you can run bin/create_apps_json.sh
#
# If you serve the store from localhost for development/testing,
# the loader looks for apps.local.json instead, you can run
# `bin/create_apps_json.sh apps.local.json` to create that file.
# =================================================================

# Uncomment the following line if you only want explicitly listed
# apps to be available on your site

# restricted: ["boot", "launch", "antonclk", "health", "setting", "about", "widbat", "widbt", "widlock", "widid"]
---
{%- if page.restricted == nil -%}
{%- assign apps = site.static_files | where: "name", "metadata.json" | map: "path" -%}
{%- else -%}
{%- capture temp -%}
{%- for app in page.restricted %} /apps/{{app}}/metadata.json {%- endfor -%}
{%- endcapture -%}
{%- assign apps = temp | strip | split: " " -%}
{%- endif -%}

[

{%- include_relative {{ apps.first }} -%}

{%- for app in apps offset:1 -%}
,{%- include_relative {{ app }} -%}
{%- endfor -%}

{
"url": "apps/BangleGotchi/metadata.json"
}
]
14 changes: 14 additions & 0 deletions apps/BangleGotchi/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"id": "BangleGotchi",
"name": "Piggy Gotchi",
"shortName":"My Piggy",
"version": "0.01",
"description": "Your virtual pet on the Bangle.js!",
"type": "app",
"tags": "game, pet, gotchi",
"supports": ["BANGLEJS2"],
"files": "BangleGotchi.info,piggy.app.js",
"storage": [
{"name":"piggy.app.js","url":"piggy.app.js"}
]
}
Loading
Loading