Skip to content

Commit

Permalink
fix: wine version processing (#955)
Browse files Browse the repository at this point in the history
  • Loading branch information
ml1nk authored and develar committed Nov 30, 2016
1 parent 92af262 commit da16181
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/packager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,10 @@ async function checkWineVersion(checkPromise: Promise<string>) {
wineVersion = wineVersion.substring("wine-".length)
}

if (wineVersion.split(" ").length > 1) {
wineVersion = wineVersion.split(" ")[0]
}

if (wineVersion.split(".").length === 2) {
wineVersion += ".0"
}
Expand Down

0 comments on commit da16181

Please sign in to comment.