Вверх ↑
Главный модератор
Ответов: 2696
Рейтинг: 354
#1: 2018-03-13 11:04:49 ЛС | профиль | цитата
  Опубликовано обновление программы. Исправлена ошибка установки пакета в различные локализации программы.
Пример скрипта установки пакета CNET:
CNET pack install script

function run(){
var local = sys.getlocal();
sys.setlocal("ru");

sys.addpack ( "CNET", "C#.NET", "Создание приложений для среды .NET", "hws" );
sys.addproject("CNET","EntryPoint","Приложение Windows Forms","Проект для создания приложений с пользовательским интерфейсом Windows Forms","exe","make_cnet.dll");
sys.addproject("CNET","Console","Консольное приложение","Проект для создания приложений командной строки","exe","make_cnet.dll");
sys.addproject("CNET","DLL","Библиотека классов","Проект для создания библиотеки классов C# (.dll)","dll","make_cnet.dll");
sys.addproject("CNET","Service","Служба Windows","Проект для создания службы Windows","exe","make_cnet.dll");
sys.addproject("CNET","Class","Пользовательский класс","Проект для создания классов C# (.cs)","cs","make_cnet.dll");
sys.addproject("CNET","GTK","Приложение GTK+","Проект для создания приложений с пользовательским интерфейсом GTK+","exe","make_cnet.dll");

sys.setlocal("en");

sys.addpack("CNET","C# .NET","Creation .NET Framework application","hws");
sys.addproject("CNET","EntryPoint","Windows Forms Application","A project for creating an application with a Windows Forms user interface","exe","make_cnet.dll");
sys.addproject("CNET","Console","Console application","A project for creating a command-line application","exe","make_cnet.dll");
sys.addproject("CNET","DLL","Library","A project for creating a C# class library (.dll)","dll","make_cnet.dll");
sys.addproject("CNET","Service","WindowsService","A project for creating a service","exe","make_cnet.dll");
sys.addproject("CNET","Class","Custom Class","A project for creating a custom class (.cs)","cs","make_cnet.dll");
sys.addproject("CNET","GTK","GTK+ Application","A project for creating an application with a GTK+ user interface","exe","make_cnet.dll");

sys.setlocal(local.ToString());

sys.addcompiler("cnet","\"%windir%\\Microsoft.NET\\Framework\\v4.0.30319\" \"%fname%\" verbosity=Quiet","compiler\\cnet\\CNETBuilder.exe","csproj");
sys.addcompiler("MSBuild"," \"%fname%\" /v:m","%windir%\\Microsoft.NET\\Framework\\v4.0.30319\\msbuild.exe","csproj");

sys.setcompiler("CNET","MSBuild");
sys.setcompiler("CNET","cnet");
sys.activatecompiler("CNET","cnet");
}
карма: 8
Дорогу осилит идущий. HiAsm.NET is based on HiAsm 5
0
Редактировалось 2 раз(а), последний 2018-03-16 12:08:00