fix camdict in package
This commit is contained in:
@@ -12,7 +12,7 @@ const config = {
|
||||
asar: {
|
||||
// Binary files won't work in asar, so we need to unpack them
|
||||
unpackDir:
|
||||
"{.vite/build/lib,.vite/build/samples,node_modules/ffmpeg-static,node_modules/@andrkrn/ffprobe-static,node_modules/onnxruntime-node/bin}",
|
||||
"{.vite/build/lib,.vite/build/samples,node_modules/ffmpeg-static,node_modules/@andrkrn/ffprobe-static,node_modules/onnxruntime-node/bin,lib/dictionaries}",
|
||||
},
|
||||
icon: "./assets/icon",
|
||||
name: "Enjoy",
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
import { ipcMain, app } from "electron";
|
||||
import { ipcMain } from "electron";
|
||||
import path from "path";
|
||||
import log from "@main/logger";
|
||||
import url from "url";
|
||||
import { Sequelize, DataType } from "sequelize-typescript";
|
||||
|
||||
const __filename = url.fileURLToPath(import.meta.url);
|
||||
const __dirname = path.dirname(__filename);
|
||||
const __dirname = path
|
||||
.dirname(__filename)
|
||||
.replace("app.asar", "app.asar.unpacked");
|
||||
|
||||
const logger = log.scope("camdict");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user