From a29f6a051a62f54188382fc81e9f848e8f3e86fc Mon Sep 17 00:00:00 2001 From: SpikeHD Date: Mon, 28 Oct 2024 04:26:26 +0000 Subject: [PATCH] deploy: e9bf91b2574b7454b6ab4bb5f6f0015016ddf58b --- dorion-settings/plugin.js | 4 ++++ dorion-settings/plugin.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/dorion-settings/plugin.js b/dorion-settings/plugin.js index f24dfe2..32b75a4 100644 --- a/dorion-settings/plugin.js +++ b/dorion-settings/plugin.js @@ -4268,6 +4268,7 @@ ${content} var appendAppVersion = () => __async(void 0, null, function* () { let tries = 0; const infoBoxSelector = 'div[class*="side_"] div[class*="info_"]'; + const hash = (yield invoke("git_hash").catch((e) => console.error(e))) || ""; while (!document.querySelector(infoBoxSelector)) { yield sleep(500); tries++; @@ -4282,6 +4283,9 @@ ${content} if (!firstChild) return; newVersionThing.innerHTML = `${appName} v${yield app.getVersion()}`; + if (hash) { + newVersionThing.innerHTML += " - " + hash.slice(0, 7); + } newVersionThing.classList.add(...firstChild.classList); newVersionThing.style.color = firstChild.style.color; versionThings.appendChild(newVersionThing); diff --git a/dorion-settings/plugin.json b/dorion-settings/plugin.json index 1f22023..29ced12 100644 --- a/dorion-settings/plugin.json +++ b/dorion-settings/plugin.json @@ -1 +1 @@ -{"name":"Dorion Settings","author":"SpikeHD","description":"Settings page for the Dorion client.","hash":"7c4cbf8b3ba9baea179678b2eb330def"} \ No newline at end of file +{"name":"Dorion Settings","author":"SpikeHD","description":"Settings page for the Dorion client.","hash":"fd8069707949197522c9d7773895832e"} \ No newline at end of file