From 549f24eb0a7cf98308c593117b6c7927d2fa6750 Mon Sep 17 00:00:00 2001 From: C85297 <95289555+C85297@users.noreply.github.com> Date: Mon, 27 Apr 2026 14:19:06 +0100 Subject: [PATCH] Version string uses sha --- Gruntfile.js | 6 ++++-- src/web/html/index.html | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index ea64436c..dee08e9b 100755 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -89,7 +89,8 @@ module.exports = function (grunt) { const compileYear = grunt.template.today("UTC:yyyy"), compileTime = grunt.template.today("UTC:dd/mm/yyyy HH:MM:ss") + " UTC", pkg = grunt.file.readJSON("package.json"), - downloadZipFilename = `CyberChef_${process.env.GITHUB_SHA || `v${pkg.version}`}.zip`, + version = process.env.GITHUB_SHA || `v${pkg.version}`, + downloadZipFilename = `CyberChef_${version}.zip`, webpackConfig = require("./webpack.config.js"), BUILD_CONSTANTS = { COMPILE_YEAR: JSON.stringify(compileYear), @@ -130,7 +131,8 @@ module.exports = function (grunt) { chunks: ["main"], compileYear: compileYear, compileTime: compileTime, - version: pkg.version, + version: version, + latestReleaseVersion: pkg.version, downloadZipFilename: downloadZipFilename, minify: { removeComments: true, diff --git a/src/web/html/index.html b/src/web/html/index.html index 531d6539..bc6769b4 100755 --- a/src/web/html/index.html +++ b/src/web/html/index.html @@ -868,10 +868,10 @@ Be aware that the standalone version will never update itself, meaning it will not receive bug fixes or new features until you re-download newer versions manually.

-
CyberChef v<%= htmlWebpackPlugin.options.version %>
+
CyberChef <%= htmlWebpackPlugin.options.version %>