Skip to content

Commit

Permalink
move vars
Browse files Browse the repository at this point in the history
  • Loading branch information
akerl committed Nov 12, 2022
1 parent 64f5363 commit 38aca5f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .pkgforge
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ source(
)

build do

run 'make local'
run 'mkdir zips'
%w(darwin/amd64 darwin/arm64 linux/amd64 linux/arm linux/arm64).each do |x|
Expand All @@ -28,12 +27,13 @@ build do
run "cd #{releasedir} && gpg --local-user #{gpgkey} --detach-sign #{name}_#{sversion}_SHA256SUMS"
end

sname = @forge.name
sversion = @forge.version.sub(/^v/, '')

package(
type: 'file',
artifacts: %w(darwin/amd64 darwin/arm64 linux/amd64 linux/arm linux/arm64).map do |x|
arch_path = x.sub('/', '_')
sname = @forge.name
sversion = @forge.version.sub(/^v/, '')
zip_name = "#{sname}_#{sversion}_#{arch_path}.zip"
{
source: zip_name,
Expand Down

0 comments on commit 38aca5f

Please sign in to comment.