Skip to content

Commit

Permalink
Support verbose mode
Browse files Browse the repository at this point in the history
  • Loading branch information
barthalion committed Jul 24, 2023
1 parent 0b28c58 commit 154d01b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
13 changes: 11 additions & 2 deletions flatpak-builder/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,13 +277,22 @@ const build = async (manifest, manifestPath, cacheHitKey, config) => {

if (config.mirrorScreenshotsUrl) {
core.info('Committing screenshots...')
exec.exec(
'ostree',

const ostreeArgs = [
'commit',
`--repo=${config.localRepoName}`,
'--canonical-permissions',
`--branch=screenshots/${config.arch}`,
`${config.buildDir}/screenshots`
]

if (config.verbose) {
ostreeArgs.push('--verbose')
}

exec.exec(
'ostree',
ostreeArgs
)
}
}
Expand Down
13 changes: 11 additions & 2 deletions flatpak-builder/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,13 +271,22 @@ const build = async (manifest, manifestPath, cacheHitKey, config) => {

if (config.mirrorScreenshotsUrl) {
core.info('Committing screenshots...')
exec.exec(
'ostree',

const ostreeArgs = [
'commit',
`--repo=${config.localRepoName}`,
'--canonical-permissions',
`--branch=screenshots/${config.arch}`,
`${config.buildDir}/screenshots`
]

if (config.verbose) {
ostreeArgs.push('--verbose')
}

exec.exec(
'ostree',
ostreeArgs
)
}
}
Expand Down

0 comments on commit 154d01b

Please sign in to comment.