Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 0 additions & 51 deletions cflinuxfs4/recipe/hwc.rb

This file was deleted.

14 changes: 9 additions & 5 deletions recipe/hwc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,17 @@ def cook
FileUtils.mv(Dir.glob("#{tmp_path}/hwc-*").first, "#{tmp_path}/hwc")
Dir.chdir("#{tmp_path}/hwc") do
system(
{"PATH" => "#{ENV["PATH"]}:/usr/local/go/bin"},
"./scripts/build.sh"
) or raise "Could not build hwc"
{ 'PATH' => "#{ENV['PATH']}:/usr/local/go/bin" },
"./bin/release-binaries.bash amd64 windows #{version} #{tmp_path}/hwc"
) or raise 'Could not build hwc amd64'
system(
{ 'PATH' => "#{ENV['PATH']}:/usr/local/go/bin" },
"./bin/release-binaries.bash 386 windows #{version} #{tmp_path}/hwc"
) or raise 'Could not build hwc 386'
end

FileUtils.mv("#{tmp_path}/hwc/hwc-rel/hwc.exe", "/tmp/hwc.exe")
FileUtils.mv("#{tmp_path}/hwc/hwc-rel/hwc_x86.exe", "/tmp/hwc_x86.exe")
FileUtils.mv("#{tmp_path}/hwc/hwc-windows-386", '/tmp/hwc.exe')
FileUtils.mv("#{tmp_path}/hwc/hwc-windows-amd64", '/tmp/hwc_x86.exe')
end

def archive_files
Expand Down