chore: remove dependency of node and fix up termux tts name

This commit is contained in:
JuanZoran
2023-05-14 11:03:24 +08:00
parent edc6b89086
commit 5504ab5757
3 changed files with 12 additions and 19 deletions

View File

@ -41,16 +41,11 @@ return function()
end
Trans.curl.get(uri, {
output = zip,
callback = handle,
extra = continue and { '-C', '-' } or nil,
output = zip,
callback = handle,
extra = continue and { '-C', '-' } or nil,
})
local message = continue and 'Continue download database' or 'Begin to download database'
vim.notify(message, vim.log.levels.INFO)
-- INFO : Install tts dependencies
if Trans.system == 'win' then
os.execute 'cd ./tts && npm install'
end
end

View File

@ -36,13 +36,14 @@ local function check_binary_dependencies()
local binary_dependencies = {
'curl',
'sqlite3',
'unzip',
}
binary_dependencies[3] = ({
win = 'node',
win = nil,
mac = 'say',
linux = 'festival',
termux = 'termux-api-speak',
termux = 'termux-tts-speak',
})[Trans.system]