Skip to content

Commit 3637594

Browse files
author
Mehmet Seckin
committed
fix: add required CFBundleShortVersionString for macOS bundle - Add CFBundleShortVersionString to project file - Pass version numbers to bundle task in build script
1 parent cc009ec commit 3637594

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

pipelines/templates/stages/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ stages:
6060
-t:BundleApp \
6161
-p:RuntimeIdentifier=${{ parameters.runtimeIdentifier }} \
6262
-p:Configuration=$(buildConfiguration) \
63-
-p:PublishDir="$(outputDirectory)"
63+
-p:PublishDir="$(outputDirectory)" \
64+
-p:CFBundleShortVersionString=$(Build.BuildNumber) \
65+
-p:CFBundleVersion=$(Build.BuildNumber)
6466
displayName: 'Publish as macOS app bundle'
6567
condition: or(eq('${{ parameters.runtimeIdentifier }}', 'osx-x64'), eq('${{ parameters.runtimeIdentifier }}', 'osx-arm64'))
6668

src/Todo.CLI/Todo.CLI.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
<CFBundleDisplayName>Todo CLI</CFBundleDisplayName>
8484
<CFBundleIdentifier>com.mehmetseckin.todo-cli</CFBundleIdentifier>
8585
<CFBundleVersion>0.2.0</CFBundleVersion>
86+
<CFBundleShortVersionString>0.2.0</CFBundleShortVersionString>
8687
<CFBundlePackageType>APPL</CFBundlePackageType>
8788
<CFBundleSignature>????</CFBundleSignature>
8889
<CFBundleExecutable>todo</CFBundleExecutable>

0 commit comments

Comments
 (0)