pull/88/head
parent
120d149c86
commit
900951d5bf
|
@ -3,19 +3,24 @@ const pkg = require('../package.json')
|
||||||
const fs = require('fs')
|
const fs = require('fs')
|
||||||
|
|
||||||
function appendIntro (context, systemType, latest) {
|
function appendIntro (context, systemType, latest) {
|
||||||
const partUpdateFile = `update-${systemType}-${pkg.version}.zip`
|
const version = pkg.version
|
||||||
|
const partUpdateFile = `update-${systemType}-${version}.zip`
|
||||||
|
|
||||||
const partUpdateUrl = context.configuration.publish.url + partUpdateFile
|
const partUpdateUrl = context.configuration.publish.url + partUpdateFile
|
||||||
|
|
||||||
const latestFilePath = path.join(context.outDir, latest)
|
const latestFilePath = path.join(context.outDir, latest)
|
||||||
fs.appendFile(latestFilePath, `\npartPackage: ${partUpdateUrl}\nreleaseNotes: \n - 升级日志`, (err) => {
|
fs.appendFile(latestFilePath, `partPackage: ${partUpdateUrl}\n
|
||||||
|
releaseNotes: \n
|
||||||
|
- 升级日志
|
||||||
|
- https://download.fastgit.org/docmirror/dev-sidecar/releases/download/v${version}/DevSidecar-${version}.exe`,
|
||||||
|
(err) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.log('修改latest 失败')
|
console.log('修改latest 失败')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
exports.default = async function (context) {
|
exports.default = async function (context) {
|
||||||
console.log('after-all-artifact-build', context)
|
console.log('after-all-artifact-build')
|
||||||
appendIntro(context, 'mac', 'latest-mac.yml')
|
appendIntro(context, 'mac', 'latest-mac.yml')
|
||||||
appendIntro(context, 'win', 'latest.yml')
|
appendIntro(context, 'win', 'latest.yml')
|
||||||
appendIntro(context, 'linux', 'latest-linux.yml')
|
appendIntro(context, 'linux', 'latest-linux.yml')
|
||||||
|
|
Loading…
Reference in New Issue