From c0b04ff196a7b790f0a7e1431c9bcf5e011d6316 Mon Sep 17 00:00:00 2001 From: xiaojunnuo <xiaojunnuo@qq.com> Date: Thu, 11 Nov 2021 21:23:45 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20=E5=8D=B8=E8=BD=BD=E6=97=B6?= =?UTF-8?q?=E6=81=A2=E5=A4=8D=E7=B3=BB=E7=BB=9F=E4=BB=A3=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/gui/build/installer.nsh | 3 +++ packages/gui/vue.config.js | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 packages/gui/build/installer.nsh diff --git a/packages/gui/build/installer.nsh b/packages/gui/build/installer.nsh new file mode 100644 index 00000000..57839237 --- /dev/null +++ b/packages/gui/build/installer.nsh @@ -0,0 +1,3 @@ +!macro customUnInit + ExecWait '"$INSTDIR\resources\extra\sysproxy.exe" set 1' +!macroend diff --git a/packages/gui/vue.config.js b/packages/gui/vue.config.js index ce8ad015..93e6faae 100644 --- a/packages/gui/vue.config.js +++ b/packages/gui/vue.config.js @@ -58,7 +58,8 @@ module.exports = { oneClick: false, perMachine: true, allowElevation: true, - allowToChangeInstallationDirectory: true + allowToChangeInstallationDirectory: true, + include: './build/installer.nsh' }, mac: { icon: './build/mac/icon.icns', From 5e527fbdd8697df76231b323e7a4fba947599754 Mon Sep 17 00:00:00 2001 From: xiaojunnuo <xiaojunnuo@qq.com> Date: Sun, 14 Nov 2021 13:00:20 +0800 Subject: [PATCH 2/2] refactor: tip --- packages/gui/build/installer.nsh | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/gui/build/installer.nsh b/packages/gui/build/installer.nsh index 57839237..ab2d22a7 100644 --- a/packages/gui/build/installer.nsh +++ b/packages/gui/build/installer.nsh @@ -1,3 +1,4 @@ !macro customUnInit + MessageBox MB_OK "请务必先手动右键小图标退出DevSidecar之后再进行下一步↘↘↘↘↘↘↘↘↘" ExecWait '"$INSTDIR\resources\extra\sysproxy.exe" set 1' !macroend