text
stringlengths 0
834k
|
|---|
if not %vcvars% == ""none"" (
|
:: Set this variable to keep VS2017 < 15.5 from changing the current working directory.
|
set ""VSCMD_START_DIR=%CD%""
|
call %vcvars%
|
)
|
echo PATH:
|
echo %PATH%
|
:: Remove the first argument and execute the command.
|
for /f ""tokens=1,* delims= "" %%a in (""%*"") do set ALL_BUT_FIRST=%%b
|
echo command:
|
echo %ALL_BUT_FIRST%
|
%ALL_BUT_FIRST%
|
:end
|
endlocal & set RC=%ERRORLEVEL%
|
goto omega
|
:returncode
|
exit /B %RC%
|
:omega
|
call :returncode %RC%
|
",25.1857142857,91,0.689733409
|
219948,f3316c52491c73aa8395514c47c2440e5cf33997,1376,cmd,Batchfile,pytorch/pytorch-native/build.cmd,uniquetrij/djl,d45ba607145564ea5065f3add07f53e96ff5ed0f,['Apache-2.0'],,,,pytorch/pytorch-native/build.cmd,uniquetrij/djl,d45ba607145564ea5065f3add07f53e96ff5ed0f,['Apache-2.0'],,,,pytorch/pytorch-native/build.cmd,uniquetrij/djl,d45ba607145564ea5065f3add07f53e96ff5ed0f,['Apache-2.0'],,,,"@ECHO OFF
|
@rem https://chocolatey.org/docs/installation#install-with-cmdexe
|
@rem to install cmake java etc..
|
@rem choco install cmake.install --installargs '""ADD_CMAKE_TO_PATH=User""' -y
|
@rem choco install jdk8 -y
|
set FILEPATH=""libtorch""
|
set VERSION=""1.6.0""
|
if ""%1"" == ""cpu"" (
|
set DOWNLOAD_URL=""https://download.pytorch.org/libtorch/cpu/libtorch-win-shared-with-deps-%VERSION%%%2Bcpu.zip""
|
) else if ""%1"" == ""cu101"" (
|
set DOWNLOAD_URL=""https://download.pytorch.org/libtorch/cu101/libtorch-win-shared-with-deps-%VERSION%%%2Bcu101.zip""
|
) else if ""%1"" == ""cu102"" (
|
set DOWNLOAD_URL=""https://download.pytorch.org/libtorch/cu102/libtorch-win-shared-with-deps-%VERSION%.zip""
|
)
|
if exist %FILEPATH% (
|
echo Found %FILEPATH%
|
) else (
|
echo Couldn't find %FILEPATH%, downloading it ...
|
echo Downloading from: %DOWNLOAD_URL%
|
powershell -Command ""(New-Object Net.WebClient).DownloadFile('%DOWNLOAD_URL%', '%cd%\libtorch.zip')""
|
powershell -Command ""Expand-Archive -LiteralPath libtorch.zip -DestinationPath %cd%""
|
del /f libtorch.zip
|
echo Finished downloading libtorch
|
)
|
if exist build rd /q /s build
|
md build\classes
|
cd build
|
javac -sourcepath ..\..\pytorch-engine\src\main\java\ ..\..\pytorch-engine\src\main\java\ai\djl\pytorch\jni\PyTorchLibrary.java -h include -d classes
|
cmake -DCMAKE_PREFIX_PATH=libtorch ..
|
cmake --build . --config Release
|
",39.3142857143,149,0.7238372093
|
219949,f3318148af2e3b5864c2421d837272370d8f22ee,255,bat,Batchfile,Scripts/Tools/admin/WindowsServices/Photoshop/disable_photoshop_flex_svc.bat,andry81/contools,54d644f42c051f63c592e08515d5965430614664,['MIT'],6.0,2017-12-13T06:10:40.000Z,2021-12-29T02:36:51.000Z,Scripts/Tools/admin/WindowsServices/Photoshop/disable_photoshop_flex_svc.bat,andry81/contools,54d644f42c051f63c592e08515d5965430614664,['MIT'],,,,Scripts/Tools/admin/WindowsServices/Photoshop/disable_photoshop_flex_svc.bat,andry81/contools,54d644f42c051f63c592e08515d5965430614664,['MIT'],,,,"@echo off
|
setlocal
|
rem Photoshop x86
|
sc stop ""FLEXnet Licensing Service""
|
sc config ""FLEXnet Licensing Service"" start= disabled
|
rem Photoshop x64
|
sc stop ""FLEXnet Licensing Service 64""
|
sc config ""FLEXnet Licensing Service 64"" start= disabled
|
",21.25,57,0.7647058824
|
219950,f331bd1b40ff0e37b54d87622def1e811bb37f43,128,cmd,Batchfile,winstall/_7zip_adobereader_chrome.cmd,nyurch/postinstall,8331e1ae5bb28ca43e1ca331ae64c4c4f807599f,['MIT'],,,,winstall/_7zip_adobereader_chrome.cmd,nyurch/postinstall,8331e1ae5bb28ca43e1ca331ae64c4c4f807599f,['MIT'],,,,winstall/_7zip_adobereader_chrome.cmd,nyurch/postinstall,8331e1ae5bb28ca43e1ca331ae64c4c4f807599f,['MIT'],,,,winget install --id=Google.Chrome -e && winget install --id=Adobe.AdobeAcrobatReaderDC -e && winget install --id=7zip.7zip -e,128.0,128,0.7265625
|
219951,f331cea692c75daa62bd784483e66bc4546eed26,7479,bat,Batchfile,makelibs.bat,NebulaSleuth/MonoGame.XamarinForms,b960bd0e40288b750cead926996a17197d98a123,['MIT'],,,,makelibs.bat,NebulaSleuth/MonoGame.XamarinForms,b960bd0e40288b750cead926996a17197d98a123,['MIT'],,,,makelibs.bat,NebulaSleuth/MonoGame.XamarinForms,b960bd0e40288b750cead926996a17197d98a123,['MIT'],,,,"@echo off
|
IF NOT exist outputlibs mkdir outputlibs
|
IF NOT exist outputlibs\Release mkdir outputlibs\Release
|
IF NOT exist outputlibs\Release\Android mkdir outputlibs\Release\Android
|
IF NOT exist outputlibs\Release\AndroidForms mkdir outputlibs\Release\AndroidForms
|
IF NOT exist outputlibs\Release\GTK mkdir outputlibs\Release\GTK
|
IF NOT exist outputlibs\Release\iOS mkdir outputlibs\Release\iOS
|
IF NOT exist outputlibs\Release\iOSForms mkdir outputlibs\Release\iOSForms
|
IF NOT exist outputlibs\Release\Portable mkdir outputlibs\Release\Portable
|
IF NOT exist outputlibs\Release\UWP mkdir outputlibs\Release\UWP
|
IF NOT exist outputlibs\Release\Windows mkdir outputlibs\Release\Windows
|
IF NOT exist outputlibs\Release\WindowsGL mkdir outputlibs\Release\WindowsGL
|
IF NOT exist outputlibs\Release\WPF mkdir outputlibs\Release\WPF
|
IF NOT exist outputlibs\Release\WPFForms mkdir outputlibs\Release\WPFForms
|
IF NOT exist outputlibs\Release\WPFFormsCore mkdir outputlibs\Release\WPFFormsCore
|
rem IF NOT exist outputlibs\ReleaseDeploy mkdir outputlibs\ReleaseDeploy
|
call clean.bat
|
nuget restore MonoGame.Framework\MonoGame.Framework.Android.csproj -SolutionDir .
|
msbuild MonoGame.Framework\MonoGame.Framework.Android.csproj /p:Configuration=Release /p:Platform=AnyCPU /t:Clean,Rebuild
|
if not %errorlevel% == 0 goto error
|
IF NOT exist outputlibs\Release\Android mkdir outputlibs\Release\Android
|
rem IF NOT exist outputlibs\ReleaseDeploy\Android mkdir outputlibs\ReleaseDeploy\Android
|
copy MonoGame.Framework\bin\Android\AnyCPU\Release\MonoGame.Framework.dll outputlibs\Release\Android /Y
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.