mirror of
https://github.com/Grasscutters/GrassClipper.git
synced 2024-08-14 13:11:48 +08:00
misc fixes
This commit is contained in:
parent
b018da2572
commit
183aca8dd5
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,6 +3,7 @@ node_modules/
|
|||||||
bin/
|
bin/
|
||||||
dist/
|
dist/
|
||||||
ext/
|
ext/
|
||||||
|
temp/
|
||||||
resources/js/neutralino.js
|
resources/js/neutralino.js
|
||||||
resources/bg
|
resources/bg
|
||||||
|
|
||||||
|
17
install.cmd
17
install.cmd
@ -1,17 +1,10 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
:: Ensure we are elevated for certs
|
:: Ensure we are elevated for certs
|
||||||
>nul 2>&1 reg query "HKU\S-1-5-19" || (
|
>nul 2>&1 certutil -addstore root %USERPROFILE%\.mitmproxy\mitmproxy-ca-cert.cer || (
|
||||||
echo Currently running with non Administrator privileges, raising...
|
echo Currently running with non Administrator privileges, run as Administrator to install the certificate.
|
||||||
echo set UAC = CreateObject^("Shell.Application"^) > "%temp%\UAC.vbs"
|
|
||||||
echo UAC.ShellExecute "%~f0", "%1", "", "runas", 1 >> "%temp%\UAC.vbs"
|
|
||||||
"%temp%\UAC.vbs"
|
|
||||||
del /f /q "%temp%\UAC.vbs" >nul 2>nul
|
|
||||||
exit /b
|
|
||||||
)
|
)
|
||||||
|
|
||||||
certutil -addstore root %USERPROFILE%\.mitmproxy\mitmproxy-ca-cert.cer
|
|
||||||
|
|
||||||
echo Downloading proxy server...
|
echo Downloading proxy server...
|
||||||
|
|
||||||
if not exist "./ext" mkdir "ext"
|
if not exist "./ext" mkdir "ext"
|
||||||
@ -20,7 +13,11 @@ if not exist "./temp" mkdir "temp"
|
|||||||
:: Begin by retrieving mitmproxy 8.0.0
|
:: Begin by retrieving mitmproxy 8.0.0
|
||||||
powershell Invoke-WebRequest -Uri https://snapshots.mitmproxy.org/8.0.0/mitmproxy-8.0.0-windows.zip -OutFile "./temp/mitmproxy-8.0.0-windows.zip"
|
powershell Invoke-WebRequest -Uri https://snapshots.mitmproxy.org/8.0.0/mitmproxy-8.0.0-windows.zip -OutFile "./temp/mitmproxy-8.0.0-windows.zip"
|
||||||
|
|
||||||
|
echo Extracting...
|
||||||
|
|
||||||
:: Extract from temp/ to ext/ with powershell
|
:: Extract from temp/ to ext/ with powershell
|
||||||
powershell Expand-Archive -Path "./temp/mitmproxy-8.0.0-windows.zip" -DestinationPath "./ext/" -Force
|
powershell Expand-Archive -Path "./temp/mitmproxy-8.0.0-windows.zip" -DestinationPath "./ext/" -Force
|
||||||
|
|
||||||
echo Done! You can now open
|
del /s /q "./temp"
|
||||||
|
|
||||||
|
echo Done! You can now open GrassClipper.exe!
|
@ -71,8 +71,9 @@ async function setGenshinImpactFolder() {
|
|||||||
config.genshinImpactFolder = folder
|
config.genshinImpactFolder = folder
|
||||||
Neutralino.storage.setData('config', JSON.stringify(config))
|
Neutralino.storage.setData('config', JSON.stringify(config))
|
||||||
|
|
||||||
// Refresh background
|
// Refresh background and path
|
||||||
setBackgroundImage()
|
setBackgroundImage()
|
||||||
|
displayGenshinFolder()
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getGenshinExecName() {
|
async function getGenshinExecName() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user