Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Invalid Version: 2.0-rc1.0 #1031

Closed
cawa-93 opened this issue Dec 20, 2016 · 5 comments · Fixed by #1033
Closed

TypeError: Invalid Version: 2.0-rc1.0 #1031

cawa-93 opened this issue Dec 20, 2016 · 5 comments · Fixed by #1033
Labels

Comments

@cawa-93
Copy link
Contributor

cawa-93 commented Dec 20, 2016

  • Version: 10.9.2
  • Target: -w --x64 --ia32

I try build Windows App on Linux (Ubuntu 16.10);
In my dev package.json:

{
  "name": "ad_maker",
  "version": "1.1.0",
  ...
  "build": {
    "linux": {
      "target": "snap",
      "category": "Utility"
    },
    "win": {
      "target": "zip"
    }
  },
  "directories": {}
}

In my APP package.json:

{
  "name": "ad_maker",
  "version": "1.1.0",
  ...
  "main": "main.js",
}

As you can see both versions of a file is written as 1.1.0. But console command

build -w --x64 --ia32

returns an error:

TypeError: Invalid Version: 2.0-rc1.0
    at new SemVer (/home/alex/Develop/electron-build/node_modules/semver/semver.js:293:11)
    at compare (/home/alex/Develop/electron-build/node_modules/semver/semver.js:566:10)
    at lt (/home/alex/Develop/electron-build/node_modules/semver/semver.js:600:10)
    at /home/alex/Develop/electron-build/node_modules/electron-builder/src/packager.ts:327:7
From previous event:
    at checkWineVersion (/home/alex/Develop/electron-build/node_modules/electron-builder/out/packager.js:53:22)
    at /home/alex/Develop/electron-build/node_modules/electron-builder/src/packager.ts:143:17
From previous event:
    at Packager.doBuild (/home/alex/Develop/electron-build/node_modules/electron-builder/out/packager.js:271:11
)
    at /home/alex/Develop/electron-build/node_modules/electron-builder/src/packager.ts:114:38
    at next (native)
    at runCallback (timers.js:637:20)
    at tryOnImmediate (timers.js:610:5)
    at processImmediate [as _immediateCallback] (timers.js:582:5)
From previous event:
    at Packager.build (/home/alex/Develop/electron-build/node_modules/electron-builder/out/packager.js:223:11)
    at /home/alex/Develop/electron-build/node_modules/electron-builder/src/builder.ts:241:40
    at next (native)
From previous event:
    at build (/home/alex/Develop/electron-build/node_modules/electron-builder/out/builder.js:89:21)
    at Object.<anonymous> (/home/alex/Develop/electron-build/node_modules/electron-builder/out/cli/build-cli.js
:68:41)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:394:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:509:3

In the dependencies I have not found any such package version.

npm-debug.txt

@develar
Copy link
Member

develar commented Dec 21, 2016

It is wine version. #953

@develar develar added the bug label Dec 21, 2016
@cawa-93
Copy link
Contributor Author

cawa-93 commented Dec 21, 2016

You're right. So there is a way to solve this problem?
It fails with wine version wine-2.0-rc2

@develar
Copy link
Member

develar commented Dec 21, 2016

@cawa-93 I need to allocate 10 minutes of my free time :) Will be fixed today/tomorrow.

@cawa-93
Copy link
Contributor Author

cawa-93 commented Dec 21, 2016

@develar I can add a pull request with correction

@develar
Copy link
Member

develar commented Dec 21, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants