mirror of
https://github.com/amitwh/markdown-converter.git
synced 2026-08-02 10:00:17 +05:30
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:
+6
-4
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "markdown-converter",
|
"name": "markdown-converter-react",
|
||||||
"version": "5.0.1",
|
"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",
|
"main": "src/main/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "electron .",
|
"start": "electron .",
|
||||||
@@ -161,8 +161,8 @@
|
|||||||
"lodash": "^4.17.21"
|
"lodash": "^4.17.21"
|
||||||
},
|
},
|
||||||
"build": {
|
"build": {
|
||||||
"appId": "com.concreteinfo.markdownconverter",
|
"appId": "com.concreteinfo.markdownconverter.react",
|
||||||
"productName": "MarkdownConverter",
|
"productName": "Markdown Converter React",
|
||||||
"copyright": "Copyright (C) 2024-2025 ConcreteInfo",
|
"copyright": "Copyright (C) 2024-2025 ConcreteInfo",
|
||||||
"directories": {
|
"directories": {
|
||||||
"output": "dist"
|
"output": "dist"
|
||||||
@@ -291,6 +291,8 @@
|
|||||||
],
|
],
|
||||||
"category": "Utility",
|
"category": "Utility",
|
||||||
"maintainer": "ConcreteInfo <amit.wh@gmail.com>",
|
"maintainer": "ConcreteInfo <amit.wh@gmail.com>",
|
||||||
|
"executableName": "markdown-converter-react",
|
||||||
|
"synopsis": "Markdown editor and converter (React build)",
|
||||||
"extraFiles": [
|
"extraFiles": [
|
||||||
{
|
{
|
||||||
"from": "bin/linux/pandoc",
|
"from": "bin/linux/pandoc",
|
||||||
|
|||||||
@@ -39,6 +39,9 @@ const v5SettingsSchema = z
|
|||||||
updateChannel: z.enum(['github', 'concreteinfo']).default('github'),
|
updateChannel: z.enum(['github', 'concreteinfo']).default('github'),
|
||||||
autoCheckUpdates: z.boolean().default(true),
|
autoCheckUpdates: z.boolean().default(true),
|
||||||
firstRun: 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(),
|
'migration.version': z.literal(5).optional(),
|
||||||
})
|
})
|
||||||
.passthrough();
|
.passthrough();
|
||||||
|
|||||||
@@ -9,12 +9,14 @@ const menu = require('../menu');
|
|||||||
|
|
||||||
function createMainWindow() {
|
function createMainWindow() {
|
||||||
const bounds = state.load();
|
const bounds = state.load();
|
||||||
|
const isDev = !!process.env.VITE_DEV_SERVER_URL;
|
||||||
const win = new BrowserWindow({
|
const win = new BrowserWindow({
|
||||||
width: bounds.width,
|
width: bounds.width,
|
||||||
height: bounds.height,
|
height: bounds.height,
|
||||||
x: bounds.x,
|
x: bounds.x,
|
||||||
y: bounds.y,
|
y: bounds.y,
|
||||||
show: true,
|
show: true,
|
||||||
|
title: `Markdown Converter${isDev ? ' — React Dev' : ''}`,
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
// The preload script exposes `window.electronAPI` — the only IPC
|
// The preload script exposes `window.electronAPI` — the only IPC
|
||||||
// bridge the renderer uses. Without this, every renderer call returns
|
// bridge the renderer uses. Without this, every renderer call returns
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ export const v4SettingsSchema = z.object({
|
|||||||
snippets: z.array(z.unknown()).default([]),
|
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;
|
const v5ThemeValues = ['light', 'dark', 'system'] as const;
|
||||||
|
|
||||||
function isAlreadyV5(data: unknown): boolean {
|
function isAlreadyV5(data: unknown): boolean {
|
||||||
|
|||||||
Reference in New Issue
Block a user