Electron-builder version: 10.3.0
Target: win32
I'm working on Fedora 25 with wine --version --> wine-1.9.22 (Staging)
If I try to run: ./node_modules/.bin/build --win it results in an error:
Skip app dependencies rebuild because platform is different
TypeError: Invalid Version: 1.9.22 (Staging)
I'm assuming this error happens because it cannot parse the (Staging) part of the version correctly
If I switch to wine --version --> wine-1.9.24 everyting works fine
Possible fix, change this line:
https://github.com/electron-userland/electron-builder/blob/master/src/packager.ts#L305
to:
wineVersion = wineVersion.substring("wine-".length).split(" ")[0]
I had the same problem and created a (now merged) pull request:
https://github.com/electron-userland/electron-builder/pull/955
This is still happens to me on latest version 10.5.0 when trying to build on ubuntu ci (gitlab)
Skip app dependencies rebuild because platform is different
TypeError: Invalid Version: it
What is the output of wine --version on your system?
looks like its 1.62 I suspected its the problem,
but when trying to run with specific version like: apt-get install --no-install-recommends -y wine1.8 I get an error:
```
E: Unable to locate package wine1.8
E: Couldn't find any package by regex 'wine1.8'
What exactly is the output of "wine --version"? Normally you should see a message like wine 1.8+ is required, but your version is ${wineVersion} if your version is too old, which means the processing of the string fails.
I don't know which ubuntu release you use, but for older ones the ppa https://launchpad.net/~ubuntu-wine/+archive/ubuntu/ppa provides a more recent wine version.
I have added test and it is green. So, please answer to @ml1nk question.
I'm sorry, I was not around
I managed to solve it, upgraded ubuntu to 16.04 , wine 1.8 could not be installed on older ubuntu
so it installed 1.6 by default
Now its fine
Thank you very much for your help
It fails on arch with wine version wine-2.0-rc1
It fails on Ubuntu 16.10 with wine version wine-2.0-rc2