Commit f401a953 authored by h3remi7's avatar h3remi7

chage app struct

parent 1d10647c
import {AppLocal} from "./app-local";
enum Reference_Type {
/*
export enum Reference_Type {
runtime, // directx
emulator, // wine, np2
dependency, //
optional, // fxtz
language
}
enum App_Category {
*/
/*
export enum App_Category {
game,
music,
book,
runtime, // directx
emulator, // wine, np2
language
}
*/
export class App {
id: string;
......@@ -21,7 +28,7 @@ export class App {
homepage: string;
category: string;
actions: {[platform: string]: {[action: string]: {execute: string, args: string[], env: {}, open: string}}};
references: {id: string, type: Reference_Type}[];
references: {[platform: string]: {id: string, type: string}[]};
locales: string[];
download: string; // meta4 url
news: {title: string, url: string, image: string}[];
......@@ -34,7 +41,7 @@ export class App {
this.description = app.description;
this.author = app.author;
this.homepage = app.homepage;
this.category = app.category;
this.category =app.category;
this.actions = app.actions;
this.references = app.references;
this.locales = app.locales;
......
......@@ -10,7 +10,7 @@
},
"author": "ZUN",
"homepage": "http://www.myacg.cc",
"category": "ACT",
"category": "game",
"actions": {
"darwin": {
"main": {
......@@ -28,12 +28,17 @@
"locales": ["zh-CN"],
"download": "",
"news": [{
"title": "title",
"url": "",
"image": ""
"title": "News Title",
"url": "#",
"image": "http://www.myacg.cc/wp-content/uploads/2000/01/newBanner51.jpg"
},
{
"title": "News Title",
"url": "#",
"image": "http://www.myacg.cc/wp-content/uploads/2000/01/newBanner51.jpg"
}
],
"tags": ["ACT"],
"tags": ["game"],
"local": {
"path": "",
"version": ""
......@@ -50,7 +55,43 @@
},
"author": "ZUN",
"homepage": "http://www.myacg.cc",
"category": "ACT",
"category": "game",
"actions": {
"darwin": {
"main": {
"execute": "",
"args": [],
"env": "",
"open": ""
}
}
},
"references": {
"id": "th12_mod1",
"type": "language"
},
"locales": ["zh-CN"],
"download": "",
"news": [],
"tags": ["STG"],
"local": {
"path": "/foo/bar",
"version": "10.3"
}
},
{
"id": "th12_mod1",
"name":
{
"zh-CN": "th12_mod1"
},
"description": {
"zh-CN": "th12 desc"
},
"author": "ZUN",
"homepage": "http://www.myacg.cc",
"category": "language",
"actions": {
"darwin": {
"main": {
......@@ -67,13 +108,8 @@
},
"locales": ["zh-CN"],
"download": "",
"news": [{
"title": "title",
"url": "",
"image": ""
}
],
"tags": ["ACT"],
"news": [],
"tags": ["STG"],
"local": {
"path": "/foo/bar",
"version": "10.3"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment