Skip to content

Commit

Permalink
shift sversion to outer scope
Browse files Browse the repository at this point in the history
  • Loading branch information
akerl committed Nov 12, 2022
1 parent 38aca5f commit ea5d46f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .pkgforge
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ source(
build do
run 'make local'
run 'mkdir zips'
sversion = version.sub(/^v/, '')
%w(darwin/amd64 darwin/arm64 linux/amd64 linux/arm linux/arm64).each do |x|
arch_path = x.sub('/', '_')
sversion = version.sub(/^v/, '')
zip_name = "#{name}_#{sversion}_#{arch_path}"
run "mkdir zips/#{name}_#{sversion}_#{arch_path}"
run "cp bin/#{name}_#{arch_path} zips/#{zip_name}/#{name}_#{sversion}"
Expand Down

0 comments on commit ea5d46f

Please sign in to comment.