feat: patch system

This commit is contained in:
2026-04-22 04:21:00 +08:00
parent 083735aec1
commit c8e5a45529
36 changed files with 364 additions and 1847 deletions
+3 -3
View File
@@ -14,7 +14,7 @@ signal patch_applied
signal store_update_required(store_url: String)
# Configuration - Update these URLs for your game
const VERSION_MANIFEST_URL := "https://your-username.itch.io/tekton-local/data/version.json"
const VERSION_MANIFEST_URL := "https://raw.githubusercontent.com/tekton-studios/tekton-updates/main/version.json"
const ANDROID_STORE_URL := "https://play.google.com/store/apps/details?id=com.yourcompany.tekton"
const IOS_STORE_URL := "https://apps.apple.com/app/tekton/id123456789"
@@ -22,8 +22,8 @@ const IOS_STORE_URL := "https://apps.apple.com/app/tekton/id123456789"
enum Platform { WINDOWS, LINUX, MACOS, ANDROID, IOS, WEB }
# State
var current_version: String = "0.9.0"
var latest_version: String = "0.9.0"
var current_version: String = "2.1.5"
var latest_version: String = "2.1.5"
var manifest_data: Dictionary = {}
var http_request: HTTPRequest
var download_request: HTTPRequest