Skip to content

Commit 552156a

Browse files
committed
go back to not trying to create a macos app bundle
1 parent 6bd5d2e commit 552156a

1 file changed

Lines changed: 12 additions & 22 deletions

File tree

.github/workflows/dotnet-desktop.yml

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ jobs:
6767
run: dotnet restore -r ${{ matrix.rid }}
6868

6969
- name: Publish
70-
if: ${{ ! startsWith(matrix.rid, 'osx') }}
7170
run: |
7271
dotnet publish ${{ env.PROJECT_FOLDER}}/${{ env.PROJECT_NAME }} \
7372
-c ${{ env.CONFIGURATION }} \
@@ -82,31 +81,22 @@ jobs:
8281
-p:AssemblyVersion=${{ steps.gitversion.outputs.AssemblySemFileVer }} \
8382
-o bin
8483
85-
- name: Publish
86-
if: ${{ startsWith(matrix.rid, 'osx') }}
87-
run: |
88-
dotnet msbuild YMouseButtonControl/YMouseButtonControl.csproj \
89-
-t:BundleApp \
90-
-p:RuntimeIdentifier=${{ matrix.rid }} \
91-
-p:Configuration=${{ env.CONFIGURATION }} \
92-
-p:TargetFramework=net8.0 \
93-
-p:VersionPrefix=${{ steps.gitversion.outputs.SemVer }} \
94-
-p:PublishSingleFile=true \
95-
-p:SelfContained=true \
96-
-p:DebugType=embedded \
97-
-p:IncludeNativeLibrariesForSelfExtract=true \
98-
-p:EnableCompressionInSingleFile=true \
99-
-p:PublishTrimmed=true
100-
101-
- name: Move App Bundle to Artifacts
102-
if: ${{ startsWith(matrix.rid, 'osx') }}
103-
run: mkdir bin && mv YMouseButtonControl/bin/Release/net8.0/${{ matrix.rid }}/publish/YMouseButtonControl.app bin/
104-
10584
- name: Set Executable Bit
10685
if: ${{ startsWith(matrix.rid, 'osx') }}
107-
run: chmod -R +x bin/YMouseButtonControl.app/Contents/MacOS/
86+
run: chmod -R +x bin/YMouseButtonControl
87+
88+
- name: Tar to Preserve Executable Bit
89+
run: tar -cvf ${{ env.APP_NAME }}.${{ env.PACK_VER }}+${{ matrix.rid }}.tar bin/
10890

10991
- name: Upload build artifacts
92+
if: ${{ startsWith(matrix.rid, 'osx') }}
93+
uses: actions/upload-artifact@v4.3.1
94+
with:
95+
name: "${{ env.APP_NAME }}.${{ steps.gitversion.outputs.semVer }}+${{ matrix.rid }}"
96+
path: "${{ env.APP_NAME }}.${{ steps.gitversion.outputs.semVer }}+${{ matrix.rid }}.tar"
97+
98+
- name: Upload build artifacts
99+
if: ${{ ! startsWith(matrix.rid, 'osx') }}
110100
uses: actions/upload-artifact@v4.3.1
111101
with:
112102
name: "${{ env.APP_NAME }}.${{ steps.gitversion.outputs.semVer }}+${{ matrix.rid }}"

0 commit comments

Comments
 (0)