chore: package the app for both intel and arm macs

This commit is contained in:
haritabh-z01 2025-07-07 09:59:51 +05:30
parent 65b9c8f523
commit 0c64d43ec6
2 changed files with 5 additions and 5 deletions

View file

@ -11,8 +11,11 @@
"scripts": {
"start": "pnpm build:swift-helper && electron-forge start",
"package": "pnpm build:swift-helper && electron-forge package",
"make": "pnpm build:swift-helper && electron-forge make",
"make": "pnpm build:swift-helper && electron-forge make --platform=darwin --arch=arm64,x64",
"make:dmg": "pnpm build:swift-helper && electron-forge make --targets=@electron-forge/maker-dmg --platform=darwin --arch=arm64",
"make:dmg:x64": "pnpm build:swift-helper && electron-forge make --targets=@electron-forge/maker-dmg --platform=darwin --arch=x64",
"make:zip:x64": "pnpm build:swift-helper && electron-forge make --targets=@electron-forge/maker-zip --platform=darwin --arch=x64",
"package:x64": "pnpm build:swift-helper && electron-forge package --platform=darwin --arch=x64",
"publish": "electron-forge publish",
"lint": "eslint --ext .ts,.tsx .",
"format:check": "prettier --check \"**/*.{ts,tsx,md,json,mjs,mts,css,mdx}\" --cache --ignore-path=../../.prettierignore",

View file

@ -123,10 +123,7 @@ export const TranscriptionsList: React.FC = () => {
if (!text || text.trim() === "") {
return `no words detected`;
}
const firstSentence = text.split(".")[0];
return firstSentence.length > 50
? firstSentence.substring(0, 50) + "..."
: firstSentence;
return text;
};
const getWordCount = (text: string) => {