build(identity): rename to Markdown Converter React + defaults

- package.json: name -> markdown-converter-react; productName -> Markdown
  Converter React; appId -> com.concreteinfo.markdownconverter.react;
  linux.executableName -> markdown-converter-react
- Window title: 'Markdown Converter — React Dev' in dev mode
- Migration defaults: monospaceFont, monospaceLigatures, appVariant
- Bumped fields in v5OnlyFields so v4->v5 detection covers new keys
This commit is contained in:
2026-07-23 09:34:57 +05:30
parent 28ef350f39
commit 81d38160d8
4 changed files with 12 additions and 5 deletions
+6 -4
View File
@@ -1,7 +1,7 @@
{
"name": "markdown-converter",
"name": "markdown-converter-react",
"version": "5.0.1",
"description": "Professional Markdown editor and universal file converter with PDF editing, batch processing, and syntax highlighting",
"description": "Professional Markdown editor and universal file converter with PDF editing, batch processing, and syntax highlighting (React build)",
"main": "src/main/index.js",
"scripts": {
"start": "electron .",
@@ -161,8 +161,8 @@
"lodash": "^4.17.21"
},
"build": {
"appId": "com.concreteinfo.markdownconverter",
"productName": "MarkdownConverter",
"appId": "com.concreteinfo.markdownconverter.react",
"productName": "Markdown Converter React",
"copyright": "Copyright (C) 2024-2025 ConcreteInfo",
"directories": {
"output": "dist"
@@ -291,6 +291,8 @@
],
"category": "Utility",
"maintainer": "ConcreteInfo <amit.wh@gmail.com>",
"executableName": "markdown-converter-react",
"synopsis": "Markdown editor and converter (React build)",
"extraFiles": [
{
"from": "bin/linux/pandoc",
+3
View File
@@ -39,6 +39,9 @@ const v5SettingsSchema = z
updateChannel: z.enum(['github', 'concreteinfo']).default('github'),
autoCheckUpdates: z.boolean().default(true),
firstRun: z.boolean().default(true),
monospaceFont: z.enum(['jetbrains-mono', 'fira-code']).default('jetbrains-mono'),
monospaceLigatures: z.boolean().default(false),
appVariant: z.enum(['classic', 'react']).default('react'),
'migration.version': z.literal(5).optional(),
})
.passthrough();
+2
View File
@@ -9,12 +9,14 @@ const menu = require('../menu');
function createMainWindow() {
const bounds = state.load();
const isDev = !!process.env.VITE_DEV_SERVER_URL;
const win = new BrowserWindow({
width: bounds.width,
height: bounds.height,
x: bounds.x,
y: bounds.y,
show: true,
title: `Markdown Converter${isDev ? ' — React Dev' : ''}`,
webPreferences: {
// The preload script exposes `window.electronAPI` — the only IPC
// bridge the renderer uses. Without this, every renderer call returns
+1 -1
View File
@@ -10,7 +10,7 @@ export const v4SettingsSchema = z.object({
snippets: z.array(z.unknown()).default([]),
});
const v5OnlyFields = ['updateChannel', 'autoCheckUpdates', 'firstRun'];
const v5OnlyFields = ['updateChannel', 'autoCheckUpdates', 'firstRun', 'monospaceFont', 'monospaceLigatures', 'appVariant'];
const v5ThemeValues = ['light', 'dark', 'system'] as const;
function isAlreadyV5(data: unknown): boolean {