From 0bc812f869174e63d9b09dbfe50b4e05ed3d9713 Mon Sep 17 00:00:00 2001 From: Hocky Yudhiono Date: Sat, 20 Jul 2024 07:23:58 +0800 Subject: [PATCH] Remove unwanted files --- main/handler/chinese.ts | 6 ------ package.json | 16 ---------------- 2 files changed, 22 deletions(-) diff --git a/main/handler/chinese.ts b/main/handler/chinese.ts index d22a655..dc8479c 100644 --- a/main/handler/chinese.ts +++ b/main/handler/chinese.ts @@ -16,8 +16,6 @@ interface JyutpingResult { class Chinese { static Dict = {db: null}; - static scriptPath: string; - static scriptOutPath: string; static dictPath: string; static importDict: string; static importBaseSVG: string; @@ -34,9 +32,7 @@ class Chinese { static getMandarinSettings = (appDataDirectory, replacements: any = {}) => { return { - scriptPath: path.join(__dirname, `chinese/chinese.py`), jiebaDictPath: path.join(__dirname, 'chinese/zh.jieba.txt'), - scriptOutPath: path.join(appDataDirectory, 'chinese.py'), dictPath: path.join(appDataDirectory, `cccedict-db`), importDict: path.join(__dirname, 'chinese/chinese.json'), importBaseSVG: path.join(__dirname, 'hanzi'), @@ -46,9 +42,7 @@ class Chinese { static getCantoneseSettings = (appDataDirectory, replacements: any = {}) => { return { - scriptPath: path.join(__dirname, `cantonese/cantonese.py`), jiebaDictPath: path.join(__dirname, 'cantonese/yue.jieba.txt'), - scriptOutPath: path.join(appDataDirectory, 'cantonese.py'), dictPath: path.join(appDataDirectory, `cantodict-db`), importDict: path.join(__dirname, 'cantonese/cantodict.json'), importBaseSVG: path.join(__dirname, 'hanzi'), diff --git a/package.json b/package.json index 8c56580..1ce51a7 100644 --- a/package.json +++ b/package.json @@ -6,22 +6,6 @@ "author": "Hocky Yudhiono ", "main": "app/background.js", "build": { - "extraResources": [ - { - "from": "./renderer/public/cantonese/cantonese.py", - "to": "renderer/public/cantonese/cantonese.py", - "filter": [ - "**/*" - ] - }, - { - "from": "./renderer/public/chinese/chinese.py", - "to": "renderer/public/chinese/chinese.py", - "filter": [ - "**/*" - ] - } - ], "appId": "id.hocky.miteiru", "artifactName": "miteiru-${version}-${os}-${arch}.${ext}", "mac": {