mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-17 20:34:51 +08:00
Fix cli generator: prefer-pre-built belongs to download-options rather than build-options
This commit is contained in:
parent
38ec03fe30
commit
ddc9cc2237
@ -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');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user