Merge branch 'feat/llvm-obf-m3' into main
This commit is contained in:
@@ -63,6 +63,7 @@
|
||||
<input type="checkbox" id="obfuscation" v-model="form.obfuscation">
|
||||
<label for="obfuscation">启用混淆</label>
|
||||
</div>
|
||||
<div class="obfuscation-hint">分支声明强制混淆(AutoPacking/build_policy.json)时始终启用,此勾选仅对旧分支/旧 Tag 生效</div>
|
||||
</div>
|
||||
<p v-if="submitNotice" class="submit-notice" role="status" aria-live="polite">{{ submitNotice }}</p>
|
||||
<button class="btn btn-primary" @click="submitTask" :disabled="submitting">
|
||||
@@ -210,7 +211,7 @@ const form = ref({
|
||||
build_type: '',
|
||||
scheme_id: '',
|
||||
exclude_symbols: false,
|
||||
obfuscation: false,
|
||||
obfuscation: true,
|
||||
branch: 'main',
|
||||
})
|
||||
const submitting = ref(false)
|
||||
@@ -387,7 +388,7 @@ const submitTask = async () => {
|
||||
const res = await authFetch('/api/tasks', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ ...form.value, obfuscation: supportsObfuscation.value && form.value.obfuscation }),
|
||||
body: JSON.stringify({ ...form.value, obfuscation: Boolean(supportsObfuscation.value && form.value.obfuscation) }),
|
||||
})
|
||||
if (res.ok) {
|
||||
const task = await res.json()
|
||||
@@ -400,7 +401,7 @@ const submitTask = async () => {
|
||||
build_type: '',
|
||||
scheme_id: '',
|
||||
exclude_symbols: false,
|
||||
obfuscation: false,
|
||||
obfuscation: Boolean(supportsObfuscation.value),
|
||||
branch: branches.value[0] || 'main',
|
||||
}
|
||||
} else {
|
||||
@@ -480,6 +481,7 @@ const errorCategoryHint = (cat) => {
|
||||
.form-group select:focus { outline: none; border-color: #1890ff; }
|
||||
.checkbox-group { display: flex; align-items: center; gap: 8px; }
|
||||
.checkbox-group input[type="checkbox"] { width: 16px; height: 16px; }
|
||||
.obfuscation-hint { margin-top: 6px; color: #999; font-size: 12px; line-height: 1.4; }
|
||||
.btn { padding: 10px 20px; border: none; border-radius: 6px; font-size: 14px; cursor: pointer; width: 100%; }
|
||||
.btn-primary { background: #1890ff; color: white; }
|
||||
.btn-primary:hover { background: #40a9ff; }
|
||||
|
||||
Reference in New Issue
Block a user