chore: remove dependency of node and fix up termux tts name
This commit is contained in:
@ -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
|
||||
|
@ -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]
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user