From f7cc47cc6c89cd1f862b562aba3987c0ccf5a4c3 Mon Sep 17 00:00:00 2001 From: Mike Nolan Date: Wed, 29 Dec 2021 22:07:55 -0600 Subject: [PATCH] Fixed some stuff --- Timelapse/Pages/ExtensionWindow.razor | 26 ++++++++++++++++++++++++++ Timelapse/Shared/NoneFound.razor | 3 +++ createall.sh | 13 +++++++++++++ deb-arch.sh | 11 +++++++++++ 4 files changed, 53 insertions(+) create mode 100644 Timelapse/Pages/ExtensionWindow.razor create mode 100644 Timelapse/Shared/NoneFound.razor create mode 100644 createall.sh create mode 100644 deb-arch.sh diff --git a/Timelapse/Pages/ExtensionWindow.razor b/Timelapse/Pages/ExtensionWindow.razor new file mode 100644 index 0000000..b4d25ec --- /dev/null +++ b/Timelapse/Pages/ExtensionWindow.razor @@ -0,0 +1,26 @@ +@page "/ExtensionPage/{Extension}/{PageName}" +@using Timelapse.Api; +@inject NavigationManager Nav; +@dynamicComponent() + +@functions{ + RenderFragment dynamicComponent() => builder => + { + builder.OpenComponent(0, FindType()); + + builder.CloseComponent(); + }; + [Parameter] + public string Extension {get;set;} + [Parameter] + public string PageName {get;set;} + Type FindType() + { + string url = $"/ExtensionPage/{Extension}/{PageName}"; + if(Timelapse.Api.Extensions.Components.ContainsKey(url)) + { + return Timelapse.Api.Extensions.Components[url]; + } + return typeof(NoneFound); + } +} \ No newline at end of file diff --git a/Timelapse/Shared/NoneFound.razor b/Timelapse/Shared/NoneFound.razor new file mode 100644 index 0000000..254e8c3 --- /dev/null +++ b/Timelapse/Shared/NoneFound.razor @@ -0,0 +1,3 @@ +

+ No Blazor page Found +

\ No newline at end of file diff --git a/createall.sh b/createall.sh new file mode 100644 index 0000000..c6591c3 --- /dev/null +++ b/createall.sh @@ -0,0 +1,13 @@ + +electronize build /target custom "win-x86;win" /electron-arch ia32 /p:PublishReadyToRun=false +electronize build /target custom "win-x64;win" /electron-arch x64 /p:PublishReadyToRun=false + +electronize build /target custom "win10-x86;win" /electron-arch ia32 /p:PublishReadyToRun=false +electronize build /target custom "win10-x64;win" /electron-arch x64 /p:PublishReadyToRun=true +electronize build /target custom "win-arm;win" /electron-arch armv7l /p:PublishReadyToRun=false +electronize build /target custom "win10-arm;win" /electron-arch armv7l /p:PublishReadyToRun=false +electronize build /target custom "win10-arm64;win" /electron-arch arm64 /p:PublishReadyToRun=true + +electronize build /target custom "linux-x64;linux" /electron-arch x64 +electronize build /target custom "linux-arm;linux" /electron-arch armv7l +electronize build /target custom "linux-arm64;linux" /electron-arch arm64 \ No newline at end of file diff --git a/deb-arch.sh b/deb-arch.sh new file mode 100644 index 0000000..b7953c9 --- /dev/null +++ b/deb-arch.sh @@ -0,0 +1,11 @@ +export ARCHITECTURE=amd64 +cd Timelapse +rm -rf ../deb/usr/share/TimelapseNow/bin/ +cp -r bin/Desktop/linux-unpacked/ ../deb/usr/share/TimelapseNow/bin/ +echo "Package: timelapsenow" > ../deb/DEBIAN/control +echo "Version: 1.0.0" >> ../deb/DEBIAN/control +echo "Architecture: $ARCHITECTURE" >> ../deb/DEBIAN/control +echo "Maintainer: Michael Nolan " >> ../deb/DEBIAN/control +echo "Description: Record In Steps" >> ../deb/DEBIAN/control +dpkg-deb --build --root-owner-group ../deb +mv ../deb.deb ../timelapsenow_1.0.0_$ARCHITECTURE.deb \ No newline at end of file