Skip to content

Commit de8fc9f

Browse files
authored
Merge pull request #647 from jaimergp/fix-deprecation-windows
Use powershell + WScript
2 parents 216bbc2 + c58b1ff commit de8fc9f

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Miniforge3/mambaforge_deprecation.bat

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
@ECHO OFF
2+
set "title=Mambaforge is now deprecated!"
3+
set "message=Mambaforge is now deprecated! Future Miniforge releases will NOT build Mambaforge installers. We advise you switch to Miniforge at your earliest convenience. More details at https://conda-forge.org/news/2024/07/29/sunsetting-mambaforge/. If you require Mambaforge, you may pin your installer to one found in https://github.com/conda-forge/miniforge/releases/tag/24.7.1-0"
14
if "%GITHUB_ACTIONS%"=="true" (
2-
echo ::warning title=Mambaforge is now deprecated!::Future Miniforge releases will NOT build Mambaforge installers. We advise you switch to Miniforge at your earliest convenience. More details at https://conda-forge.org/news/2024/07/29/sunsetting-mambaforge/. If you require mambaforge, you may pin your installer to one found from https://github.com/conda-forge/miniforge/releases/tag/24.7.1-0
3-
)
4-
else (
5-
msg "%sessionname%" Mambaforge is now deprecated! Future Miniforge releases will NOT build Mambaforge installers. We advise you switch to Miniforge at your earliest convenience. More details at https://conda-forge.org/news/2024/07/29/sunsetting-mambaforge/. If you require mambaforge, you may pin your installer to one found from https://github.com/conda-forge/miniforge/releases/tag/24.7.1-0
5+
echo ::warning title=%title%::%message%
6+
) else (
7+
powershell "(New-Object -ComObject Wscript.Shell).Popup('%message%',0,'%title%',0x30)" >NUL
68
)
79

810
for /f "delims=" %%# in ('powershell get-date -format "{yyyy-MM-dd}"') do @set _date=%%#
@@ -22,4 +24,4 @@ if "%_date%"=="2024-12-31" exit 1
2224
if "%_date:~0,4%"=="2025" exit 1
2325

2426
echo Sleeping for 30s...
25-
powershell -nop -c "& {sleep 30}"
27+
powershell -c "& {sleep 30}"

0 commit comments

Comments
 (0)