mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-02 14:25:41 +08:00
Fix cli generator: prefer-pre-built belongs to download-options rather than build-options
This commit is contained in:
@@ -379,6 +379,11 @@ const craftCommandString = computed(() => {
|
||||
str += 'debug: true\n';
|
||||
}
|
||||
|
||||
if (preBuilt.value) {
|
||||
str += 'download-options:\n';
|
||||
str += ' prefer-pre-built: true\n';
|
||||
}
|
||||
|
||||
str += '{{position_hold}}';
|
||||
|
||||
if (enableUPX.value) {
|
||||
@@ -387,9 +392,6 @@ const craftCommandString = computed(() => {
|
||||
if (zts.value) {
|
||||
str += ' enable-zts: true\n';
|
||||
}
|
||||
if (preBuilt.value) {
|
||||
str += ' prefer-pre-built: true\n';
|
||||
}
|
||||
|
||||
if (!str.endsWith('{{position_hold}}')) {
|
||||
str = str.replace('{{position_hold}}', 'build-options:\n');
|
||||
|
||||
Reference in New Issue
Block a user