mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-17 18:05:42 +02:00
The desktop preload script explicitly overrides serverConfig.MODEL_VERSION with the value baked into the desktop binary at build time. This causes the "New version is available" dialog to fire for self-hosted users whenever desktop CI builds from a different commit than the server image (i.e., when v* and s* tags diverge in version.txt). Use the server's authoritative MODEL_VERSION instead, falling back to the bundled value when the server does not report one. Signed-off-by: Shannon Kerr <shannon@exaviz.com> Co-authored-by: Artyom Savchenko <armisav@gmail.com>
electron-builder
The package.json has a build section for running
electron-builder. I didn't add it
to this project's dependency list because many people prefer to install
it globally. If you do not wish to use electon-builder, simply
disregard or remove the build section from package.json.
Note that this project's build configuration overrides the default
output directory to be deploy instead of dist, since dist is
already being used for the transpilation target. The dist directory
is the source for electron-builder.