From ad32a5b840b03da3e4ff0bf55f033c10cb4a7bf5 Mon Sep 17 00:00:00 2001
From: peshomir <80340328+peshomir@users.noreply.github.com>
Date: Sun, 25 Feb 2024 15:06:23 +0200
Subject: [PATCH] Update v0.6.1.5; Add web app manifest and add a meta viewport
tag to the html page
---
build.js | 1 +
static/fx_core.js | 4 ++--
static/index.html | 2 ++
static/manifest.json | 19 +++++++++++++++++++
4 files changed, 24 insertions(+), 2 deletions(-)
create mode 100644 static/manifest.json
diff --git a/build.js b/build.js
index 73ddfd6..2eec240 100644
--- a/build.js
+++ b/build.js
@@ -3,6 +3,7 @@ const fs = require('fs');
if (!fs.existsSync("./build")) fs.mkdirSync("./build");
fs.cpSync("./static/", "./build/", { recursive: true });
+fs.cpSync("./assets/", "./build/assets/", { recursive: true });
fs.writeFileSync("./build/index.html", fs.readFileSync("./build/index.html").toString().replace(/buildTimestamp/g, Date.now()));
let script = fs.readFileSync('./game/latest.js', { encoding: 'utf8' }).replace("\n", "").trim();
diff --git a/static/fx_core.js b/static/fx_core.js
index 65fe410..b674686 100644
--- a/static/fx_core.js
+++ b/static/fx_core.js
@@ -1,5 +1,5 @@
-const fx_version = '0.6.1.4'; // FX Client Version
-const fx_update = 'Feb 24'; // FX Client Last Updated
+const fx_version = '0.6.1.5'; // FX Client Version
+const fx_update = 'Feb 25'; // FX Client Last Updated
if (localStorage.getItem("fx_winCount") == undefined || localStorage.getItem("fx_winCount") == null) {
var wins_counter = 0;
diff --git a/static/index.html b/static/index.html
index 5672f47..4ec8987 100644
--- a/static/index.html
+++ b/static/index.html
@@ -15,7 +15,9 @@
+
+
diff --git a/static/manifest.json b/static/manifest.json
new file mode 100644
index 0000000..190b259
--- /dev/null
+++ b/static/manifest.json
@@ -0,0 +1,19 @@
+{
+ "name": "FX Client",
+ "short_name": "FXclient",
+ "start_url": ".",
+ "display": "standalone",
+ "background_color": "#000000",
+ "description": "Client for Territorial.io",
+ "icons": [
+ {
+ "src": "favicon.ico",
+ "sizes": "64x64"
+ },
+ {
+ "src": "assets/logo.png",
+ "sizes": "any",
+ "type": "image/png"
+ }
+ ]
+}
\ No newline at end of file