Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zxing.Net.Maui: build & publish Zxing.Net package #38

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/build-gtk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ jobs:
dotnet build -c Release Mali.slnf
- name: Pack MAUI
run: dotnet pack Mali.slnf
- name: Build Mali.ZXing
run: dotnet build -c Release --framework=net8.0-gtk src/ZXing.Net.Maui/ZXing.Net.MAUI.sln
- name: Pack Mali.ZXing
run: |
dotnet pack src/ZXing.Net.Maui/ZXing.Net.MAUI/ZXing.Net.MAUI.csproj --no-build --no-restore
dotnet pack src/ZXing.Net.Maui/ZXing.Net.MAUI.Controls/ZXing.Net.MAUI.Controls.csproj --no-build --no-restore

- name: Upload binaries to nuget (if tag or main branch, and nugetKey is present)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net8.0-gtk</TargetFrameworks>
<PackageId>ZXing.Net.Maui.Controls</PackageId>
<Title>ZXing.Net.MAUI Barcode Scanner for .NET MAUI</Title>
<Authors>Redth</Authors>
<PackageId>Mali.ZXing.Controls</PackageId>
<Title>Mali.ZXing (fork of ZXing.Net.MAUI) Barcode Scanner for .NET MAUI</Title>
<Authors>webwarrior-ws,Redth</Authors>
<!--<UseMaui>True</UseMaui>-->
<SingleProject>True</SingleProject>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<UseSystemResourceKeys>false</UseSystemResourceKeys>
<Copyright>Copyright © Redth</Copyright>
<PackageProjectUrl>https://github.com/redth/BigIslandBarcoding</PackageProjectUrl>
<PackageProjectUrl>https://github.com/nblockchain/Mali/tree/main/src/ZXing.Net.Maui</PackageProjectUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryUrl>https://github.com/redth/BigIslandBarcoding</RepositoryUrl>
<RepositoryUrl>https://github.com/nblockchain/Mali/tree/main/src/ZXing.Net.Maui</RepositoryUrl>
<AssemblyFileVersion>$(PackageVersion)</AssemblyFileVersion>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<DebugType>portable</DebugType>
<OutputType>Library</OutputType>
</PropertyGroup>
<ItemGroup>
<None Include="..\README.md" Pack="true" PackagePath="\" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ZXing.Net" Version="0.16.8" />
</ItemGroup>
Expand Down
13 changes: 9 additions & 4 deletions src/ZXing.Net.Maui/ZXing.Net.MAUI/ZXing.Net.MAUI.csproj
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net8.0-gtk</TargetFrameworks>
<PackageId>ZXing.Net.Maui</PackageId>
<Title>ZXing.Net.MAUI Barcode Scanner for .NET MAUI</Title>
<Authors>Redth</Authors>
<PackageId>Mali.ZXing</PackageId>
<Title>Mali.ZXing (fork of ZXing.Net.MAUI) Barcode Scanner for .NET MAUI</Title>
<Authors>webwarrior-ws,Redth</Authors>
<UseMaui>True</UseMaui>
<SingleProject>True</SingleProject>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<UseSystemResourceKeys>false</UseSystemResourceKeys>
<Copyright>Copyright © Redth</Copyright>
<PackageProjectUrl>https://github.com/redth/ZXing.Net.Maui</PackageProjectUrl>
<PackageProjectUrl>https://github.com/nblockchain/Mali/tree/main/src/ZXing.Net.Maui</PackageProjectUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<GitThisAssemblyMetadata>True</GitThisAssemblyMetadata>
<RepositoryUrl>$(GitRepositoryUrl)</RepositoryUrl>
Expand All @@ -27,6 +28,10 @@
<MauiPath>$(MSBuildProjectDirectory)\..\..\</MauiPath>
<_MauiBuildTasksLocation>$(MauiPath).nuspec\</_MauiBuildTasksLocation>
</PropertyGroup>

<ItemGroup>
<None Include="..\README.md" Pack="true" PackagePath="\" />
</ItemGroup>

<ItemGroup Condition="$(TargetPlatformIdentifier) == 'gtk'">
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" />
Expand Down
Loading