zhangjie 6 月之前
父节点
当前提交
210e74af67
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 2 2
      electron-builder.yml
  2. 1 0
      electron/main/index.ts

+ 2 - 2
electron-builder.yml

@@ -1,5 +1,5 @@
 appId: com.electron.app
-productName: teachcloud-mark-tool
+productName: trd
 directories:
   buildResources: build
 files:
@@ -12,7 +12,7 @@ files:
 asarUnpack:
   - resources/**
 win:
-  executableName: teachcloud-mark-tool
+  executableName: trd
 nsis:
   artifactName: ${name}-${version}-setup.${ext}
   shortcutName: ${productName}

+ 1 - 0
electron/main/index.ts

@@ -11,6 +11,7 @@ import log from './logger';
 function silenceAuthorityHandle(mainWindow) {
   const arg = process.argv;
   log.info(`process.argv:${JSON.stringify(arg)}`);
+  if (!arg[1].startsWith('trd://')) return;
   mainWindow.webContents.send('silence-authority', arg[1]);
   // mainWindow.webContents.send(
   //   'silence-authority',