mirror of
https://git.sanhost.net/sanasol/hytale-f2p.git
synced 2026-03-02 08:41:52 -03:00
Add full Matcha social panel (butter.lat API) as a right-side slide-out: Backend (matchaService.js): - HTTP client for auth, friends, messages, unread, avatar, heartbeat APIs - WebSocket with auto-reconnect (exponential backoff, no hard cap) - Token management via config, presence heartbeat every 30s - WS error message type handling, game running presence Renderer (matcha.js): - State machine UI: intro → login/register → app (friends/chat/DMs/profile) - Two-phase registration with master key display and verification - Friends list with presence dots, collapsible requests, 12s polling - Global chat + DM with optimistic rendering, cursor pagination - Scroll position preserved on load-more, separate loading flags - Clickable URLs in messages (linkify with proper escaping) - User profile popup with avatar upload/delete - Unread badges (messages + friend requests) on nav icon - Escape key closes panel/overlay, try/catch on auth flows IPC bridge (preload.js + main.js): - 21 IPC invoke methods + 8 WS event listeners - Avatar upload via file picker dialog in main process - Game launch sets in_game heartbeat state CSS (style.css): - ~1500 lines: panel, auth screens, friends, chat, profile, toast - Responsive panel width, improved contrast, no overflow clipping - Loading states, disabled states, pulse animations Credits: Powered by Butter Launcher & Matcha! (butterlauncher.tech) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
126 lines
3.0 KiB
JSON
126 lines
3.0 KiB
JSON
{
|
|
"name": "hytale-f2p-launcher",
|
|
"version": "2.4.8",
|
|
"description": "A modern, cross-platform launcher for Hytale with automatic updates and multi-client support",
|
|
"homepage": "https://git.sanhost.net/sanasol/hytale-f2p",
|
|
"main": "main.js",
|
|
"scripts": {
|
|
"start": "electron .",
|
|
"dev": "electron . --dev",
|
|
"build": "electron-builder",
|
|
"build:win": "electron-builder --win",
|
|
"build:linux": "electron-builder --linux",
|
|
"build:mac": "electron-builder --mac",
|
|
"build:all": "electron-builder --win --linux --mac",
|
|
"build:arch": "electron-builder --linux dir",
|
|
"build:appimage": "electron-builder --linux AppImage --publish never",
|
|
"build:deb": "electron-builder --linux deb --publish never",
|
|
"build:rpm": "electron-builder --linux rpm --publish never"
|
|
},
|
|
"keywords": [
|
|
"hytale",
|
|
"launcher",
|
|
"game",
|
|
"client",
|
|
"cross-platform",
|
|
"electron",
|
|
"auto-update",
|
|
"mod-manager"
|
|
],
|
|
"maintainers": [
|
|
{
|
|
"name": "Terromur",
|
|
"url": "https://github.com/Terromur"
|
|
},
|
|
{
|
|
"name": "Fazri Gading",
|
|
"email": "fazrigading@gmail.com",
|
|
"url": "https://github.com/fazrigading"
|
|
}
|
|
],
|
|
"author": {
|
|
"name": "AMIAY",
|
|
"email": "support@amiay.dev"
|
|
},
|
|
"license": "MIT",
|
|
"devDependencies": {
|
|
"electron": "^40.0.0",
|
|
"electron-builder": "^26.4.0"
|
|
},
|
|
"dependencies": {
|
|
"adm-zip": "^0.5.10",
|
|
"axios": "^1.6.0",
|
|
"discord-rpc": "^4.0.1",
|
|
"dotenv": "^17.2.3",
|
|
"encoding": "^0.1.13",
|
|
"electron-updater": "^6.7.3",
|
|
"fs-extra": "^11.3.3",
|
|
"tar": "^7.5.7",
|
|
"uuid": "^9.0.1",
|
|
"ws": "^8.16.0"
|
|
},
|
|
"build": {
|
|
"appId": "com.hytalef2p.launcher",
|
|
"productName": "Hytale F2P Launcher",
|
|
"artifactName": "${name}_${version}.${ext}",
|
|
"directories": {
|
|
"output": "dist"
|
|
},
|
|
"files": [
|
|
"main.js",
|
|
"preload.js",
|
|
"backend/**/*",
|
|
"GUI/**/*",
|
|
"package.json",
|
|
".env"
|
|
],
|
|
"win": {
|
|
"target": "nsis",
|
|
"icon": "build/icon.ico"
|
|
},
|
|
"linux": {
|
|
"target": [
|
|
"AppImage",
|
|
"deb",
|
|
"rpm"
|
|
],
|
|
"icon": "build/icon.png",
|
|
"category": "Game"
|
|
},
|
|
"mac": {
|
|
"target": [
|
|
{
|
|
"target": "dmg",
|
|
"arch": [
|
|
"universal"
|
|
]
|
|
},
|
|
{
|
|
"target": "zip",
|
|
"arch": [
|
|
"universal"
|
|
]
|
|
}
|
|
],
|
|
"icon": "build/icon.icns",
|
|
"artifactName": "${name}_${version}_${arch}.${ext}",
|
|
"category": "public.app-category.games",
|
|
"hardenedRuntime": true,
|
|
"gatekeeperAssess": false,
|
|
"entitlements": "build/entitlements.mac.plist",
|
|
"entitlementsInherit": "build/entitlements.mac.plist",
|
|
"notarize": true
|
|
},
|
|
"nsis": {
|
|
"oneClick": false,
|
|
"allowToChangeInstallationDirectory": true,
|
|
"createDesktopShortcut": true,
|
|
"createStartMenuShortcut": true
|
|
},
|
|
"publish": {
|
|
"provider": "generic",
|
|
"url": "https://git.sanhost.net/sanasol/hytale-f2p/releases/download/latest"
|
|
}
|
|
}
|
|
}
|