Skip to content

Commit

Permalink
Update NAM-Runner.bat
Browse files Browse the repository at this point in the history
fix: add script path for run as admin
  • Loading branch information
smallbutfine authored Jun 14, 2023
1 parent 3e4f1fc commit 378b4ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions NAM-Runner.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
@echo off
set NAMNAME=neural-amp-modeler-0.6.0
set NAMVER=0.6.0
if exist %NAMNAME%\installed.txt (
if exist %~dp0\%NAMNAME%\installed.txt (
echo NAM already installed!
GOTO NAMISINSTALLED
)
Expand All @@ -18,13 +18,13 @@ echo DON'T CLOSE THIS WINDOW UNTIL YOU ARE ASKED TO DO IT.
echo.
echo Downloading and extracting Python archive...
curl -L https://github.com/winpython/winpython/releases/download/6.1.20230527/Winpython64-3.10.11.1dot.exe -o python.exe
if exist %NAMNAME% rmdir /q %NAMNAME%
if exist %~dp0\%NAMNAME% rmdir /q %~dp0\%NAMNAME%
python.exe -y
call %~dp0\WPy64-310111\scripts\make_winpython_movable.bat
move /Y "%~dp0\WPy64-310111\python-3.10.11.amd64" "%NAMNAME%"
echo Removing Python archive and unused files...
del /f /s /q WPy64-310111 1>nul
rmdir /s /q WPy64-310111
del /f /s /q %~dp0\WPy64-310111 1>nul
rmdir /s /q %~dp0\WPy64-310111
del python.exe
echo Done.
cd %NAMNAME%
Expand Down

0 comments on commit 378b4ad

Please sign in to comment.