-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from Borisskin/feature/details
Примеры, инфо метаданных, файл версии, пробелы
- Loading branch information
Showing
20 changed files
with
675 additions
and
555 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{1, | ||
{ | ||
{1,2, | ||
{"en","Фирма ""1С"""}, | ||
{"ru","Фирма ""1С"""} | ||
}, | ||
{1,2, | ||
{"en","ЗарплатаИУправлениеПерсоналом"}, | ||
{"ru","ЗарплатаИУправлениеПерсоналом"} | ||
}, | ||
{#base64:} | ||
}, | ||
{1, | ||
{1,0,"ЗарплатаИУправлениеПерсоналомКОРП","Фирма ""1С""","%ВерсияМетаданных%","1c\HRM\%НомерСборки%", | ||
{ | ||
{"/", | ||
{1, | ||
{a81674e9-32f0-4ea6-aeae-799e6ab4a48b,"1Cv8.cf - Файл конфигурации",1,00000000-0000-0000-0000-000000000000,"1c\HRM","",124fa494-1559-4495-b896-3f2415d3474c,"1Cv8.cf",1,0,0,1} | ||
}, | ||
{0}, | ||
{0} | ||
} | ||
} | ||
} | ||
}, | ||
{1,124fa494-1559-4495-b896-3f2415d3474c,"CheckoutDir",0,"V8BuildRoot"}, | ||
{1,"Полный",0, | ||
{0},00000000-0000-0000-0000-000000000000,"",00000000-0000-0000-0000-000000000000,""}, | ||
{0} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
:: %1 - Номер версии в хранилище | ||
:: %2 - Наименование направления БД в репозитории (bp, zup) | ||
:: %3 - Название компании, чей репозиторий, если он не общий (someone, anyone) | ||
|
||
@echo off | ||
@chcp 65001>nul | ||
|
||
:: Установка имен для: каталога хранилища, файла манифеста и каталога создания дистрибутива | ||
@set db_name=%3_%2 | ||
@if [%3] == [] (@set db_name=%2) | ||
|
||
|
||
:: Адрес БД | ||
@set DataBase=/SApp1C\container_%2 | ||
:: Авторизация в БД (эти же данные использую для доступа в хранилище) | ||
@set User=AdminUser | ||
@set Pass=AdminPass | ||
|
||
@echo. | ||
@echo 1. Установка настроек доступа к БД | ||
@call packman set-database %DataBase% -db-user %User% -db-pwd %Pass% | ||
|
||
|
||
:: Версия 1С для запуска | ||
@set v8Ver="-v8version 8.3.21.1302" | ||
:: Адрес хранилища | ||
@set RepoUrl=tcp://localhost/%db_name% | ||
:: Файл для записи доп. информации (версия хранилища, коммит) | ||
@set versionfile=.\%db_name%.vers | ||
|
||
@echo. | ||
@echo 2. Загрузка конфигурации из хранилища | ||
@call packman load-storage %RepoUrl% -storage-user %User% -storage-pwd %Pass% %v8Ver% -storage-v %1 -details %versionfile% | ||
|
||
|
||
@echo. | ||
@echo 3. Снятие с поддержки конфигурации в БД | ||
@call packman drop-support %v8Ver% | ||
|
||
|
||
@echo. | ||
@echo 4. Создание файла поставки | ||
@call packman make-cf %v8Ver% | ||
|
||
|
||
:: Файл ранее созданного манифеста с помощью обработки из каталога библиотеки ./tools/ПомощникСозданияМанифестаПоставки.epf | ||
@set FileEdf=./%db_name%.edf | ||
:: Каталог для сохранения файлов поставки дистрибутива | ||
@set DistFile=./file_%db_name% | ||
:: Использование файла с версией хранилища (-prop-files) может быть заменено установкой переменной | ||
::@set VPACKMAN_BUILDVARS=НомерВерсииХранилища=%1 | ||
|
||
@echo. | ||
@echo 5. Создание дистрибутива в виде файлов | ||
@call packman make-dist %FileEdf% -out %DistFile% -files %v8Ver% -prop-files %versionfile% | ||
|
||
:: Подсчет hash-суммы файла | ||
@FORFILES /P %DistFile% /S /M *.cf /C "cmd /c CertUtil -hashfile @file MD5 > @file.md5" | ||
|
||
|
||
:: Каталог для сохранения файлов setup дистрибутива | ||
::@set DistSetup=./setup_%db_name% | ||
|
||
::@echo. | ||
::@echo Создание дистрибутива в виде установочного файла | ||
::@call packman make-dist %FileEdf% -out %DistSetup% -setup %v8Ver% | ||
|
||
|
||
:: Каталог для сохранения архива с файлами поставки дистрибутива | ||
@set DistZip=./zip_%db_name% | ||
|
||
@echo. | ||
@echo 6. Создание архива дистрибутива | ||
@call packman zip-dist -in %DistFile% -out %DistZip% |
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
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
Oops, something went wrong.