-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathdevices.json
More file actions
25 lines (25 loc) · 1.56 KB
/
devices.json
File metadata and controls
25 lines (25 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
---
permalink: /api/devices
---
{
{% for device in site.devices %}
{% assign buildDateStart = device.filename.size | minus: 12 %}{% assign buildDateStartWithTime = device.filename.size | minus: 19 %}{% assign buildDateFinal = device.filename.size | minus: 4 %}"{{device.codename}}": {
"id": "{{ forloop.index }}",
"fullname": "{{device.fullname}}",
"maintainer": "{{device.maintainer}}",
"xdathread": "{{device.xdathread}}",
"filename": "{{device.filename}}",
"buildate": "{{device.filename | slice: buildDateStartWithTime,buildDateFinal | remove: ".zip"}}",
"buildsize": "{{device.buildsize}}",
"download": {% if device.directmirror %}"{{ device.directmirror }}/{{ device.filename }}",{% else %}"https://downloads.sourceforge.net/project/bootleggersrom/builds/{{ device.codename }}/{{ device.filename }}",{% endif %}
"downloadfolder": "https://sourceforge.net/projects/bootleggersrom/files/builds/{{ device.codename }}",
"mirrorlink": "{{device.mirrorlink}}",
"changelog": "{{device.changelog}}",
"gapps_filename": "{{device.gapps_filename}}",
"gapps_buildate": "{{device.gapps_filename | slice: buildDateStartWithTime,buildDateFinal | remove: ".zip"}}",
"gapps_buildsize": "{{device.gapps_buildsize}}",
"gapps_download": {% if device.directmirror %}"{{ device.directmirror }}/{{ device.gapps_filename }}",{% else %}"https://downloads.sourceforge.net/project/bootleggersrom/builds/{{ device.codename }}/{{ device.gapps_filename }}",{% endif %}
"gapps_mirrorlink": "{{device.gapps_mirrorlink}}"
}{% unless forloop.last %},{% endunless %}
{% endfor %}
}