Skip to content
This repository was archived by the owner on Jul 1, 2024. It is now read-only.

Commit d98232e

Browse files
committed
add upx download command
1 parent 7625aeb commit d98232e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/.vitepress/components/CliGenerator.vue

+9
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@
122122
<b>{{ I18N[lang].downloadAllCommand }}</b>
123123
<div class="command-preview">{{ spcCommand }} download --all --with-php={{ selectedPhpVersion }}{{ debug ? ' --debug' : '' }}</div>
124124
</div>
125+
<div class="command-container" v-if="enableUPX">
126+
<b>{{ I18N[lang].downloadUPXCommand }}</b>
127+
<div class="command-preview">{{ spcCommand }} install-pkg upx{{ debug ? ' --debug' : '' }}</div>
128+
</div>
125129
<div class="command-container">
126130
<b>{{ I18N[lang].compileCommand }}</b>
127131
<div class="command-preview">{{ spcCommand }} build {{ buildCommand }} "{{ extList }}"{{ additionalLibs }}{{ debug ? ' --debug' : '' }}{{ zts ? ' --enable-zts' : '' }}{{ enableUPX ? ' --with-upx-pack' : '' }}{{ displayINI }}</div>
@@ -187,6 +191,7 @@ const I18N = {
187191
resultShowDownload: '是否展示仅下载对应扩展依赖的命令',
188192
downloadExtOnlyCommand: '只下载对应扩展的依赖包命令',
189193
downloadAllCommand: '下载所有依赖包命令',
194+
downloadUPXCommand: '下载 UPX 命令',
190195
compileCommand: '编译命令',
191196
downloadPhpVersion: '下载 PHP 版本',
192197
downloadSPCBinaryCommand: '下载 spc 二进制命令',
@@ -219,6 +224,7 @@ const I18N = {
219224
resultShowDownload: 'Download with corresponding extension dependencies',
220225
downloadExtOnlyCommand: 'Download sources by extensions command',
221226
downloadAllCommand: 'Download all sources command',
227+
downloadUPXCommand: 'Download UPX command',
222228
compileCommand: 'Compile command',
223229
downloadPhpVersion: 'Download PHP version',
224230
downloadSPCBinaryCommand: 'Download spc binary command',
@@ -448,6 +454,9 @@ const calculateExtLibDepends = (input) => {
448454
// change os, clear ext
449455
watch(selectedSystem, () => checkedExts.value = []);
450456
457+
// change os, reset upx
458+
watch(selectedSystem, () => enableUPX.value = 0);
459+
451460
// selected ext change, calculate deps
452461
watch(
453462
checkedExts,

0 commit comments

Comments
 (0)