From a407f849815ad89a22596bfe96b9aa8055368271 Mon Sep 17 00:00:00 2001 From: muwoo <2424880409@qq.com> Date: Tue, 14 Mar 2023 15:59:03 +0800 Subject: [PATCH] =?UTF-8?q?:green=5Fheart:=20=E4=BF=AE=E5=A4=8Dgithub=20ac?= =?UTF-8?q?tions=20=E6=9E=84=E5=BB=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/utils/getCopyFiles.ts | 2 +- vue.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/utils/getCopyFiles.ts b/src/common/utils/getCopyFiles.ts index 1069058..e26f865 100644 --- a/src/common/utils/getCopyFiles.ts +++ b/src/common/utils/getCopyFiles.ts @@ -16,7 +16,7 @@ export default function getCopyFiles(): Array | null { } catch (e) { return null; } - } else if (commonConst.windows()) { + } else if (process.platform === "win32") { /* eslint-disable */ const clipboardEx = require("electron-clipboard-ex"); fileInfo = clipboardEx.readFilePaths(); diff --git a/vue.config.js b/vue.config.js index 4dfc870..580cf6d 100644 --- a/vue.config.js +++ b/vue.config.js @@ -51,7 +51,7 @@ module.exports = { }, mac: { icon: "public/icons/icon.icns", - target: ["dmg", "pkg"], + target: ["pkg"], extendInfo: { LSUIElement: 1, },