Files
muSRFlow/package.json
salman 184c5b9eb1 Add musrflow:// configuration links and musrfit thread preference
Register the musrflow:// URL scheme at startup (electron-builder writes the
matching MimeType=x-scheme-handler desktop entry for the packaged Linux
builds), accept musrflow://open/#c= links on the launch path and macOS
open-url alongside the existing http(s)/bare-fragment forms, and add a web
Share button that emits the identical encoded fragment under musrflow://open/
so a browser can hand a configuration to the installed desktop app.

Add a musrfit threads field to the Electron Preferences dialog. A set count
is passed to local fits as `musrfit -u <n>`; blank keeps the previous
all-cores behaviour and the web edition ignores it.

Document both features (preferences, runs/fitting, configuration sharing,
desktop deployment, CHANGELOG) and rebuild the Sphinx HTML and PDF.
2026-10-10 10:40:41 +02:00

104 lines
4.7 KiB
JSON

{
"name": "musrflow",
"productName": "muSRFlow",
"version": "1.0.0-rc.4",
"description": "A desktop and web workflow for musrfit",
"main": "main.js",
"scripts": {
"start": "electron .",
"test": "npm run test:electron && node tests/cgi-hardening.test.js && node tests/cgi-startup.test.js && node tests/cgi-integration.test.js && node tests/integration-musrfit.test.js",
"dist:linux": "npm run test:electron && npx --yes electron-builder@26.15.3 --linux rpm AppImage --x64",
"dist:rpm": "npm run test:electron && npx --yes electron-builder@26.15.3 --linux rpm --x64",
"dist:appimage": "npm run test:electron && npx --yes electron-builder@26.15.3 --linux AppImage --x64",
"checksums:md5": "sh -c 'd=dist; [ -d \"$d\" ] || exit 0; for f in \"$d\"/*; do [ -f \"$f\" ] || continue; case \"$f\" in *.rpm|*.AppImage) base=$(basename \"$f\"); (cd \"$d\" && md5sum \"$base\" > \"$base.md5\");; esac; done'",
"checksums:sha256": "sh -c 'd=dist; [ -d \"$d\" ] || exit 0; for f in \"$d\"/*; do [ -f \"$f\" ] || continue; case \"$f\" in *.rpm|*.AppImage) base=$(basename \"$f\"); (cd \"$d\" && sha256sum \"$base\" > \"$base.sha256\");; esac; done'",
"checksums": "npm run checksums:md5 && npm run checksums:sha256",
"test:electron": "node tests/log-highlighting.test.js && node tests/action-state.test.js && node tests/electron-missing-data.test.js && node tests/electron-msr-title.test.js && node tests/electron-musrfit-threads.test.js && node tests/window-layering.test.js && node tests/msr-generation.test.js && node tests/root-plot-clean.test.js && node tests/parameter-plot.test.js && node tests/help-window.test.js && node tests/release-packaging.test.js && node tests/addrun.test.js && node tests/fit-statistic.test.js && node tests/series-fit-planner.test.js && node tests/series-fit-result.test.js && node tests/series-fit-inventory.test.js && node tests/series-fit-msr-preparation.test.js && node tests/series-artifact-contract.test.js && node tests/series-global-merge.test.js && node tests/series-fit-staging.test.js && node tests/series-fit-runner.test.js && node tests/series-runner-adapters.test.js && node tests/series-fit-routing.test.js && node tests/series-action-chips.test.js && node tests/singlehist-parity.test.js && node tests/url-parameters.test.js && node tests/run-naming.test.js && node tests/electron-portable-naming.test.js && node tests/shared-configuration.test.js && node tests/session-persistence.test.js && node tests/reference-fixtures.test.js && node tests/electron-bridge.test.js"
},
"repository": {
"type": "git",
"url": "git+ssh://git@bitbucket.org/zaher-salman/muSRFlow.git"
},
"keywords": [
"musrfit",
"javascript"
],
"author": "Zaher Salman",
"license": "GPL-3.0-or-later",
"bugs": {
"url": "https://bitbucket.org/zaher-salman/muSRFlow/issues"
},
"homepage": "https://bitbucket.org/zaher-salman/muSRFlow#readme",
"devDependencies": {
"electron": "^44.0.0"
},
"dependencies": {
"plotly.js-dist": "^3.5.1"
},
"build": {
"appId": "ch.psi.lmu.musrflow",
"productName": "muSRFlow",
"artifactName": "muSRFlow-${version}-${arch}.${ext}",
"asar": true,
"files": [
"main.js",
"index.html",
"quick-start.html",
"parameter-plot.html",
"parameter-plot-window.js",
"preload.js",
"ZGUI.css",
"muSRFitlib.js",
"muSRFitelec.js",
"muSRFitRoot.js",
"muSRFitParameterPlot.js",
"muSRFitParameterPlotElec.js",
"assets/**/*",
"LICENSE",
"package.json",
"node_modules/**/*"
],
"directories": {
"output": "dist"
},
"protocols": [
{
"name": "muSRFlow configuration link",
"schemes": [
"musrflow"
]
}
],
"linux": {
"target": [
"rpm",
"AppImage"
],
"category": "Science",
"synopsis": "Graphical workflow for musrfit",
"description": "muSRFlow is a desktop workflow for creating, editing, fitting, plotting, and inspecting musrfit MSR files.",
"maintainer": "Zaher Salman <zaher.salman@psi.ch>",
"vendor": "Paul Scherrer Institute",
"executableName": "musrflow",
"desktop": {
"entry": {
"Name": "muSRFlow",
"Comment": "Graphical workflow for musrfit",
"Categories": "Science;Education;",
"Terminal": "false",
"Type": "Application"
}
},
"icon": "assets/musrflow-icon.png"
},
"rpm": {
"packageCategory": "Applications/Science",
"artifactName": "${name}-${version}-${arch}.${ext}",
"fpm": [
"--rpm-rpmbuild-define=_build_id_links none",
"--rpm-rpmbuild-define=_missing_build_ids_terminate_build 0"
]
}
}
}