Files
WT-Offline/apps/launcher/package.json
T
N0VAN0M4LY d82f9856f6 feat(launcher): show official gallery and local game wallpapers
The window background now comes from two sources, served to the window
over a wto-art:// scheme from the launcher's cache:

- Website wallpapers: the newest entries of the public wallpaper gallery
  on warthunder.com (two pages), list refreshed at most daily, each
  1920x1080 picture downloaded when first shown and kept in the cache.
  No cookies, no sign-in; a setting turns it off. Without a connection
  the pictures downloaded before stay available.
- Game pictures: the nation pictures the game's own launcher keeps in
  launcherr.dat next to the game, extracted from the installed copy
  (fflate) once per archive version.

Without either, the window keeps its drawn background. The settings
choose a random picture per start or a fixed one (thumbnail grid); the
home page shows the picture's name with previous / next.

Checked: launcher typecheck, electron-vite build. Ran the window from a
scratch user data folder with a fake copy holding a copy of the real
launcherr.dat: 18 website wallpapers and 9 game pictures listed, both
sizes and the game pictures load through wto-art://, an unknown picture
is refused, stepping saves the choice, turning wallpapers off leaves
the game pictures, no console errors.
2026-11-29 07:45:26 +08:00

34 lines
908 B
JSON

{
"name": "@wto/launcher",
"productName": "WTOffline Launcher",
"version": "0.1.0",
"private": true,
"description": "Installer and launcher of the War Thunder offline project.",
"type": "module",
"main": "./out/main/index.js",
"scripts": {
"dev": "electron-vite dev",
"build": "electron-vite build",
"typecheck": "tsc --noEmit -p tsconfig.node.json && tsc --noEmit -p tsconfig.web.json"
},
"dependencies": {
"@fontsource/roboto-condensed": "^5.3.0",
"@wto/patcher": "*",
"@wto/server": "*",
"fflate": "^0.8.2",
"i18next": "^26.3.6",
"react": "^19.2.8",
"react-dom": "^19.2.8",
"react-i18next": "^17.0.10",
"zod": "^4.4.3"
},
"devDependencies": {
"@types/react": "^19.2.17",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^5.2.0",
"electron": "^43.2.0",
"electron-vite": "^5.0.0",
"vite": "^7.3.6"
}
}