Skip to content

Commit ddc9cc2

Browse files
gemini133crazywhalecc
authored andcommitted
Fix cli generator: prefer-pre-built belongs to download-options rather than build-options
1 parent 38ec03f commit ddc9cc2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/.vitepress/components/CliGenerator.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,11 @@ const craftCommandString = computed(() => {
379379
str += 'debug: true\n';
380380
}
381381
382+
if (preBuilt.value) {
383+
str += 'download-options:\n';
384+
str += ' prefer-pre-built: true\n';
385+
}
386+
382387
str += '{{position_hold}}';
383388
384389
if (enableUPX.value) {
@@ -387,9 +392,6 @@ const craftCommandString = computed(() => {
387392
if (zts.value) {
388393
str += ' enable-zts: true\n';
389394
}
390-
if (preBuilt.value) {
391-
str += ' prefer-pre-built: true\n';
392-
}
393395
394396
if (!str.endsWith('{{position_hold}}')) {
395397
str = str.replace('{{position_hold}}', 'build-options:\n');

0 commit comments

Comments
 (0)