Replies: 5 comments
-
thx,但请问这个要怎么使用啊。是不是Discord每次更新后再手动运行下这个脚本? |
Beta Was this translation helpful? Give feedback.
-
嗯嗯对的,直接运行即可 |
Beta Was this translation helpful? Give feedback.
-
不。正因为太简单了,懒得装python了,建议用bat。 例如: @echo off
cd /d %~dp0
set "params=%*"
cd /d "%~dp0" && ( if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" ) && fsutil dirty query %systemdrive% 1>nul 2>nul || ( echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "cmd.exe", "/k cd ""%~sdp0"" && %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs" && "%temp%\getadmin.vbs" && exit /B )
set discordRoot=%localappdata%\Discord
echo discordRoot
for /d %%i in (%discordRoot%\*) do (
SETLOCAL EnableDelayedExpansion
set "x=%%~ni"
if "!x:~0,4!"=="app-" (
xcopy /x /y version.dll %%i\
)
)
cd /d %discordRoot%
Update.exe --processStart Discord.exe --a=--proxy-server=http://127.0.0.1:10809
exit 创建bat后,用这个bat当作入口。同时把 version.dll放在一起。一键启动。 |
Beta Was this translation helpful? Give feedback.
-
不会bat的留下了羡慕的眼泪,不过环境里有python,所以还是python方便一些。 |
Beta Was this translation helpful? Give feedback.
-
Python和Bat都很6, 向两位大佬致敬 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
如 README 所言,在 Discord 每次升级后都要重新放
version.dll
,并且重新修改快捷方式。为了省去复制粘贴的过程,写了个 Python 脚本自动化部署。
脚本内容太简单了,直接发 issues 算了,不混 PR。
Beta Was this translation helpful? Give feedback.
All reactions