Add software version manifest management
This commit is contained in:
+14
-1
@@ -99,12 +99,25 @@
|
||||
<label for="package">安装包</label>
|
||||
<input id="package" name="package" type="file" />
|
||||
</div>
|
||||
<div class="field full">
|
||||
<label for="version-manifest">版本清单 version.json</label>
|
||||
<input id="version-manifest" name="versionManifest" type="file" accept="application/json,.json" />
|
||||
</div>
|
||||
<div class="field full">
|
||||
<label for="version-manifest-content">版本内容 JSON</label>
|
||||
<textarea
|
||||
id="version-manifest-content"
|
||||
name="versionManifestContent"
|
||||
maxlength="8000"
|
||||
placeholder='留空时,上传安装包后服务端会自动生成 {"version":"1.0.0","update_url":"...","download_url":"..."}'
|
||||
></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="checkbox-row">
|
||||
<label class="checkbox-field"><input name="active" type="checkbox" checked /> 前台显示</label>
|
||||
<label class="checkbox-field"><input name="featured" type="checkbox" /> 精选推荐</label>
|
||||
</div>
|
||||
<p class="form-hint">更新软件时只选择新的安装包即可替换下载文件;不选择文件会保留原安装包。</p>
|
||||
<p class="form-hint">上传安装包且版本内容留空时会自动生成 version.json;需要手动调整 release_notes、delta_updates 等内容时,直接编辑版本内容 JSON 后保存。</p>
|
||||
<div class="form-actions">
|
||||
<button class="primary-action" type="submit" id="submit-button">保存软件</button>
|
||||
<button class="secondary-action" type="button" id="reset-form">清空</button>
|
||||
|
||||
Reference in New Issue
Block a user