Get a little bit more logging out of publish/package step

This commit is contained in:
Markus Olsson 2020-08-17 13:42:36 +02:00
parent 3ae2720cfa
commit f2594f34ba
2 changed files with 6 additions and 3 deletions

View file

@ -36,10 +36,10 @@ function packageOSX() {
const dest = getOSXZipPath()
fs.removeSync(dest)
console.log('Packaging for macOS…')
cp.execSync(
`ditto -ck --keepParent "${distPath}/${productName}.app" "${dest}"`
)
console.log(`Zipped to ${dest}`)
}
function packageWindows() {
@ -53,7 +53,8 @@ function packageWindows() {
)
if (isAppveyor() || isGitHubActions()) {
cp.execSync(`powershell ${setupCertificatePath}`)
console.log('Installing signing certificate…')
cp.execSync(`powershell ${setupCertificatePath}`, { stdio: 'inherit' })
}
const iconSource = path.join(
@ -108,6 +109,7 @@ function packageWindows() {
options.signWithParams = `/f ${certificatePath} /p ${process.env.WINDOWS_CERT_PASSWORD} /tr http://timestamp.digicert.com /td sha256 /fd sha256`
}
console.log('Packaging for Windows…')
electronInstaller
.createWindowsInstaller(options)
.then(() => {
@ -141,5 +143,6 @@ function packageLinux() {
configPath,
]
console.log('Packaging for Linux…')
cp.spawnSync(electronBuilder, args, { stdio: 'inherit' })
}

View file

@ -29,7 +29,7 @@ import * as Crypto from 'crypto'
import request from 'request'
console.log('Packaging…')
execSync('yarn package')
execSync('yarn package', { stdio: 'inherit' })
const sha = platforms.getSha().substr(0, 8)