Added set-version logic && Fixed CustomScriptService to handle arguments

This commit is contained in:
2022-05-25 16:43:28 +02:00
parent 539ed13be4
commit a66ce96dbf
10 changed files with 117 additions and 10 deletions

View File

@@ -35,7 +35,15 @@ class CustomScriptService(CommandABC):
if script != cmd:
continue
command = self._workspace.scripts[script]
command = ''
external_args = self._config.get_configuration('ARGS')
if external_args is not None:
command += f'ARGS="{external_args}";'
command += self._workspace.scripts[script]
env_vars = os.environ
env_vars['CPL_ARGS'] = " ".join(args)
try:
subprocess.run(command, shell=True if os.name == 'posix' else None)
except Exception as e:

View File

@@ -4,7 +4,7 @@
"Version": {
"Major": "2022",
"Minor": "6",
"Micro": "15.dev1"
"Micro": "15"
},
"Author": "Sven Heidemann",
"AuthorEmail": "sven.heidemann@sh-edraft.de",

View File

@@ -4,7 +4,7 @@
"Version": {
"Major": "2022",
"Minor": "6",
"Micro": "15.dev1"
"Micro": "15"
},
"Author": "Sven Heidemann",
"AuthorEmail": "sven.heidemann@sh-edraft.de",

View File

@@ -4,7 +4,7 @@
"Version": {
"Major": "2022",
"Minor": "6",
"Micro": "15.dev1"
"Micro": "15"
},
"Author": "Sven Heidemann",
"AuthorEmail": "sven.heidemann@sh-edraft.de",