You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for /f "delims=" %%i in ('powershell -Command "try { (Invoke-RestMethod 'https://api.github.com/repos/%REPO%/releases/latest').tag_name } catch { '' }" 2^>nul') do set "VERSION=%%i"
29
+
30
+
if "%VERSION%"=="" (
31
+
echo %ERROR_PREFIX% Failed to fetch latest version from GitHub API
32
+
echo %ERROR_PREFIX% Please check your internet connection and try again
33
+
goto :error_exit
34
+
)
35
+
25
36
echo %INFO_PREFIX% Installing Andromeda %VERSION% for Windows...
26
37
27
38
REM Construct download URL
@@ -112,8 +123,8 @@ echo.
112
123
echo Options:
113
124
echo --help, -h, /? Show this help message
114
125
echo.
115
-
echo This script will download the Andromeda binary from the GitHub release
116
-
echo and install it to %%USERPROFILE%%\\.local\\bin
126
+
echo This script will automatically fetch the latest Andromeda release
127
+
echo from GitHub and install it to %%USERPROFILE%%\\.local\\bin
117
128
echo.
118
129
echo The script will automatically add the install directory to your PATH.
0 commit comments