Fixed some stuff

This commit is contained in:
Mike Nolan 2021-12-29 22:07:55 -06:00
parent 0cb21eb58c
commit f7cc47cc6c
4 changed files with 53 additions and 0 deletions

View File

@ -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);
}
}

View File

@ -0,0 +1,3 @@
<h1>
No Blazor page Found
</h1>

13
createall.sh Normal file
View File

@ -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

11
deb-arch.sh Normal file
View File

@ -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 <tesses50@tesses.cf>" >> ../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