Commit f401a953 authored by h3remi7's avatar h3remi7

chage app struct

parent 1d10647c
import {AppLocal} from "./app-local"; import {AppLocal} from "./app-local";
enum Reference_Type {
/*
export enum Reference_Type {
runtime, // directx runtime, // directx
emulator, // wine, np2 emulator, // wine, np2
dependency, // dependency, //
optional, // fxtz optional, // fxtz
language language
} }
*/
enum App_Category { /*
export enum App_Category {
game, game,
music, music,
book, book,
runtime, // directx
emulator, // wine, np2
language
} }
*/
export class App { export class App {
id: string; id: string;
...@@ -21,7 +28,7 @@ export class App { ...@@ -21,7 +28,7 @@ export class App {
homepage: string; homepage: string;
category: string; category: string;
actions: {[platform: string]: {[action: string]: {execute: string, args: string[], env: {}, open: 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[]; locales: string[];
download: string; // meta4 url download: string; // meta4 url
news: {title: string, url: string, image: string}[]; news: {title: string, url: string, image: string}[];
...@@ -34,7 +41,7 @@ export class App { ...@@ -34,7 +41,7 @@ export class App {
this.description = app.description; this.description = app.description;
this.author = app.author; this.author = app.author;
this.homepage = app.homepage; this.homepage = app.homepage;
this.category = app.category; this.category =app.category;
this.actions = app.actions; this.actions = app.actions;
this.references = app.references; this.references = app.references;
this.locales = app.locales; this.locales = app.locales;
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
}, },
"author": "ZUN", "author": "ZUN",
"homepage": "http://www.myacg.cc", "homepage": "http://www.myacg.cc",
"category": "ACT", "category": "game",
"actions": { "actions": {
"darwin": { "darwin": {
"main": { "main": {
...@@ -28,12 +28,17 @@ ...@@ -28,12 +28,17 @@
"locales": ["zh-CN"], "locales": ["zh-CN"],
"download": "", "download": "",
"news": [{ "news": [{
"title": "title", "title": "News Title",
"url": "", "url": "#",
"image": "" "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": { "local": {
"path": "", "path": "",
"version": "" "version": ""
...@@ -50,7 +55,43 @@ ...@@ -50,7 +55,43 @@
}, },
"author": "ZUN", "author": "ZUN",
"homepage": "http://www.myacg.cc", "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": { "actions": {
"darwin": { "darwin": {
"main": { "main": {
...@@ -67,13 +108,8 @@ ...@@ -67,13 +108,8 @@
}, },
"locales": ["zh-CN"], "locales": ["zh-CN"],
"download": "", "download": "",
"news": [{ "news": [],
"title": "title", "tags": ["STG"],
"url": "",
"image": ""
}
],
"tags": ["ACT"],
"local": { "local": {
"path": "/foo/bar", "path": "/foo/bar",
"version": "10.3" "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