Skip to content

Commit ef06c11

Browse files
committed
Add release workflow, implement window embedding, and create main application structure
- Added a GitHub Actions workflow for automated releases on tag pushes. - Implemented the PaneManager class to manage window panes and their interactions. - Created the WindowEmbedder class to handle embedding external windows into the application. - Introduced the WindowPicker class to list available windows for embedding. - Developed the ShellForm class as the main application window. - Added Win32 interop functionality for window manipulation. - Created a manifest file for application settings and compatibility. - Added an SVG icon for the application. - Updated .gitignore to exclude publish directory.
1 parent 19f94ea commit ef06c11

File tree

11 files changed

+60
-0
lines changed

11 files changed

+60
-0
lines changed

.github/workflows/release.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
runs-on: windows-latest
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Setup .NET
20+
uses: actions/setup-dotnet@v4
21+
with:
22+
dotnet-version: "8.0.x"
23+
24+
- name: Derive version from tag
25+
id: version
26+
shell: pwsh
27+
run: |
28+
$tag = "${{ github.ref_name }}"
29+
if ($tag.StartsWith("v")) {
30+
$version = $tag.Substring(1)
31+
} else {
32+
$version = $tag
33+
}
34+
"version=$version" >> $env:GITHUB_OUTPUT
35+
36+
- name: Restore
37+
run: dotnet restore src/WinGroup.csproj
38+
39+
- name: Publish win-x64
40+
run: dotnet publish src/WinGroup.csproj -c Release -r win-x64 --self-contained false -p:Version=${{ steps.version.outputs.version }} -p:InformationalVersion=${{ github.ref_name }} -o publish/win-x64
41+
42+
- name: Archive release
43+
shell: pwsh
44+
run: Compress-Archive -Path publish/win-x64/* -DestinationPath "WinGroup-${{ steps.version.outputs.version }}-win-x64.zip"
45+
46+
- name: Create GitHub release
47+
uses: softprops/action-gh-release@v2
48+
with:
49+
name: WinGroup ${{ github.ref_name }}
50+
files: WinGroup-${{ steps.version.outputs.version }}-win-x64.zip
51+
generate_release_notes: true
52+
prerelease: ${{ contains(github.ref_name, '-') }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
bin/
22
obj/
33
.vs/
4+
publish/
45

56
*.user
67
*.rsuser

icon.svg

Lines changed: 7 additions & 0 deletions
Loading
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)