change with-micro-ext-test to without

This commit is contained in:
crazywhalecc
2024-01-29 10:04:21 +08:00
committed by Jerry Ma
parent 9ee7d7769a
commit 0b1a321615
4 changed files with 14 additions and 7 deletions

View File

@@ -261,7 +261,7 @@ class WindowsBuilder extends BuilderBase
file_put_contents(
SOURCE_PATH . '\hello.exe',
file_get_contents(BUILD_ROOT_PATH . '\bin\micro.sfx') .
($this->getOption('with-micro-ext-test') ? $this->generateMicroExtTests() : '<?php echo "[micro-test-start][micro-test-end]";')
($this->getOption('without-micro-ext-test') ? '<?php echo "[micro-test-start][micro-test-end]";' : $this->generateMicroExtTests())
);
chmod(SOURCE_PATH . '\hello.exe', 0755);
[$ret, $output2] = cmd()->execWithResult(SOURCE_PATH . '\hello.exe');