Skip to content

Commit

Permalink
Remove unwanted files
Browse files Browse the repository at this point in the history
  • Loading branch information
hockyy committed Jul 19, 2024
1 parent a21db67 commit 0bc812f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
6 changes: 0 additions & 6 deletions main/handler/chinese.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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'),
Expand All @@ -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'),
Expand Down
16 changes: 0 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,6 @@
"author": "Hocky Yudhiono <[email protected]>",
"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": {
Expand Down

0 comments on commit 0bc812f

Please sign in to comment.