Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .dockerignore

This file was deleted.

66 changes: 0 additions & 66 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,16 @@ on:
- '**'
types: [ opened, reopened, synchronize ]
workflow_call:
inputs:
platforms:
description: 'Platforms to build for'
required: false
type: string
latest:
description: 'Tag image as latest'
required: false
type: boolean
default: false
rc:
description: 'Tag image as rc'
required: false
type: boolean
default: false
workflow_dispatch:

name: ci-build

permissions:
contents: read
actions: write
packages: write

env:
DOTNET_VERSION: 10.0.x
REGISTRY: ghcr.io

jobs:

Expand Down Expand Up @@ -143,55 +126,6 @@ jobs:
if-no-files-found: error


build-linux-web-containers:
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1

- name: Log in to Container Registry
uses: docker/login-action@8aa5831fb8d48d8f76594c7ddde61ae58019f550 # v4.8.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6.2.0
with:
images: ${{ env.REGISTRY }}/${{ github.repository_owner }}/desktop
flavor: |
latest=false
tags: |
type=raw,value={{branch}},enable=${{ github.ref_type == 'branch' && github.event_name != 'pull_request' }}
type=raw,value=latest,enable=${{ github.event_name == 'workflow_call' && (inputs.latest || false) }}
type=raw,value=rc,enable=${{ github.event_name == 'workflow_call' && (inputs.rc || false) }}
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{major}},enable=${{ !startsWith(github.ref, 'refs/tags/v0.') }}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}.{{minor}}.{{patch}}

