Skip to content

Commit

Permalink
feat: add support for WSL
Browse files Browse the repository at this point in the history
  • Loading branch information
dsanders11 authored and zcbenz committed May 18, 2020
1 parent 87c05c4 commit ee4e10a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/rcedit.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const os = require('os')
const path = require('path')
const { spawn } = require('child_process')

Expand Down Expand Up @@ -33,7 +34,8 @@ module.exports = async (exe, options) => {
env: { ...process.env }
}

if (process.platform !== 'win32') {
// Use Wine on non-Windows platforms except for WSL, which doesn't need it
if (process.platform !== 'win32' && !os.release().endsWith('Microsoft')) {
args.unshift(rcedit)
rcedit = process.arch === 'x64' ? 'wine64' : 'wine'
// Suppress "fixme:" stderr log messages
Expand Down

0 comments on commit ee4e10a

Please sign in to comment.