钉钉官方提供的Linux版本下载地址, 下载下来的钉钉不是最新的.
使用钉钉的检测到有更新, 点击下载又没反应:
下面写了个脚本拼写下载地址:
Live Editor
function render() {const [version, updateVersion] = useState("1.7.0-Release.30419");const match = /^(\d+\.\d+\.\d+)-Release\.(\d+)$/i.exec(version);let download = "";if(match === null){download = "版本号格式错误, 正确格式比如: 1.7.0-Release.30419, 1.6.0-Release.230309";} else {download = `https://dtapp-pub.dingtalk.com/dingtalk-desktop/xc_dingtalk_update/linux_deb/Release/com.alibabainc.dingtalk_${match[1]}.${match[2]}_amd64.deb`;}return (<div><label> 再次输入要下载的版本号:<input for="versions" placeholder="请输入要下载的版本号" value={version} onChange={e => updateVersion(e.target.value)} /><datalist id="versions"><option value="1.7.0-Release.30419"></option><option value="7.0.50-Release.30831"></option></datalist></label><div>下载地址 <a href={download} target="_blank">{download}</a></div></div>);}
Result
Loading...