1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-12-27 20:43:01 +03:00
tabby/build/mac/afterBuildHook.js

17 lines
494 B
JavaScript
Raw Normal View History

2020-05-07 18:37:39 +03:00
const fs = require('fs')
const signHook = require('./afterSignHook')
module.exports = async function (params) {
// notarize the app on Mac OS only.
if (process.platform !== 'darwin' || !process.env.GITHUB_REF || !process.env.GITHUB_REF.startsWith('refs/tags/')) {
return
}
console.log('afterBuild hook triggered')
let pkgName = fs.readdirSync('dist').find(x => x.endsWith('.pkg'))
signHook({
appOutDir: 'dist',
_pathOverride: pkgName,
})
}