Skip to content

Commit 9a16d5e

Browse files
committed
feat: setup CI for windows build and release
1 parent e1fcfd5 commit 9a16d5e

File tree

5 files changed

+27
-8
lines changed

5 files changed

+27
-8
lines changed

.github/workflows/create_build.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ jobs:
4141

4242
build-windows:
4343
runs-on: windows-latest
44+
permissions:
45+
contents: write
4446

4547
steps:
4648
- name: Checkout code
@@ -57,11 +59,16 @@ jobs:
5759
- name: Build Windows app
5860
run: flutter build windows
5961

62+
- name: Package Windows app as a zip
63+
run: |
64+
cd build/windows/runner/Release
65+
Compress-Archive -Path "Socket_Probe.exe" -DestinationPath "Socket_Probe_Windows.zip"
66+
6067
- name: Upload Windows build to GitHub Releases
6168
uses: softprops/action-gh-release@v1
6269
with:
6370
tag_name: latest
64-
files: build/windows/runner/Release/MyApp.exe
71+
files: build/windows/runner/Release/Socket_Probe_Windows.zip
6572
env:
6673
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6774

@@ -71,5 +78,5 @@ jobs:
7178
steps:
7279
- name: Generate Public Links
7380
run: |
74-
echo "Download macOS App: https://github.com/${{ github.repository }}/releases/latest/download/Socket_Probe.zip"
81+
echo "Download macOS App: https://github.com/${{ github.repository }}/releases/latest/download/Socket_Probe_Macos.zip"
7582
echo "Download Windows App: https://github.com/${{ github.repository }}/releases/latest/download/MyApp.exe"

.metadata

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,21 @@ migration:
1515
- platform: root
1616
create_revision: 8495dee1fd4aacbe9de707e7581203232f591b2f
1717
base_revision: 8495dee1fd4aacbe9de707e7581203232f591b2f
18+
- platform: android
19+
create_revision: 8495dee1fd4aacbe9de707e7581203232f591b2f
20+
base_revision: 8495dee1fd4aacbe9de707e7581203232f591b2f
21+
- platform: ios
22+
create_revision: 8495dee1fd4aacbe9de707e7581203232f591b2f
23+
base_revision: 8495dee1fd4aacbe9de707e7581203232f591b2f
24+
- platform: linux
25+
create_revision: 8495dee1fd4aacbe9de707e7581203232f591b2f
26+
base_revision: 8495dee1fd4aacbe9de707e7581203232f591b2f
1827
- platform: macos
1928
create_revision: 8495dee1fd4aacbe9de707e7581203232f591b2f
2029
base_revision: 8495dee1fd4aacbe9de707e7581203232f591b2f
30+
- platform: web
31+
create_revision: 8495dee1fd4aacbe9de707e7581203232f591b2f
32+
base_revision: 8495dee1fd4aacbe9de707e7581203232f591b2f
2133
- platform: windows
2234
create_revision: 8495dee1fd4aacbe9de707e7581203232f591b2f
2335
base_revision: 8495dee1fd4aacbe9de707e7581203232f591b2f

windows/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ project(socket_probe LANGUAGES CXX)
44

55
# The name of the executable created for the application. Change this to change
66
# the on-disk name of your application.
7-
set(BINARY_NAME "Socket Probe")
7+
set(BINARY_NAME "Socket_Probe")
88

99
# Explicitly opt in to modern CMake behaviors to avoid warnings with recent
1010
# versions of CMake.

windows/runner/Runner.rc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@ BEGIN
8989
BEGIN
9090
BLOCK "040904e4"
9191
BEGIN
92-
VALUE "CompanyName", "com.socket_probe" "\0"
93-
VALUE "FileDescription", "Socket Probe" "\0"
92+
VALUE "CompanyName", "com.socketprobe.socketProbe" "\0"
93+
VALUE "FileDescription", "A software tool for testing websocket connections" "\0"
9494
VALUE "FileVersion", VERSION_AS_STRING "\0"
9595
VALUE "InternalName", "socket_probe" "\0"
96-
VALUE "LegalCopyright", "Copyright (C) 2025 com.socket_probe. All rights reserved." "\0"
97-
VALUE "OriginalFilename", "socket_probe.exe" "\0"
96+
VALUE "LegalCopyright", "Copyright (C) 2025 com.socketprobe.socketProbe. All rights reserved." "\0"
97+
VALUE "OriginalFilename", "Socket_Probe.exe" "\0"
9898
VALUE "ProductName", "Socket Probe" "\0"
9999
VALUE "ProductVersion", VERSION_AS_STRING "\0"
100100
END

windows/runner/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
2727
FlutterWindow window(project);
2828
Win32Window::Point origin(10, 10);
2929
Win32Window::Size size(1280, 720);
30-
if (!window.Create(L"socket_probe", origin, size)) {
30+
if (!window.Create(L"Socket Probe", origin, size)) {
3131
return EXIT_FAILURE;
3232
}
3333
window.SetQuitOnClose(true);

0 commit comments

Comments
 (0)