Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
philosowaffle committed Sep 24, 2023
1 parent 304e9de commit 672d335
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 14 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ jobs:
with:
dotnet-version: ${{ matrix.dotnet }}

# - name: Install MAUI Workloads
# run: dotnet workload install maui --ignore-failed-sources

- name: Clean
run: dotnet clean --configuration Debug && dotnet nuget locals all --clear

Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/publish-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
artifact: ${{ steps.win-ui-create-artifact.outputs.artifact }}
strategy:
matrix:
dotnet: [ '7.0' ]
dotnet: [ '7.0.400' ]
framework: ['net7.0-windows10.0.22621.0']
os: [ 'win10-x64' ]

Expand All @@ -96,20 +96,18 @@ jobs:
uses: papeloto/action-zip@v1
with:
files: ${{ needs.publish-windows-console-exe-dist.outputs.artifact }}
dest: /dist/${{ matrix.os }}_${{ github.event.inputs.version }}.zip
dest: /dist/console_win_${{ github.event.inputs.version }}.zip

- name: Create Zip for Win UI Release Artifact
uses: papeloto/action-zip@v1
with:
files: ${{ needs.publish-ui-dist.outputs.artifact }}
dest: /dist/${{ matrix.os }}_${{ github.event.inputs.version }}-ui.zip
dest: /dist/ui_win_${{ github.event.inputs.version }}.zip

- name: Create Release and Upload Artifacts
uses: ncipollo/release-action@v1
with:
artifacts:
- "${{ github.workspace }}/dist/${{ matrix.os }}_${{ github.event.inputs.version }}.zip"
- "${{ github.workspace }}/dist/${{ matrix.os }}_${{ github.event.inputs.version }}-ui.zip"
artifacts: "${{ github.workspace }}/dist/console_win_${{ github.event.inputs.version }}.zip,${{ github.workspace }}/dist/ui_win_${{ github.event.inputs.version }}.zip"
token: ${{ secrets.GITHUB_TOKEN }}
tag: v${{ github.event.inputs.version }}
allowUpdates: true
Expand Down
9 changes: 6 additions & 3 deletions src/ClientUI/ClientUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<!--<TargetFrameworks>net7.0-android;net7.0-ios;net7.0-maccatalyst</TargetFrameworks>-->
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net7.0-windows10.0.22621.0</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net7.0-windows10.0.22621.0</TargetFrameworks>
<!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET -->
<!-- <TargetFrameworks>$(TargetFrameworks);net7.0-tizen</TargetFrameworks> -->
<OutputType>Exe</OutputType>
Expand Down Expand Up @@ -53,7 +53,7 @@
<MauiFont Include="Resources\Fonts\*" />

<!-- Raw Assets (also remove the "Resources\Raw" prefix) -->
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
</ItemGroup>

<ItemGroup>
Expand All @@ -62,7 +62,10 @@

<ItemGroup>
<!-- Pinning this version fixes a dependency downgrade issue with Havit -->
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="7.0.1" />
<!--https://github.com/dotnet/maui/issues/10775-->
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="7.0.1">
<NoWarn>NU1603,NETSDK1023</NoWarn>
</PackageReference>
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Common/Database/SettingsDb.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ private void Init()
{
var settings = _db.GetItem<Settings>("1");
}
catch (KeyNotFoundException k)
catch (KeyNotFoundException)
{
var success = _db.InsertItem("1", _defaultSettings);
if (!success)
Expand Down
2 changes: 1 addition & 1 deletion src/SharedUI/SharedUI.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
Expand Down

0 comments on commit 672d335

Please sign in to comment.