Skip to content

Commit

Permalink
Fix normalized version suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekn committed Dec 11, 2024
1 parent 25509a2 commit a445748
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ steps:
buildkite-agent artifact download "*.app.zip" .
buildkite-agent artifact download "*.dmg" .
buildkite-agent artifact download "*.exe" .
buildkite-agent artifact download "*.appx" .
buildkite-agent artifact download "*.nupkg" .
buildkite-agent artifact download "*\\RELEASES" .
Expand Down Expand Up @@ -248,6 +249,7 @@ steps:
buildkite-agent artifact download "*.zip" .
buildkite-agent artifact download "*.dmg" .
buildkite-agent artifact download "*.exe" .
buildkite-agent artifact download "*.appx" .
buildkite-agent artifact download "*.nupkg" .
buildkite-agent artifact download "*\\RELEASES" .
Expand Down
16 changes: 15 additions & 1 deletion fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def distribute_builds(
# If we are distributing a build without a tag, i.e. a development build, we also want to update the latest build reference for distribution.
update_latest = release_tag.nil?
suffix = release_tag.nil? ? commit_hash : release_tag
normalized_version = suffix.gsub(/^v|-.*/, '')
filename_root = 'studio'
bucket_folder = 'studio'

Expand Down Expand Up @@ -145,7 +146,20 @@ def distribute_builds(
suffix: 'full',
extension: 'nupkg',
name: 'Windows Update'
}
},
windows_appx: {
binary_path: File.join(BUILDS_FOLDER, 'Studio-appx-signed', "Studio #{normalized_version}.0.appx"),
filename_core: 'win32',
extension: 'appx',
name: 'Windows (Appx)'
},
windows_appx_unsigned: {
binary_path: File.join(BUILDS_FOLDER, 'Studio-appx-unsigned', "Studio #{normalized_version}.0 unsigned.appx"),
filename_core: 'win32',
suffix: 'unsigned',
extension: 'appx',
name: 'Windows (Unsigned Appx)'
},
}

# Add computed fields
Expand Down

0 comments on commit a445748

Please sign in to comment.