Skip to content

Commit

Permalink
feat: Download kindlegen binary over HTTPS on install
Browse files Browse the repository at this point in the history
  • Loading branch information
hakatashi committed Nov 3, 2016
1 parent cf0dceb commit 9a67ba6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions install.ls
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ require! {
}

bin-url = switch process.platform
| \darwin => 'http://kindlegen.s3.amazonaws.com/KindleGen_Mac_i386_v2_9.zip'
| \linux => 'http://kindlegen.s3.amazonaws.com/kindlegen_linux_2.6_i386_v2_9.tar.gz'
| \win32 => 'http://kindlegen.s3.amazonaws.com/kindlegen_win32_v2_9.zip'
| \darwin => 'https://kindlegen.s3.amazonaws.com/KindleGen_Mac_i386_v2_9.zip'
| \linux => 'https://kindlegen.s3.amazonaws.com/kindlegen_linux_2.6_i386_v2_9.tar.gz'
| \win32 => 'https://kindlegen.s3.amazonaws.com/kindlegen_win32_v2_9.zip'
| otherwise => throw new Error 'Unsupported platform'

download bin-url, \bin, {+extract} .then -> console.log 'Download completed'

0 comments on commit 9a67ba6

Please sign in to comment.