mirror of
https://github.com/cmderdev/cmder.git
synced 2025-01-10 16:29:08 +08:00
Check for 7-zip before build
This commit is contained in:
parent
168958ce2b
commit
6126437762
@ -47,6 +47,17 @@ def get_file project, query
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def find_on_path exe
|
||||||
|
path = ENV['PATH'].split(File::PATH_SEPARATOR)
|
||||||
|
for dir in path
|
||||||
|
if File.exists?(File.join(dir, exe))
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
puts '
|
puts '
|
||||||
______ _ _ _ _ _
|
______ _ _ _ _ _
|
||||||
| ___ \ (_) | | (_) | |
|
| ___ \ (_) | | (_) | |
|
||||||
@ -58,6 +69,11 @@ ______ _ _ _ _ _
|
|||||||
|___/
|
|___/
|
||||||
'
|
'
|
||||||
|
|
||||||
|
unless find_on_path('7z.exe')
|
||||||
|
puts '7z.exe not found. Ensure 7-zip is installed and on the PATH.'
|
||||||
|
exit(1)
|
||||||
|
end
|
||||||
|
|
||||||
puts 'Cleanup'
|
puts 'Cleanup'
|
||||||
|
|
||||||
if Dir.exists?('vendor')
|
if Dir.exists?('vendor')
|
||||||
|
Loading…
Reference in New Issue
Block a user