Skip to content

Commit 569442a

Browse files
authored
Merge pull request #254 from Redth/fix-glob
Fix glob to correctly include/exclude ios/mac/net
2 parents e70e5bf + 5311391 commit 569442a

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

.github/workflows/main.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
& dotnet workload install maui ios android maccatalyst
3131
3232
- name: Build
33-
run: dotnet build --configuration Release
33+
run: dotnet build --configuration Release --verbosity normal
3434
# - name: Test
3535
# run: dotnet test --configuration Release
3636
- name: Package NuGets
@@ -43,9 +43,19 @@ jobs:
4343
echo "PACKAGE VERSION: $VERSION"
4444
4545
New-Item -ItemType Directory -Force -Path .\artifacts
46-
dotnet pack --output ./artifacts --configuration Release -p:Version=$VERSION -p:PackageVersion=$VERSION ./ZXing.Net.MAUI/ZXing.Net.MAUI.csproj
47-
dotnet pack --output ./artifacts --configuration Release -p:Version=$VERSION -p:PackageVersion=$VERSION ./ZXing.Net.MAUI.Controls/ZXing.Net.MAUI.Controls.csproj
48-
dotnet pack --output ./artifacts --configuration Release -p:Version=$VERSION -p:PackageVersion=$VERSION ./ZXing.Net.MAUI.Comet/ZXing.Net.MAUI.Comet.csproj
46+
47+
# Pack with --no-build since we already built, and add error handling
48+
Write-Host "Packing ZXing.Net.MAUI..."
49+
dotnet pack --output ./artifacts --configuration Release --no-build --verbosity normal -p:Version=$VERSION -p:PackageVersion=$VERSION ./ZXing.Net.MAUI/ZXing.Net.MAUI.csproj
50+
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
51+
52+
Write-Host "Packing ZXing.Net.MAUI.Controls..."
53+
dotnet pack --output ./artifacts --configuration Release --no-build --verbosity normal -p:Version=$VERSION -p:PackageVersion=$VERSION ./ZXing.Net.MAUI.Controls/ZXing.Net.MAUI.Controls.csproj
54+
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
55+
56+
Write-Host "Packing ZXing.Net.MAUI.Comet..."
57+
dotnet pack --output ./artifacts --configuration Release --no-build --verbosity normal -p:Version=$VERSION -p:PackageVersion=$VERSION ./ZXing.Net.MAUI.Comet/ZXing.Net.MAUI.Comet.csproj
58+
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
4959
5060
- name: Artifacts
5161
uses: actions/upload-artifact@v4

ZXing.Net.MAUI/ZXing.Net.MAUI.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@
5454
<ExcludeFromCurrentConfiguration>true</ExcludeFromCurrentConfiguration>
5555
</Compile>
5656

57-
<Compile Condition=" '$(TargetPlatformIdentifier)' == 'ios' " Update="*\*.ios*$(DefaultLanguageSourceExtension)">
57+
<Compile Condition=" '$(TargetPlatformIdentifier)' == 'ios' " Update="**\*.ios*$(DefaultLanguageSourceExtension)">
5858
<ExcludeFromCurrentConfiguration>False</ExcludeFromCurrentConfiguration>
5959
</Compile>
60-
<Compile Condition=" '$(TargetPlatformIdentifier)' == 'maccatalyst' " Update="**\*.maccatalyst*$(DefaultLanguageSourceExtension)">
60+
<Compile Condition=" '$(TargetPlatformIdentifier)' == 'maccatalyst' " Update="**\*.ios*$(DefaultLanguageSourceExtension);**\*.maccatalyst*$(DefaultLanguageSourceExtension)">
6161
<ExcludeFromCurrentConfiguration>False</ExcludeFromCurrentConfiguration>
6262
</Compile>
6363
<Compile Condition=" '$(TargetPlatformIdentifier)' == 'android' " Update="**\*.android*$(DefaultLanguageSourceExtension)">

0 commit comments

Comments
 (0)