From 5a91b1a0432da6bf1b484ed52e1ea35efe3636f7 Mon Sep 17 00:00:00 2001 From: salman Date: Mon, 14 Sep 2026 11:36:45 +0200 Subject: [PATCH] Drop legacy musrfit-gui credit from MSRs and expose the version on the web Generated MSRs no longer carry the old musrfit-gui repository URL; the header names muSRFlow, the author, the licence, and the muSRFlow site, and the reference fixtures follow. The Quick Start/help page gains an About muSRFlow section with the version, author, and licence, mirroring the Electron Help > About dialog: the Electron window is fed app.getVersion() over the quickStartSection channel, while the web deploy brands the installed page with the package.json version (idempotent sed on a __MUSRFLOW_VERSION__ token that renders as 'development build' when unsubstituted). --- CHANGELOG.md | 9 +++++++++ main.js | 2 +- muSRFitlib.js | 2 +- quick-start.html | 18 ++++++++++++++++++ scripts/deploy-web.sh | 16 ++++++++++++++++ .../fixtures/reference/asymmetry.generated.msr | 2 +- tests/fixtures/reference/bounds.generated.msr | 2 +- .../fixtures/reference/functions.generated.msr | 2 +- tests/fixtures/reference/global.generated.msr | 2 +- tests/fixtures/reference/singlehist.fitted.msr | 2 +- .../reference/singlehist.generated.msr | 2 +- .../reference/t0background.generated.msr | 2 +- tests/help-window.test.js | 8 ++++++++ 13 files changed, 60 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a71842..d81c324 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,15 @@ release path documented in [`TODO.md`](TODO.md). platforms each expose an `chooseDataSources` multi-picker, wired to a new `selectParameterDataFiles` IPC channel for the native dialog. +### About and versioning +- The Quick Start/help page gained an **About muSRFlow** section with the + version, author, and licence, mirroring the Electron Help > About dialog. + The Electron window is fed `app.getVersion()`; the web deploy brands the + installed help page with the `package.json` version (the source keeps a + `__MUSRFLOW_VERSION__` token that renders as "development build"). +- Generated MSRs no longer credit the legacy `musrfit-gui` repository; the + header now names muSRFlow, the author, the licence, and the muSRFlow site. + ## [1.0.0-rc.1] - 2026-09-10 ### Highlights diff --git a/main.js b/main.js index 0799a10..e7c751b 100644 --- a/main.js +++ b/main.js @@ -146,7 +146,7 @@ function showQuickStartWindow(sectionId = "helpRuns") { minHeight: 360, file: "quick-start.html", dataChannel: "quickStartSection", - data: { sectionId: sectionId } + data: { sectionId: sectionId, version: app.getVersion() } }); quickStartWindow.on("closed", () => { quickStartWindow = null; diff --git a/muSRFitlib.js b/muSRFitlib.js index 81a9498..c1cee1e 100644 --- a/muSRFitlib.js +++ b/muSRFitlib.js @@ -764,7 +764,7 @@ PLOT_BLOCK FOURIER FOURIER_BLOCK ############################################################### -# Created by muSRFlow (ZS https://bitbucket.org/zaher-salman/musrfit-gui) +# Created by muSRFlow (Zaher Salman; GNU GPL version 3 or later; https://musruser.psi.ch/muSRFlow/) ` // Create additional property with an array of parameters diff --git a/quick-start.html b/quick-start.html index 2897ecd..0c8413d 100644 --- a/quick-start.html +++ b/quick-start.html @@ -49,6 +49,12 @@

Results and diagnostics

The Results tab keeps generated files, fit statistics and the full command log. The status bar provides the short state; click its state or message to open the run log immediately. Hover over shortened values to see them in full.

+ +
+

About muSRFlow

+

muSRFlow __MUSRFLOW_VERSION__ is a desktop and web workflow for musrfit.

+

Author: Zaher Salman. Copyright (C) 2026 Zaher Salman. GNU GPL version 3 or later.

+