Skip to content

Commit 6d3b3c2

Browse files
committed
dist
1 parent d32e3f5 commit 6d3b3c2

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ If you plan to contribute to flatpak-github-actions, here's a couple of things t
1010

1111
For more details, we recommend looking the extensive guide at [Creating a JavaScript action](https://docs.github.com/en/actions/creating-actions/creating-a-javascript-action#prerequisites)
1212

13-
Once you have modified the `index.js` of either `flatpak-builder` or `flat-manager` action. Make sure to compile the file to the `dist` directory. You can do so with
13+
Once you have modified the `index.js` of either `flatpak-builder` or `flat-manager` action, make sure to compile the file to the `dist` directory.
14+
Note: You should have already installed the npm packages of both `flatpak-builder` and `flat-manager`, with yarn.
1415

1516
```shell
1617
ncc build ./flatpak-builder/index.js -o ./flatpak-builder/dist/

flatpak-builder/dist/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ class Configuration {
5151
this.mirrorScreenshotsUrl = core.getInput('mirror-screenshots-url')
5252
// The key to sign the package
5353
this.gpgSign = core.getInput('gpg-sign')
54+
// Keep build directories after the build (pass --keep-build-dirs)
55+
this.keepBuildDirs = core.getBooleanInput('keep-build-dirs')
5456
// Modified manifest path
5557
this.modifiedManifestPath = path.join(
5658
path.dirname(this.manifestPath),
@@ -232,6 +234,9 @@ const build = async (manifest, manifestPath, cacheHitKey, config) => {
232234
`--default-branch=${branch}`,
233235
`--arch=${config.arch}`
234236
]
237+
if (config.keepBuildDirs) {
238+
args.push('--keep-build-dirs')
239+
}
235240
if (config.cacheBuildDir) {
236241
args.push('--ccache')
237242
}

0 commit comments

Comments
 (0)