Skip to content

Commit

Permalink
Commit change that VS Code didn’t save.
Browse files Browse the repository at this point in the history
  • Loading branch information
samsymons committed Jan 28, 2025
1 parent e831a40 commit c9a0266
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ def self.process_erb_template(erb_file_path, args)
erb_template.result_with_hash(args)
end

def self.compute_tag(is_prerelease, platform_suffix)
def self.compute_tag(is_prerelease, platform)
version = File.read(VERSION_CONFIG_PATH).chomp.split(" = ").last
build_number = File.read(BUILD_NUMBER_CONFIG_PATH).chomp.split(" = ").last
if is_prerelease
Expand All @@ -404,9 +404,9 @@ def self.compute_tag(is_prerelease, platform_suffix)
promoted_tag = "#{version}-#{build_number}"
end

if platform_suffix && !platform_suffix.empty?
tag = "#{tag}+#{platform_suffix}"
promoted_tag = "#{promoted_tag}+#{platform_suffix}" unless is_prerelease
if platform && !platform.empty?
tag = "#{tag}+#{platform}"
promoted_tag = "#{promoted_tag}+#{platform}" unless is_prerelease
end

return tag, promoted_tag
Expand Down

0 comments on commit c9a0266

Please sign in to comment.