Skip to content

Better detection for platform OS #4

@mhartington

Description

@mhartington

Since lua LSP has predictable platforms it builds to, you could do a conditional check and set the bin location

local bin_location = jit.os

if jit.os == 'osx' then 
  local bin_location = 'macOS'
elseif jit.os == 'linux' then --or what ever the value returned by linux
    local bin_location = 'Linux'
....

Just some ideas

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions