Skip to content

Commit

Permalink
assign exe names based on platform
Browse files Browse the repository at this point in the history
  • Loading branch information
takase1121 committed Jun 7, 2022
1 parent 5a438ac commit f6d6010
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@ local subprocess = require "process"

local qoi = require "plugins.img.qoi"

local EXE_NAMES = {
["Windows"] = "img.exe",
["Mac OS X"] = "img.cursed",
["Linux"] = "img"
}

config.plugins.img = {
bin_path = USERDIR .. "/plugins/img/img.com",
bin_path = USERDIR .. "/plugins/img/" .. EXE_NAMES[PLATFORM],
max_pixels = 5000
}

Expand Down

0 comments on commit f6d6010

Please sign in to comment.