Compare commits

..

5 Commits
pre1 ... master

Author SHA1 Message Date
rabix 0c4bd51b1a 更新 'bin/ghci.cmd' 2022-03-22 17:42:13 +08:00
rabix 3d070cc73a modifications 2022-03-08 23:31:33 +08:00
rabix 20348ce8d5 minor fix 2022-03-06 15:14:04 +08:00
rabix 344924b8dc gitme.cmd 2022-03-05 14:34:28 +08:00
rabix 0ed6ba34b3 add gitme and git 2022-03-05 14:25:10 +08:00
10 changed files with 35 additions and 9 deletions

View File

@ -1,5 +1,7 @@
@echo off
where choco.exe >nul 2>nul
if errorlevel 1 powershell -c "Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1').Replace('if (Test-ChocolateyInstalled)', 'if ($false)'))"
call v-choco-refreshenv
if errorlevel 1 (
powershell -c "Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1').Replace('if (Test-ChocolateyInstalled)', 'if ($false)'))"
call v-choco-refreshenv
)
choco.exe %*

7
bin/ensure-choco.cmd Normal file
View File

@ -0,0 +1,7 @@
@echo off
setlocal
REM ensure-choco command-name choco-package-name args
where %1 2>nul >nul
if errorlevel 1 (call choco install %2 -y & call v-choco-refreshenv)
set _name_=%1
call %_name_% %3 %4 %5 %6 %7 %8 %9

7
bin/ensure-scoop.cmd Normal file
View File

@ -0,0 +1,7 @@
@echo off
setlocal
REM ensure-scoop command-name choco-package-name args
where %1 2>nul >nul
if errorlevel 1 (call scoop install %2 & call v-choco-refreshenv)
set _name_=%1
call %_name_% %3 %4 %5 %6 %7 %8 %9

View File

@ -1,4 +1,4 @@
@echo off
where ghci.exe >nul 2>nul
if errorlevel 1 call v-choco install ghc -y & call %~dp0\v-choco-refreshenv
@echo off
where ghci.exe >nul 2>nul
if errorlevel 1 call choco install ghc -y & call %~dp0\v-choco-refreshenv
ghci.exe %*

4
bin/git.cmd Normal file
View File

@ -0,0 +1,4 @@
@echo off
where git.exe 2>nul >nul
if errorlevel 1 call choco install git & call %~dp0\v-choco-refreshenv
git.exe %*

8
bin/gitme.cmd Normal file
View File

@ -0,0 +1,8 @@
@echo off
setlocal
if "%1"=="" (
echo gitme username/reponame [TARGET]
exit /b
)
for %%A in (. %2) do set target=%%A
git clone https://gitme.fun/%1 %target% && pushd %target% & if exist vid-init-module.cmd call vid-init-module.cmd & popd

BIN
readme.pdf Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,4 +0,0 @@
@echo off
set VID_HOME=%~dp0
set PATH=%~dp0\bin;%PATH%
cmd /k

2
vid.cmd Normal file
View File

@ -0,0 +1,2 @@
@echo off
cmd /k %~dp0env.cmd