From d15f70fb03daccf459e1fc40c3e1fd6cee557670 Mon Sep 17 00:00:00 2001 From: Enrique Ponce De Leon Date: Wed, 30 Jul 2025 12:17:40 -0400 Subject: [PATCH] adding --no-build logic to installer --- composer.json | 2 +- src/DockerExecutorCSharpServiceProvider.php | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index d53bfdc..e12d4dd 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "processmaker/docker-executor-csharp", "friendly_name": "CSharp Docker Executor", "description": "CSharp script executor for processmaker 4", - "version": "1.0.2", + "version": "1.0.3", "minimum-stability": "dev", "autoload": { "psr-4": { diff --git a/src/DockerExecutorCSharpServiceProvider.php b/src/DockerExecutorCSharpServiceProvider.php index aaa71fa..d701467 100644 --- a/src/DockerExecutorCSharpServiceProvider.php +++ b/src/DockerExecutorCSharpServiceProvider.php @@ -11,7 +11,7 @@ class DockerExecutorCSharpServiceProvider extends ServiceProvider { use PluginServiceProviderTrait; - const version = '1.0.0'; // Required for PluginServiceProviderTrait + public const version = '1.0.3'; // Required for PluginServiceProviderTrait public function register() { @@ -27,7 +27,7 @@ public function register() */ public function boot() { - \Artisan::command('docker-executor-csharp:install', function () { + \Artisan::command('docker-executor-csharp:install {--no-build : Skip building the script executor image}', function () { $scriptExecutor = ScriptExecutor::install([ 'language' => 'csharp', 'title' => 'C# Executor', @@ -35,7 +35,10 @@ public function boot() ]); // Build the instance image. This is the same as if you were to build it from the admin UI - \Artisan::call('processmaker:build-script-executor csharp'); + // Skip building the image if the --no-build option is passed + if (!$this->option('no-build')) { + \Artisan::call('processmaker:build-script-executor csharp'); + } // Restart the workers so they know about the new supported language \Artisan::call('horizon:terminate');