oscript-library / oscript-library/opm
Команда Build - Добавить встраивание `oscript_modules` в пакет
Nobody has claimed this yet.
- Dominant language
- 1C Enterprise
- Stars
- 85
- Forks
- 35
- Avg merge
- 1m
- Merged PRs (30d)
- 1
Description
Можно пересобрать пакет с зависимостями по примеру https://github.com/khorevaa/gitsync-plugins/releases там все зависимости упакованы вместе с пакетом в каталог oscript_modules и устанавливаются сначала из него потом уже интернет. Но это возможно столько на версиях opm 0.14+
@artbear Процедура сборки пакета
Процедура ПередСборкой(Знач РабочийКаталог) Экспорт
УдалитьФайлы(ОбъединитьПути(РабочийКаталог, "oscript_modules"), "*.*");
СистемнаяИнформация = Новый СистемнаяИнформация;
ЭтоWindows = Найти(НРег(СистемнаяИнформация.ВерсияОС), "windows") > 0;
Если ЭтоWindows Тогда
ИмяУтилиты = "opm.bat";
Иначе
ИмяУтилиты = "opm";
КонецЕсли;
СтрокаЗапуска = СтрШаблон("%1 install -l", ИмяУтилиты);
Процесс = СоздатьПроцесс(СтрокаЗапуска, РабочийКаталог);
Процесс.Запустить();
Процесс.ОжидатьЗавершения();
Если Процесс.КодВозврата <> 0 Тогда
ВызватьИсключение "Ошибка сборки пакета";
КонецЕсли;
КонецПроцедуры
@artbear @nixel2007 Вообще эту функциональность надо запилить в команду build -) Дойдут руки сделаю
@khorevaa ну и включить в сборку, верно?
.ВключитьФайл("oscript_modules")
Источник https://gitter.im/EvilBeaver/oscript-library?at=5b616f2695988830b0919e88
@khorevaa @nixel2007 @EvilBeaver
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the build command and its package assembly hook, then compare its behavior with the provided ПередСборкой procedure and the gitsync-plugins release example. Check how opm 0.14+ installs dependencies locally, ensure oscript_modules is included in the package, and verify that local dependencies are preferred before the internet.
Written by the indexing model from the issue text.
Assessment
- Domain
- build-system, cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100