From 5d5e7c694d9e707ca0d6bc9124ed9aeaa20d2dfe Mon Sep 17 00:00:00 2001 From: webwarrior Date: Mon, 2 Dec 2024 11:03:39 +0100 Subject: [PATCH 1/2] Zxing.Net.Maui: build & publish Zxing.Net package Bulid and publish Zxing.Net.* packages under the names of Mali.Zxing and Mali.ZXing.Controls. This will create nuget packages that can be consumed by geewallet without relying on sources being available through maui submodule. Reference readme from projects, because now we pack individual projects, and readme file from solution root is not referenced automatically. --- .github/workflows/build-gtk.yml | 10 ++++++++++ .../ZXing.Net.MAUI.Controls.csproj | 14 +++++++++----- .../ZXing.Net.MAUI/ZXing.Net.MAUI.csproj | 13 +++++++++---- 3 files changed, 28 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build-gtk.yml b/.github/workflows/build-gtk.yml index 243e8cd231e7..242eaa0777f6 100644 --- a/.github/workflows/build-gtk.yml +++ b/.github/workflows/build-gtk.yml @@ -38,6 +38,16 @@ jobs: dotnet build -c Release Mali.slnf - name: Pack MAUI run: dotnet pack Mali.slnf + - name: Build Mali.ZXing + run: | + cd src/ZXing.Net.Maui + dotnet build -c Release --framework=net8.0-gtk ZXing.Net.MAUI/ZXing.Net.MAUI.csproj + dotnet build -c Release --framework=net8.0-gtk ZXing.Net.MAUI.Controls/ZXing.Net.MAUI.Controls.csproj + - 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 }} diff --git a/src/ZXing.Net.Maui/ZXing.Net.MAUI.Controls/ZXing.Net.MAUI.Controls.csproj b/src/ZXing.Net.Maui/ZXing.Net.MAUI.Controls/ZXing.Net.MAUI.Controls.csproj index 46731042ddde..bbb1ff9167a9 100644 --- a/src/ZXing.Net.Maui/ZXing.Net.MAUI.Controls/ZXing.Net.MAUI.Controls.csproj +++ b/src/ZXing.Net.Maui/ZXing.Net.MAUI.Controls/ZXing.Net.MAUI.Controls.csproj @@ -1,22 +1,26 @@  net8.0-gtk - ZXing.Net.Maui.Controls - ZXing.Net.MAUI Barcode Scanner for .NET MAUI - Redth + Mali.ZXing.Controls + Mali.ZXing (fork of ZXing.Net.MAUI) Barcode Scanner for .NET MAUI + webwarrior-ws,Redth True true false Copyright © Redth - https://github.com/redth/BigIslandBarcoding + https://github.com/nblockchain/Mali/tree/main/src/ZXing.Net.Maui + README.md MIT - https://github.com/redth/BigIslandBarcoding + https://github.com/nblockchain/Mali/tree/main/src/ZXing.Net.Maui $(PackageVersion) true portable Library + + + diff --git a/src/ZXing.Net.Maui/ZXing.Net.MAUI/ZXing.Net.MAUI.csproj b/src/ZXing.Net.Maui/ZXing.Net.MAUI/ZXing.Net.MAUI.csproj index 474a232aa2cf..cca6732ba1ca 100644 --- a/src/ZXing.Net.Maui/ZXing.Net.MAUI/ZXing.Net.MAUI.csproj +++ b/src/ZXing.Net.Maui/ZXing.Net.MAUI/ZXing.Net.MAUI.csproj @@ -1,15 +1,16 @@  net8.0-gtk - ZXing.Net.Maui - ZXing.Net.MAUI Barcode Scanner for .NET MAUI - Redth + Mali.ZXing + Mali.ZXing (fork of ZXing.Net.MAUI) Barcode Scanner for .NET MAUI + webwarrior-ws,Redth True True true false Copyright © Redth - https://github.com/redth/ZXing.Net.Maui + https://github.com/nblockchain/Mali/tree/main/src/ZXing.Net.Maui + README.md MIT True $(GitRepositoryUrl) @@ -27,6 +28,10 @@ $(MSBuildProjectDirectory)\..\..\ <_MauiBuildTasksLocation>$(MauiPath).nuspec\ + + + + From 921bf8fbd2266fa93e3724491a1fff7275c5eb85 Mon Sep 17 00:00:00 2001 From: webwarrior Date: Wed, 4 Dec 2024 10:56:54 +0100 Subject: [PATCH 2/2] WIP: build whole ZXing.Net.Maui solution --- .github/workflows/build-gtk.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/build-gtk.yml b/.github/workflows/build-gtk.yml index 242eaa0777f6..d8e8a07e6ca5 100644 --- a/.github/workflows/build-gtk.yml +++ b/.github/workflows/build-gtk.yml @@ -39,10 +39,7 @@ jobs: - name: Pack MAUI run: dotnet pack Mali.slnf - name: Build Mali.ZXing - run: | - cd src/ZXing.Net.Maui - dotnet build -c Release --framework=net8.0-gtk ZXing.Net.MAUI/ZXing.Net.MAUI.csproj - dotnet build -c Release --framework=net8.0-gtk ZXing.Net.MAUI.Controls/ZXing.Net.MAUI.Controls.csproj + 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