Skip to content

Commit

Permalink
feat: --config option
Browse files Browse the repository at this point in the history
Close #1229
  • Loading branch information
develar committed Feb 13, 2017
1 parent a9f2ad8 commit 472ef7e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions .idea/dictionaries/develar.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions packages/electron-builder/src/builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ export function normalizeOptions(args: CliOptions): BuildOptions {
delete result.x64
delete result.armv7l

if (result.project != null && result.projectDir == null) {
result.projectDir = result.project
}
delete result.project
return result
}
Expand Down
20 changes: 20 additions & 0 deletions test/out/__snapshots__/BuildTest.js.snap
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
exports[`test cli 1`] = `
Object {
"config": undefined,
"draft": undefined,
"extraMetadata": undefined,
"prepackaged": undefined,
"prerelease": undefined,
"projectDir": undefined,
"publish": undefined,
"targets": Map {
Platform {
Expand All @@ -19,10 +21,12 @@ Object {

exports[`test cli 2`] = `
Object {
"config": undefined,
"draft": undefined,
"extraMetadata": undefined,
"prepackaged": undefined,
"prerelease": undefined,
"projectDir": undefined,
"publish": undefined,
"targets": Map {
Platform {
Expand All @@ -40,10 +44,12 @@ Object {

exports[`test cli 3`] = `
Object {
"config": undefined,
"draft": undefined,
"extraMetadata": undefined,
"prepackaged": undefined,
"prerelease": undefined,
"projectDir": undefined,
"publish": undefined,
"targets": Map {
Platform {
Expand All @@ -61,10 +67,12 @@ Object {

exports[`test cli 4`] = `
Object {
"config": undefined,
"draft": undefined,
"extraMetadata": undefined,
"prepackaged": undefined,
"prerelease": undefined,
"projectDir": undefined,
"publish": undefined,
"targets": Map {
Platform {
Expand All @@ -80,10 +88,12 @@ Object {

exports[`test cli 5`] = `
Object {
"config": undefined,
"draft": undefined,
"extraMetadata": undefined,
"prepackaged": undefined,
"prerelease": undefined,
"projectDir": undefined,
"publish": undefined,
"targets": Map {
Platform {
Expand All @@ -99,10 +109,12 @@ Object {

exports[`test cli 6`] = `
Object {
"config": undefined,
"draft": undefined,
"extraMetadata": undefined,
"prepackaged": undefined,
"prerelease": undefined,
"projectDir": undefined,
"publish": undefined,
"targets": Map {
Platform {
Expand Down Expand Up @@ -132,10 +144,12 @@ Object {

exports[`test cli 7`] = `
Object {
"config": undefined,
"draft": undefined,
"extraMetadata": undefined,
"prepackaged": undefined,
"prerelease": undefined,
"projectDir": undefined,
"publish": undefined,
"targets": Map {
Platform {
Expand All @@ -153,10 +167,12 @@ Object {

exports[`test cli 8`] = `
Object {
"config": undefined,
"draft": undefined,
"extraMetadata": undefined,
"prepackaged": undefined,
"prerelease": undefined,
"projectDir": undefined,
"publish": undefined,
"targets": Map {
Platform {
Expand All @@ -174,10 +190,12 @@ Object {

exports[`test cli 9`] = `
Object {
"config": undefined,
"draft": undefined,
"extraMetadata": undefined,
"prepackaged": undefined,
"prerelease": undefined,
"projectDir": undefined,
"publish": undefined,
"targets": Map {
Platform {
Expand All @@ -195,10 +213,12 @@ Object {

exports[`test cli 10`] = `
Object {
"config": undefined,
"draft": undefined,
"extraMetadata": undefined,
"prepackaged": undefined,
"prerelease": undefined,
"projectDir": undefined,
"publish": undefined,
"targets": Map {
Platform {
Expand Down

0 comments on commit 472ef7e

Please sign in to comment.