Skip to content

Commit

Permalink
fix(squirrel.windows): Fixed Squirrel Windows Description Error (#4292)
Browse files Browse the repository at this point in the history
* Fixed Squirrel Windows Description Error

* Fixed semi-colon

* re-run checks

* re-run checks
  • Loading branch information
1nfility authored and develar committed Oct 22, 2019
1 parent 4e73026 commit 555fad2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ export default class SquirrelWindowsTarget extends Target {
...this.options as any,
}

if (!options.description) {
throw new InvalidConfigurationError("Description is required, go to package.json and create a description in order to successfully build a windows installer with squirrel.")
}

if (options.remoteToken == null) {
options.remoteToken = process.env.GH_TOKEN || process.env.GITHUB_TOKEN
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ export class SquirrelBuilder {
.then(() => ensureDir(outputDirectory))
])

if (!options.description) {
throw new Error("Description is required, go to package.json and create a description in order to successfully build a windows installer with squirrel.")
}

if (options.remoteReleases) {
await syncReleases(outputDirectory, options)
}
Expand Down

0 comments on commit 555fad2

Please sign in to comment.