📦 Chore: add mac-arm64 build support

This commit is contained in:
PiEgg
2022-01-05 12:54:02 +08:00
parent 34b3656605
commit f2a4197ca2
5 changed files with 13 additions and 6 deletions

View File

@@ -4,7 +4,6 @@ import {
Notification,
ipcMain
} from 'electron'
import path from 'path'
import db, { GalleryDB } from 'apis/core/datastore'
import { dbPathChecker, defaultConfigPath, getGalleryDBPath } from 'apis/core/datastore/dbChecker'
import uploader from 'apis/app/uploader'
@@ -18,7 +17,6 @@ import {
SHOW_INPUT_BOX
} from '~/universal/events/constants'
import { DBStore } from '@picgo/store'
type PromiseResType<T> = T extends Promise<infer R> ? R : T
// Cross-process support may be required in the future
class GuiApi implements IGuiApi {

View File

@@ -333,3 +333,5 @@ interface IMiniWindowPos {
height: number,
width: number
}
type PromiseResType<T> = T extends Promise<infer R> ? R : T