Skip to content

Commit

Permalink
Add app-update.yml to avoid errors
Browse files Browse the repository at this point in the history
Suggested fix for electron-userland#6322 (not tested yet).
  • Loading branch information
Custom Automated Systems Pte Ltd authored Feb 5, 2022
1 parent b01d522 commit 74f64a8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/app-builder-lib/src/targets/snap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,11 @@ export default class SnapTarget extends Target {
if (snap.compression != null) {
args.push("--compression", snap.compression)
}

const publishConfig = getAppUpdatePublishConfiguration(packager, arch, false /* in any case validation will be done on publish */)
if (publishConfig != null) {
await outputFile(path.join(packager.getResourcesDir(stageDir.dir), "app-update.yml"), serializeToYaml(publishConfig))
}

if (packager.packagerOptions.effectiveOptionComputed != null && (await packager.packagerOptions.effectiveOptionComputed({ snap, desktopFile, args }))) {
return
Expand Down

0 comments on commit 74f64a8

Please sign in to comment.