manifest.json 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. {
  2. "id": "coloring",
  3. "name": "填色互动广告",
  4. "description": "WebGL 填色核心玩法,点击区域上色,完成后展示宣传界面与 CTA 引导下载",
  5. "version": "1.0.0",
  6. "assets": {
  7. "uploadFormat": "zip",
  8. "required": [
  9. { "key": "config", "file": "config.json", "label": "区域配置文件", "accept": ".json" },
  10. { "key": "page", "file": "page.png", "label": "线稿图", "accept": ".png,.jpg,.jpeg" },
  11. { "key": "map", "file": "map.png", "label": "映射图", "accept": ".png" }
  12. ],
  13. "optional": [
  14. { "key": "special", "file": "special.jpeg", "label": "着色参考图(推荐,无则自动生成)", "accept": ".jpeg,.jpg,.png" }
  15. ]
  16. },
  17. "theme": {
  18. "properties": [
  19. { "key": "bgGradient", "label": "背景渐变", "type": "css-gradient", "default": "linear-gradient(160deg, #fff9f2 0%, #ffeedd 100%)" },
  20. { "key": "ctaGradient", "label": "CTA 按钮渐变", "type": "css-gradient", "default": "linear-gradient(135deg, #ff5f1f 0%, #ffb300 100%)" },
  21. { "key": "ctaGlowColor", "label": "CTA 光晕颜色", "type": "color", "default": "#ff5f1f" },
  22. { "key": "ctaText", "label": "CTA 按钮文案", "type": "text", "default": "PLAY NOW", "maxLength": 30 },
  23. { "key": "frameColor", "label": "完成相框颜色", "type": "color", "default": "#edce9b" },
  24. { "key": "frameLineWidth","label": "完成相框线宽", "type": "number", "default": 16, "min": 4, "max": 40 }
  25. ]
  26. },
  27. "platforms": {
  28. "available": ["google", "applovin", "unity", "playturbo", "mintegral"],
  29. "defaults": ["google", "applovin"]
  30. },
  31. "build": {
  32. "command": "npx vite build",
  33. "cwd": "templates/coloring",
  34. "outputPatterns": [
  35. { "platform": "google", "path": "dist/google/index.html" },
  36. { "platform": "applovin", "path": "dist/applovin/index.html" },
  37. { "platform": "unity", "path": "dist/unity/index.html" },
  38. { "platform": "playturbo", "path": "dist/playturbo/index.html" },
  39. { "platform": "mintegral", "path": "dist/mintegral/index.html" }
  40. ],
  41. "adConfigAlias": "#ad-config",
  42. "adConfigPath": "src/filler/_ad_config_.ts",
  43. "adConfigDefault": "src/filler/ad-config.ts",
  44. "assetsSymlink": {
  45. "source": "assets/user",
  46. "target": "../../storage/creatives/{creativeId}/assets"
  47. }
  48. }
  49. }