-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'refs/heads/main' into action/deploy
- Loading branch information
Showing
228 changed files
with
13,184 additions
and
849 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,12 @@ name: Deploy to GitHub Pages | |
|
||
env: | ||
PROJECT_PATH: demo/Ursa.Demo.Browser/Ursa.Demo.Browser.csproj | ||
OUTPUT_PATH: demo/Ursa.Demo.Browser/bin/Release/net7.0/browser-wasm/AppBundle | ||
OUTPUT_PATH: demo/Ursa.Demo.Browser/bin/Release/net8.0-browser/publish/wwwroot | ||
on: | ||
push: | ||
branches: [ "deploy" ] | ||
branches: [ "action/deploy" ] | ||
pull_request: | ||
branches: [ "deploy" ] | ||
branches: [ "action/deploy" ] | ||
|
||
jobs: | ||
deploy-to-github-pages: | ||
|
@@ -16,32 +16,23 @@ jobs: | |
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Setup .NET 7 | ||
- name: Setup .NET 8 | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 7.0.405 | ||
dotnet-version: 8.0.x | ||
|
||
- name: Install wasm-tools | ||
run: dotnet workload install wasm-tools wasm-tools-net7 | ||
|
||
- name: Install DotNetCompress | ||
run: dotnet tool install --global DotNetCompress --version 3.0.0 --no-cache | ||
run: dotnet workload install wasm-tools | ||
|
||
- name: Publish .NET Project | ||
run: dotnet publish $PROJECT_PATH -c Release -o release --nologo | ||
run: dotnet publish $PROJECT_PATH -c Release --nologo | ||
|
||
- name: Change base-tag in index.html | ||
run: sed -i 's/<base href="\/" \/>/<base href="\/Ursa.Avalonia\/" \/>/g' $OUTPUT_PATH/index.html | ||
|
||
- name: copy index.html to 404.html | ||
run: cp $OUTPUT_PATH/index.html $OUTPUT_PATH/404.html | ||
|
||
- name: Compress Output using Brotli | ||
run: DotNetCompress -d $OUTPUT_PATH -p "*.dll" "*.js" "*.wasm" --format br --threads 4 | ||
|
||
- name: Compress Output using GZip | ||
run: DotNetCompress -d $OUTPUT_PATH -p "*.dll" "*.js" "*.wasm" --format gz --threads 4 | ||
|
||
- name: Add .nojekyll file | ||
run: touch $OUTPUT_PATH/.nojekyll | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Pack | ||
|
||
on: | ||
push: | ||
branches: [ "action/pack" ] | ||
pull_request: | ||
branches: [ "action/pack" ] | ||
|
||
jobs: | ||
nuget_desktop: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Nuget Ursa | ||
run: dotnet pack ./src/Ursa -o ./nugets | ||
|
||
- name: Nuget Ursa.Themes.Semi | ||
run: dotnet pack ./src/Ursa.Themes.Semi -o ./nugets | ||
|
||
- name: Desktop | ||
run: dotnet publish ./demo/Ursa.Demo.Desktop -r win-x64 -c Release /p:PublishSingleFile=true /p:IncludeNativeLibrariesForSelfExtract=true --self-contained true | ||
|
||
- name: Upload a Build Artifact | ||
uses: actions/[email protected] | ||
with: | ||
name: nuget_desktop | ||
path: | | ||
./nugets | ||
./**/publish/*.exe | ||
android: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: CD Android | ||
run: cd ./demo/Ursa.Demo.Android | ||
|
||
- name: Restore Dependencies | ||
run: dotnet restore | ||
|
||
- name: Build | ||
run: dotnet publish ./demo/Ursa.Demo.Android -c Release -f net8.0-android --no-restore | ||
|
||
- name: Upload a Build Artifact | ||
uses: actions/[email protected] | ||
with: | ||
name: android | ||
path: ./**/publish/*Signed.apk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<Nullable>enable</Nullable> | ||
<AvaloniaVersion>11.0.9</AvaloniaVersion> | ||
<AvaloniaVersion>11.1.0-rc2</AvaloniaVersion> | ||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,18 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<Project Sdk="Microsoft.NET.Sdk.WebAssembly"> | ||
<PropertyGroup> | ||
<TargetFramework>net7.0</TargetFramework> | ||
<RuntimeIdentifier>browser-wasm</RuntimeIdentifier> | ||
<WasmMainJSPath>AppBundle\main.js</WasmMainJSPath> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>net8.0-browser</TargetFramework> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<WasmExtraFilesToDeploy Include="AppBundle\**"/> | ||
<PackageReference Include="Avalonia.Browser" Version="$(AvaloniaVersion)"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Avalonia.Browser" Version="$(AvaloniaVersion)"/> | ||
<ProjectReference Include="..\Ursa.Demo\Ursa.Demo.csproj"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Ursa.Demo\Ursa.Demo.csproj"/> | ||
<TrimmerRootDescriptor Include="linker.xml"/> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<linker> | ||
<assembly fullname="Semi.Avalonia, Version=11.1.0.0, Culture=neutral, PublicKeyToken=null"/> | ||
<assembly fullname="Ursa, Version=0.3.0.0, Culture=neutral, PublicKeyToken=null"/> | ||
<assembly fullname="Ursa.Themes.Semi, Version=0.3.0.0, Culture=neutral, PublicKeyToken=null"/> | ||
</linker> |
File renamed without changes
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +0,0 @@ | ||
namespace Ursa.Demo; | ||
|
||
public static class MenuKeys | ||
{ | ||
public const string MenuKeyIntroduction = "Introduction"; | ||
public const string MenuKeyBadge = "Badge"; | ||
public const string MenuKeyBanner = "Banner"; | ||
public const string MenuKeyButtonGroup = "ButtonGroup"; | ||
public const string MenuKeyClassInput = "Class Input"; | ||
public const string MenuKeyDialog = "Dialog"; | ||
public const string MenuKeyDivider = "Divider"; | ||
public const string MenuKeyDisableContainer = "DisableContainer"; | ||
public const string MenuKeyDrawer = "Drawer"; | ||
public const string MenuKeyDualBadge = "DualBadge"; | ||
public const string MenuKeyEnumSelector = "EnumSelector"; | ||
public const string MenuKeyForm = "Form"; | ||
public const string MenuKeyImageViewer = "ImageViewer"; | ||
public const string MenuKeyIpBox = "IPv4Box"; | ||
public const string MenuKeyIconButton = "IconButton"; | ||
public const string MenuKeyKeyGestureInput = "KeyGestureInput"; | ||
public const string MenuKeyLoading = "Loading"; | ||
public const string MenuKeyMessageBox = "MessageBox"; | ||
public const string MenuKeyNavMenu = "NavMenu"; | ||
public const string MenuKeyNumberDisplayer = "NumberDisplayer"; | ||
public const string MenuKeyNumericUpDown = "NumericUpDown"; | ||
public const string MenuKeyPagination = "Pagination"; | ||
public const string MenuKeyRangeSlider = "RangeSlider"; | ||
public const string MenuKeySelectionList = "SelectionList"; | ||
public const string MenuKeyTagInput = "TagInput"; | ||
public const string MenuKeySkeleton = "Skeleton"; | ||
public const string MenuKeyTimeline = "Timeline"; | ||
public const string MenuKeyTwoTonePathIcon = "TwoTonePathIcon"; | ||
public const string MenuKeyThemeToggler = "ThemeToggler"; | ||
public const string MenuKeyToolBar = "ToolBar"; | ||
|
||
} | ||
Oops, something went wrong.