@@ -53,7 +53,6 @@ app.whenReady().then(() => {
// use electron
useElectron();
- // use node
createWindow();
@@ -7,6 +7,7 @@ import { getImagicPath, getTempPath } from './utils';
const gmInst =
process.platform === 'win32'
? gm.subClass({
+ imageMagick: '7+',
appPath: getImagicPath(),
})
: gm.subClass({ imageMagick: '7+' });
@@ -4,10 +4,11 @@ import {
} from '../db/modelApi/trackTask';
import createDb from '../db/createdb';
+createDb();
+
const dbApi = {
getUnfinishTrackTask,
createTrackTask,
- createDb,
};
export type DbApi = typeof dbApi;
@@ -29,7 +29,7 @@ export function getTempPath() {
}
export function getImagicPath() {
- return path.join(getResourcesDir(), './imagemagick-7.1.1-11/magick.exe');
+ return path.join(getResourcesDir(), './imagemagick-7.1.1-11/');
export function makeDirSync(pathContent: string) {