diff --git a/scripts/gen-release-page.js b/scripts/gen-release-page.js index 4f2f2f6..f8f23a5 100644 --- a/scripts/gen-release-page.js +++ b/scripts/gen-release-page.js @@ -7,7 +7,7 @@ const path = require('path') const root = path.resolve(__dirname, '..') const inFile = process.argv[2] || path.join(root, 'site', 'releases.json') -const outFile = process.argv[3] || path.join(root, 'site', 'index.html') +const outFile = process.argv[3] || path.join(root, 'site', 'download', 'index.html') const data = JSON.parse(fs.readFileSync(inFile, 'utf8')) const PLATFORMS = [ @@ -55,12 +55,11 @@ const html = `
${esc(data.subtitle || '')}
@@ -93,12 +112,23 @@ ${PLATFORMS.map((p) => platformRow(latest, p)).join('\n')}xattr -dr com.apple.quarantine /Applications/image-workbench.app。之后与新版本(含应用内自动更新)都不再提示。xattr -dr com.apple.quarantine "/Applications/image-workbench.app"
+ 说明:安装包未做 Apple 公证($99/年开发者账号),所以第一次需要手动放行;这一步只做一次。
+ 之后有新版本时,应用内 设置 → 通用 → 版本与更新 → 检查更新 就能一键升级,不用再下载安装包。
%USERPROFILE%\Documents\ImageWorkbench。scripts/gen-release-page.js 从 releases.json 生成 · 源码 git.maqiart.eu.org · 更新于 ${esc((data.updatedAt || '').slice(0, 10))}