text stringlengths 0 834k |
|---|
echo 1. Generates or overwrites the current config paths |
setlocal ENABLEDELAYEDEXPANSION |
set word=/ |
set js=%appdata%\..\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\ |
set assets=%appdata%\..\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\RoamingState |
set js=%js:\=!word!% |
set assets=%assets:\=!word!% |
@echo { > ""%~dp0config.json"" |
@echo ""settings_folder_path"":""%js%"", >> ""%~dp0config.json"" |
@echo ""asset_path"":""%assets%"", >> ""%~dp0config.json"" |
@echo ""questionColor"":""lightgray"", >> ""%~dp0config.json"" |
@echo ""errorColor"":""red"", >> ""%~dp0config.json"" |
@echo ""dialog_lines"":-1 >> ""%~dp0config.json"" |
@echo } >> ""%~dp0config.json"" |
echo. |
echo SUCCESS: Path was configured. |
echo. |
echo 2. Doing backup of current settings.json as settings.json.pre.wte.backup |
copy /y ""%js%settings.json"" ""%js%settings.json.pre.wte.backup"" |
echo. |
echo 3. Set wte as an environment variable |
echo $desired_entry = Get-Location;$old_path = [Environment]::GetEnvironmentVariable('path', 'machine');$old_path_entry_list = ($old_path).split("";"");$new_path_entry_list = new-object system.collections.arraylist;foreach($old_path_entry in $old_path_entry_list){if($old_path_entry -eq $desired_entry){}else{[void]$new_path_entry_list.Add($old_path_entry)}}[void]$new_path_entry_list.Add($desired_entry);$new_path = $new_path_entry_list -Join "";"";[Environment]::SetEnvironmentVariable('path', $new_path,'Machine');> ""%~dp0envSetup01.ps1"" |
powershell -command ""Start-Process PowerShell -Verb RunAs \""""-Command `\""""cd '%cd%'; & './envSetup01.ps1';`\""""\"""""" |
timeout /t 02 |
del ""envSetup01.ps1"" |
echo. |
::echo 4. Installing libraries |
::echo. |
::cmd /C ""npm install"" |
::echo SUCCESS: Libraries was installed. |
::echo. |
echo 4. Create batfile |
echo. |
echo ^@echo off ^& cmd /C ""cd %cd%\..\ & cargo run"" > ""wte.bat"" |
echo Complete! Restart your terminal and then type ""wte"" to run the application |
pause |
",39.8333333333,536,0.7243723849 |
22,d0028eac556efc277f4f3b185d36473cfb4ec3c3,460,bat,Batchfile,src/pack-release.bat,balazssimon/meta-cs,fb50fb2e99e7e537fb6ada4abe6f0eff6e3927d8,['Apache-2.0'],5.0,2016-02-21T15:57:06.000Z,2021-09-18T12:26:13.000Z,src/pack-release.bat,balazssimon/meta-cs,fb50fb2e99e7e537fb6ada4abe6f0eff6e3927d8,['Apache-2.0'],15.0,2015-05-10T20:39:22.000Z,2021-09-18T12:27:10.000Z,src/pack-release.bat,balazssimon/meta-cs,fb50fb2e99e7e537fb6ada4abe6f0eff6e3927d8,['Apache-2.0'],2.0,2015-10-17T15:00:02.000Z,2019-12-05T18:52:04.000Z,"dotnet build-server shutdown |
dotnet clean -c Release |
dotnet pack Main\MetaDslx.CodeAnalysis -c Release |
dotnet pack Main\MetaDslx.BuildTools -c Release |
dotnet pack Main\MetaDslx.BuildTasks -c Release |
rem dotnet build Main\MetaDslx.VisualStudio -c Release |
dotnet pack Languages\MetaDslx.Languages.Ecore -c Release |
dotnet pack Languages\MetaDslx.Languages.Mof -c Release |
dotnet pack Languages\MetaDslx.Languages.Uml-v2.5.1 -c Release |
dotnet build-server shutdown |
",41.8181818182,62,0.8347826087 |
23,d002b9a973c0019b0a3c439b539fb02ab5ac604d,1014,bat,Batchfile,public/vendor/fileinput/nuget/build.bat,AlexeySamsonofff/Airstudycenter.com,4feb1bcf550f9352c7e056284d34383d0f5fd617,['MIT'],2604.0,2018-07-15T20:19:42.000Z,2022-03-31T14:22:53.000Z,public/vendor/fileinput/nuget/build.bat,AlexeySamsonofff/Airstudycenter.com,4feb1bcf550f9352c7e056284d34383d0f5fd617,['MIT'],292.0,2018-08-03T01:57:23.000Z,2022-03-29T03:12:11.000Z,public/vendor/fileinput/nuget/build.bat,AlexeySamsonofff/Airstudycenter.com,4feb1bcf550f9352c7e056284d34383d0f5fd617,['MIT'],704.0,2018-08-02T07:40:00.000Z,2022-03-31T08:13:01.000Z,"@echo off |
NuGet Update -self |
REM remove package content folder |
rmdir /s /q content |
REM create new package content folder |
mkdir content |
REM create sub folder for js files |
mkdir content\Scripts |
REM create sub folders for css and img files |
mkdir content\Content |
mkdir content\Content\bootstrap-fileinput |
REM delete the previous package versions |
REM del bootstrap-fileinput.* |
REM copy the content to the destination folders |
xcopy ..\js content\Scripts /D /E /C /R /I /K /Y |
xcopy ..\css content\Content\bootstrap-fileinput\css /D /E /C /R /I /K /Y |
xcopy ..\img content\Content\bootstrap-fileinput\img /D /E /C /R /I /K /Y |
xcopy ..\themes content\Content\bootstrap-fileinput\themes /D /E /C /R /I /K /Y |
xcopy ..\scss content\Content\bootstrap-fileinput\scss /D /E /C /R /I /K /Y |
REM create a new package |
NuGet Pack Package.nuspec -Exclude NuGet.exe;build.bat |
REM Upload the new package |
REM for %%f in (content\Content\bootstrap-fileinput.*) do ( |
REM NuGet Push %%f |
REM rmdir /s /q content |
REM del %%f |
REM ) |
",28.1666666667,80,0.7426035503 |
24,d002cebb5a6a314405be5ac562599b9a94a4dfeb,998,bat,Batchfile,python/mailbox/venv/Scripts/activate.bat,GG-yuki/bugs,aabd576e9e57012a3390007af890b7c6ab6cdda8,['MIT'],,,,python/mailbox/venv/Scripts/activate.bat,GG-yuki/bugs,aabd576e9e57012a3390007af890b7c6ab6cdda8,['MIT'],,,,python/mailbox/venv/Scripts/activate.bat,GG-yuki/bugs,aabd576e9e57012a3390007af890b7c6ab6cdda8,['MIT'],,,,"@echo off |
rem This file is UTF-8 encoded, so we need to update the current code page while executing it |
for /f ""tokens=2 delims=:"" %%a in ('""%SystemRoot%\System32\chcp.com""') do ( |
set ""_OLD_CODEPAGE=%%a"" |
) |
if defined _OLD_CODEPAGE ( |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.