Skip to content

Commit

Permalink
Fix release files
Browse files Browse the repository at this point in the history
  • Loading branch information
buty4649 committed Jun 4, 2023
1 parent 28c308c commit 28401ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ def archive_binary_file(targets, version)
targets.each do |target|
ext = '.exe' if target =~ /windows/
src = File.expand_path("build/#{target}/bin/rf#{ext}")
dest = File.expand_path("release/rf-#{version}-#{target}#{ext}")
dest = File.expand_path("release/rf-#{version}-#{target}")

if target =~ /linux/
sh "tar -cf #{dest}.tar.gz -C #{File.dirname(src)} #{File.basename(src)}"
sh "tar -zcf #{dest}.tar.gz -C #{File.dirname(src)} #{File.basename(src)}"
else
sh "zip -j #{dest}.zip #{src}"
end
Expand Down

0 comments on commit 28401ae

Please sign in to comment.