Commit 6f8835f6 authored by saltedcoffii's avatar saltedcoffii Committed by GitHub

Add deb file support to chromebrew (#5247)

* Add deb file support to chromebrew

* Bump version
parent 0a1d7d3d
......@@ -557,6 +557,10 @@ def unpack (meta)
puts "Unpacking archive using 'tar', this may take a while..."
FileUtils.mkdir extract_dir unless Dir.exist?(extract_dir)
system "tar x#{@verbose}f #{meta[:filename]} -C #{extract_dir}"
when /\.deb$/i
puts "Unpacking archive using 'ar', this may take a while..."
FileUtils.mkdir extract_dir unless Dir.exist?(extract_dir)
system "ar -p #{meta[:filename]} data.tar.xz | xz -dc#{@verbose} | tar x#{@verbose} -C #{extract_dir}"
end
if meta[:source] == true
# Check the number of directories in the archive
......
# Defines common constants used in different parts of crew
CREW_VERSION = '1.7.6'
CREW_VERSION = '1.7.7'
ARCH_ACTUAL = `uname -m`.strip
# This helps with virtualized builds on aarch64 machines
......
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