-
-
Save ivan-kovtun/f3ceb15ca52d98b20b404208c01d92f4 to your computer and use it in GitHub Desktop.
BSL Build cf from EDT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
SETLOCAL | |
set LOGFILE=%temp%\%random%.log | |
if exist %LOGFILE% ( | |
del /f /s /q %LOGFILE% > nul | |
) | |
"C:\Program Files\1cv8\current\bin\1cv8" %* /Out %LOGFILE% | |
set RESULT=%ERRORLEVEL% | |
echo ExitCode=%RESULT% | |
powershell -Command Get-Content %LOGFILE% | |
if exist %LOGFILE% ( | |
del /f /s /q %LOGFILE% > nul | |
) | |
exit /b %RESULT% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set CI_PROJECT_DIR=%~dp0/../ | |
set PRJ=%CI_PROJECT_DIR%/EDT_PROJECT_DIR | |
set WP=%CI_PROJECT_DIR%/bin/w | |
set XML=%CI_PROJECT_DIR%/bin/xml | |
set IB=File="%CI_PROJECT_DIR%/bin/db" | |
set CF=%CI_PROJECT_DIR%/bin/1cv8.cf | |
call ring edt workspace export --workspace-location %WP% --project %PRJ% --configuration-files %XML% | |
pushd %~dp0 | |
call 1cv8 CREATEINFOBASE %IB% | |
call 1cv8 DESIGNER /WA- /DisableStartupDialogs /IBConnectionString %IB% /LoadConfigFromFiles %XML% /UpdateDBCfg | |
call 1cv8 DESIGNER /WA- /DisableStartupDialogs /IBConnectionString %IB% /CreateDistributionFiles -cffile %CF% | |
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
if /%1 == / goto help | |
pushd "C:\Program Files\1cv8" | |
if exist current\ rmdir current | |
mklink /j current %1 | |
popd | |
goto end | |
:help | |
echo set-current-version - Makes symbolic links pointing to current 1C-Enterprise version's folders | |
echo Parameter: 1C-Enterprise version number | |
echo Example: set-current-version 8.3.5.1248 | |
:end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment