hide dock icon for none main flow

This commit is contained in:
geekgeekrun
2024-02-22 10:06:52 +08:00
parent 985c6edf14
commit 84b6ba79a3
2 changed files with 4 additions and 0 deletions

View File

@@ -2,6 +2,8 @@ import { app } from 'electron'
import checkAndDownloadPuppeteer from './check-and-download-puppeteer'
import * as net from 'net'
app.dock.hide()
export enum DOWNLOAD_ERROR_EXIT_CODE {
NO_ERROR = 0,
DOWNLOAD_ERROR = 1

View File

@@ -7,6 +7,8 @@ import {
checkPuppeteerExecutable,
} from './CHECK_AND_DOWNLOAD_DEPENDENCIES/check-and-download-puppeteer'
app.dock.hide()
const { groupRobotAccessToken: dingTalkAccessToken } = readConfigFile('dingtalk.json')
const initPlugins = (hooks) => {