- name: Build and push
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
with:
context: .
file: Dockerfile
push: ${{ (inputs.latest || inputs.rc) || (github.ref_protected && github.event_name != 'pull_request') }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: ${{ inputs.platforms || 'linux/amd64' }}
cache-from: |
type=gha
cache-to: |
type=gha

build-linux-photino:
runs-on: ubuntu-latest
timeout-minutes: 10
Expand Down
40 changes: 1 addition & 39 deletions .github/workflows/ci-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,47 +8,9 @@ name: ci-tag

jobs:

# Pre-job to find the latest tag
get-latest-tag:
runs-on: ubuntu-latest
timeout-minutes: 2
outputs:
latest-tag: ${{ steps.latest-tag.outputs.tag }}
steps:
# Ignore preview or RC tags when searching for the latest
- name: Find latest tag
id: latest-tag
continue-on-error: true
uses: OpenShock/actions/find-latest-tag@21ca2d511bca92cf24fb502fa302f82700822584 # v1.1.1
with:
regex: '^[0-9]+\.[0-9]+\.[0-9]+$'
- name: Set output
run: echo "latest-tag=${{ steps.latest-tag.outputs.tag }}"

# Pre-job to find the latest RC tag
get-latest-rc-tag:
runs-on: ubuntu-latest
timeout-minutes: 2
outputs:
latest-rc: ${{ steps.latest-rc.outputs.tag }}
steps:
- name: Find latest RC tag
id: latest-rc
continue-on-error: true
uses: OpenShock/actions/find-latest-tag@21ca2d511bca92cf24fb502fa302f82700822584 # v1.1.1
with:
regex: '^[0-9]+\.[0-9]+\.[0-9]+-rc\.[0-9]+$'
- name: Set output
run: echo "latest-rc=${{ steps.latest-rc.outputs.tag }}"

# Delegate building and containerizing to a single workflow.
# Delegate building to a single workflow.
build:
needs: [get-latest-tag, get-latest-rc-tag]
uses: ./.github/workflows/ci-build.yml
with:
platforms: linux/amd64,linux/arm64
latest: ${{ needs.get-latest-tag.outputs.latest-tag == github.ref_name }}
rc: ${{ needs.get-latest-rc-tag.outputs.latest-rc == github.ref_name }}

# Build module base for release assets
build-module-base:
Expand Down
8 changes: 0 additions & 8 deletions Desktop.slnx
Original file line number Diff line number Diff line change
@@ -1,33 +1,25 @@
<Solution>
<Configurations>
<BuildType Name="Debug-Photino" />
<BuildType Name="Debug-Web" />
<BuildType Name="Debug-Windows" />
<BuildType Name="Release-Photino" />
<BuildType Name="Release-Web" />
<BuildType Name="Release-Windows" />
</Configurations>
<Project Path="Desktop/Desktop.csproj" />
<Project Path="ExampleModule/ExampleModule.csproj">
<Configuration Solution="Debug-Web|Any CPU" Project="Debug|Any CPU" />
<Configuration Solution="Debug-Windows|Any CPU" Project="Debug|Any CPU" />
<Configuration Solution="Release-Web|Any CPU" Project="Release|Any CPU" />
<Configuration Solution="Release-Windows|Any CPU" Project="Release|Any CPU" />
<Configuration Solution="Debug-Photino|Any CPU" Project="Debug|Any CPU" />
<Configuration Solution="Release-Photino|Any CPU" Project="Release|Any CPU" />
</Project>
<Project Path="ModuleBase/ModuleBase.csproj">
<Configuration Solution="Debug-Web|Any CPU" Project="Debug|Any CPU" />
<Configuration Solution="Debug-Windows|Any CPU" Project="Debug|Any CPU" />
<Configuration Solution="Release-Web|Any CPU" Project="Release|Any CPU" />
<Configuration Solution="Release-Windows|Any CPU" Project="Release|Any CPU" />
<Configuration Solution="Debug-Photino|Any CPU" Project="Debug|Any CPU" />
<Configuration Solution="Release-Photino|Any CPU" Project="Release|Any CPU" />
</Project>
<Project Path="Desktop.ModuleManager.Tests/Desktop.ModuleManager.Tests.csproj">
<Configuration Solution="Debug-Web|Any CPU" Project="Debug|Any CPU" />
<Configuration Solution="Debug-Windows|Any CPU" Project="Debug|Any CPU" />
<Configuration Solution="Release-Web|Any CPU" Project="Release|Any CPU" />
<Configuration Solution="Release-Windows|Any CPU" Project="Release|Any CPU" />
<Configuration Solution="Debug-Photino|Any CPU" Project="Debug|Any CPU" />
<Configuration Solution="Release-Photino|Any CPU" Project="Release|Any CPU" />
Expand Down
2 changes: 1 addition & 1 deletion Desktop/Bootstrap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public static void AddOpenShockDesktopServices(this IServiceCollection services)
var isDebug = Environment.GetCommandLineArgs()
.Any(x => x.Equals("--debug", StringComparison.InvariantCultureIgnoreCase));

#if DEBUG_WINDOWS || DEBUG_PHOTINO || DEBUG_WEB
#if DEBUG_WINDOWS || DEBUG_PHOTINO
isDebug = true;
#endif
if (isDebug)
Expand Down
8 changes: 1 addition & 7 deletions Desktop/Desktop.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

<DefineConstants>DISABLE_XAML_GENERATED_MAIN</DefineConstants>

<Configurations>Release-Windows;Debug-Windows;Release-Photino;Debug-Photino;Release-Web;Debug-Web</Configurations>
<Configurations>Release-Windows;Debug-Windows;Release-Photino;Debug-Photino</Configurations>

<SupportedOSPlatformVersion>10.0.17763.0</SupportedOSPlatformVersion>
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
Expand Down Expand Up @@ -52,12 +52,6 @@
<PackageReference Include="Photino.Blazor" />
</ItemGroup>

<PropertyGroup Condition="'$(Configuration)' == 'Debug-Web' Or '$(Configuration)' == 'Release-Web' ">
<TargetFramework>net10.0</TargetFramework>
<StartupObject>OpenShock.Desktop.Platforms.Web.WebEntryPoint</StartupObject>
<DefineConstants>WEB</DefineConstants>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AspNetCore.SassCompiler" />
<PackageReference Include="CommandLineParser" />
Expand Down
24 changes: 0 additions & 24 deletions Desktop/Platforms/Web/App.razor

This file was deleted.

73 changes: 0 additions & 73 deletions Desktop/Platforms/Web/WebEntryPoint.cs

This file was deleted.

2 changes: 1 addition & 1 deletion Desktop/Utils/RestartHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ sleep 0.5

Environment.Exit(0);
#else
// No restart mechanism for other targets (e.g. the web host); no-op.
// No restart mechanism for other targets; no-op.
#endif
}
}
23 changes: 0 additions & 23 deletions Dockerfile

This file was deleted.

9 changes: 0 additions & 9 deletions docker-compose.yml

This file was deleted.

5 changes: 0 additions & 5 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@
"matchManagers": ["github-actions"],
"matchDepTypes": ["action"],
"groupName": "github-actions"
},
{
"description": "The .NET SDK and runtime images must move together",
"matchPackageNames": ["dotnet-sdk", "mcr.microsoft.com/dotnet/sdk", "mcr.microsoft.com/dotnet/aspnet"],
"groupName": "dotnet sdk and images"
}
]
}
Loading