Special partner_builds for Razer Forge TV
authorChristian Weiske <cweiske@cweiske.de>
Sat, 7 Oct 2023 16:40:29 +0000 (18:40 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Sat, 7 Oct 2023 16:40:29 +0000 (18:40 +0200)
www/.htaccess
www/api/v1/partner_builds.razer-forge-tv [new file with mode: 0644]

index aac7ec673ce71e3bac996333556374e382d00fcc..e016d55e0def48c83a748338b8d42063537ad0b3 100644 (file)
@@ -48,6 +48,10 @@ RewriteRule ^api/v1/sessions$ /api/v1/sessions.php [END]
 
 RewriteRule ^api/v1/gamers/me$ /api/v1/gamers/me.json [END]
 
+#partner builds
+RewriteCond %{HTTP_USER_AGENT} "razer/pearlyn/pearlyn"
+RewriteRule ^api/v1/partner_builds /api/v1/partner_builds.razer-forge-tv [END]
+
 #purchased games/products
 # active buy requests
 RewriteCond %{REQUEST_METHOD} POST
diff --git a/www/api/v1/partner_builds.razer-forge-tv b/www/api/v1/partner_builds.razer-forge-tv
new file mode 100644 (file)
index 0000000..9a0b36f
--- /dev/null
@@ -0,0 +1,28 @@
+{
+    "actions": [
+        {
+            "action": "installFile",
+            "packageName": "tv.ouya",
+            "friendlyName": "Cortex Framework",
+            "md5": "697248296f967e428efc5c205c75d301",
+            "filesize": 6702855,
+            "downloadUrl": "http://ouya.cweiske.de/apks/razer-forge/CortexFramework-1.2.2320-tv.ouya.apk",
+            "versionCode": 10202320
+        },
+
+        {
+            "action": "installFile",
+            "packageName": "tv.ouya.console",
+            "friendlyName": "Razer Cortex",
+            "md5": "90637a8a5cbc937b3a11782838a3112d",
+            "filesize": 24220488,
+            "downloadUrl": "http://ouya.cweiske.de/apks/razer-forge/Razer_Cortex-1.2.2320-tv.ouya.console.apk",
+            "versionCode": 10202320
+        },
+
+        {
+            "action": "launch",
+            "packageName": "tv.ouya.console"
+        }
+    ]
+}