-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support HCK installer as ISO #325
Conversation
1629181
to
16156f4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of requiring to specify iso
flag, why not automatically detect it?
If File.read(path, 2) == 'MZ'
, it is a Windows executable. You can assume a disk image otherwise.
16156f4
to
613cfa3
Compare
Yeah, we think about it, but for get extention you need to download file from link and check it then somehow save it to another folder it was easiest way to done this task. We use curb gem for done this and with provided links it`s impossible to get filename before downloading and you also should save it with filename. |
Just download it without an extension and rename it. |
613cfa3
to
52a7ccf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- It's better to use
httpclient
orfaraday
gem if you are going to read HTTP headers. Note that these gems are already used by other dependencies, so requiring them does not add more dependencies. - Don't perform HTTP requests twice. I bet it doesn't need much code to save one HTTP request.
52a7ccf
to
33d6cca
Compare
Also see: #325 (comment) |
33d6cca
to
0936be1
Compare
77b0309
to
3cc0151
Compare
3cc0151
to
1855ba5
Compare
Signed-off-by: Vitalii Chulak <[email protected]>
e54b0ca
to
72a1526
Compare
72a1526
to
164f284
Compare
164f284
to
815db85
Compare
815db85
to
2eab4c9
Compare
75df785
to
cd4fd5c
Compare
8af1010
to
ba21866
Compare
ba21866
to
e342136
Compare
e342136
to
7366958
Compare
lib/engines/hckinstall/hckinstall.rb
Outdated
|
||
if @kit_path.nil? | ||
if @kit_info['download_url'].nil? | ||
raise(AutoHCKError, 'HLK installer download URL is not provided and installer is not found') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use move-specific EngineError
Signed-off-by: Vitalii Chulak <[email protected]>
7366958
to
ac4844d
Compare
Script side HCK-CI/HLK-Setup-Scripts#20