Commit dca5227c authored by Ed Reel's avatar Ed Reel Committed by GitHub

Fix install errors in composer, symfony and telegram (#5752)

parent 37078c89
......@@ -24,6 +24,7 @@ class Composer < Package
def self.install
system "curl -Ls -o composer https://github.com/composer/composer/releases/download/#{version}/composer.phar"
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('composer') ) == '116fdf07cc926af646635a6abc92d88aff7b02a5dc36538f81c50a7d27366dbf'
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
FileUtils.install 'composer', "#{CREW_DEST_PREFIX}/bin/composer", mode: 0o755
end
......
......@@ -25,6 +25,7 @@ class Symfony < Package
symfony_file = "symfony_linux_#{arch}"
system "curl -#LO https://github.com/symfony/cli/releases/download/v#{version}/#{symfony_file}"
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read(symfony_file) ) == sha256
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
FileUtils.install symfony_file, "#{CREW_DEST_PREFIX}/bin/symfony", mode: 0o755
end
......
......@@ -18,6 +18,7 @@ class Telegram < Package
end
def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
FileUtils.install 'Telegram', "#{CREW_DEST_PREFIX}/bin/Telegram", mode: 0o755
FileUtils.install 'telegram', "#{CREW_DEST_PREFIX}/bin/telegram", mode: 0o755
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment