Skip to content
This repository has been archived by the owner on Jul 5, 2022. It is now read-only.

Commit

Permalink
misc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SpikeHD committed Apr 20, 2022
1 parent b018da2 commit 183aca8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ node_modules/
bin/
dist/
ext/
temp/
resources/js/neutralino.js
resources/bg

Expand Down
17 changes: 7 additions & 10 deletions install.cmd
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
@echo off

:: Ensure we are elevated for certs
>nul 2>&1 reg query "HKU\S-1-5-19" || (
echo Currently running with non Administrator privileges, raising...
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
>nul 2>&1 certutil -addstore root %USERPROFILE%\.mitmproxy\mitmproxy-ca-cert.cer || (
echo Currently running with non Administrator privileges, run as Administrator to install the certificate.
)

certutil -addstore root %USERPROFILE%\.mitmproxy\mitmproxy-ca-cert.cer

echo Downloading proxy server...

if not exist "./ext" mkdir "ext"
Expand All @@ -20,7 +13,11 @@ if not exist "./temp" mkdir "temp"
:: 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"

echo Extracting...

:: Extract from temp/ to ext/ with powershell
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!
3 changes: 2 additions & 1 deletion resources/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ async function setGenshinImpactFolder() {
config.genshinImpactFolder = folder
Neutralino.storage.setData('config', JSON.stringify(config))

// Refresh background
// Refresh background and path
setBackgroundImage()
displayGenshinFolder()
}

async function getGenshinExecName() {
Expand Down

0 comments on commit 183aca8

Please sign in to comment.