Don't download watchexec on Linux

This commit is contained in:
Empathic Qubit 2021-04-30 00:54:35 -04:00
parent c70fc5a97b
commit 88718d391d

View file

@ -60,9 +60,11 @@ local function onMessage(_M, handler)
end
return function()
util.downloadFile('https://github.com/watchexec/watchexec/releases/download/1.13.1/watchexec-1.13.1-x86_64-pc-windows-gnu.zip', base..'/watchexec.zip')
util.unzip(base..'/watchexec.zip', base)
os.rename(base..'watchexec-1.13.1-x86_64-pc-windows-gnu', base..'/watchexec')
if util.isWin then
util.downloadFile('https://github.com/watchexec/watchexec/releases/download/1.13.1/watchexec-1.13.1-x86_64-pc-windows-gnu.zip', base..'/watchexec.zip')
util.unzip(base..'/watchexec.zip', base)
os.rename(base..'watchexec-1.13.1-x86_64-pc-windows-gnu', base..'/watchexec')
end
local _M = {
onMessageHandler = {},