|
122 | 122 | <b>{{ I18N[lang].downloadAllCommand }}</b>
|
123 | 123 | <div class="command-preview">{{ spcCommand }} download --all --with-php={{ selectedPhpVersion }}{{ debug ? ' --debug' : '' }}</div>
|
124 | 124 | </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> |
125 | 129 | <div class="command-container">
|
126 | 130 | <b>{{ I18N[lang].compileCommand }}</b>
|
127 | 131 | <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 = {
|
187 | 191 | resultShowDownload: '是否展示仅下载对应扩展依赖的命令',
|
188 | 192 | downloadExtOnlyCommand: '只下载对应扩展的依赖包命令',
|
189 | 193 | downloadAllCommand: '下载所有依赖包命令',
|
| 194 | + downloadUPXCommand: '下载 UPX 命令', |
190 | 195 | compileCommand: '编译命令',
|
191 | 196 | downloadPhpVersion: '下载 PHP 版本',
|
192 | 197 | downloadSPCBinaryCommand: '下载 spc 二进制命令',
|
@@ -219,6 +224,7 @@ const I18N = {
|
219 | 224 | resultShowDownload: 'Download with corresponding extension dependencies',
|
220 | 225 | downloadExtOnlyCommand: 'Download sources by extensions command',
|
221 | 226 | downloadAllCommand: 'Download all sources command',
|
| 227 | + downloadUPXCommand: 'Download UPX command', |
222 | 228 | compileCommand: 'Compile command',
|
223 | 229 | downloadPhpVersion: 'Download PHP version',
|
224 | 230 | downloadSPCBinaryCommand: 'Download spc binary command',
|
@@ -448,6 +454,9 @@ const calculateExtLibDepends = (input) => {
|
448 | 454 | // change os, clear ext
|
449 | 455 | watch(selectedSystem, () => checkedExts.value = []);
|
450 | 456 |
|
| 457 | +// change os, reset upx |
| 458 | +watch(selectedSystem, () => enableUPX.value = 0); |
| 459 | +
|
451 | 460 | // selected ext change, calculate deps
|
452 | 461 | watch(
|
453 | 462 | checkedExts,
|
|
0 commit comments