Skip to content

Commit 4e806af

Browse files
build: Hide console in release and add GitHub releases
Link with -H=windowsgui for GUI subsystem, add release workflow on version tags, and refresh README with app icon and download badges.
1 parent 3263bb8 commit 4e806af

3 files changed

Lines changed: 57 additions & 7 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ jobs:
3030
run: go vet ./...
3131

3232
- name: Build
33-
run: go build -ldflags="-s -w" -tags production -o build/conduit.exe .
33+
run: go build -ldflags="-s -w -H=windowsgui" -tags production -o build/conduit.exe .

‎.github/workflows/release.yml‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
runs-on: windows-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- uses: actions/setup-go@v5
18+
with:
19+
go-version: "1.25"
20+
cache: true
21+
22+
- name: Install go-winres
23+
run: go install github.com/tc-hib/go-winres@latest
24+
25+
- name: Embed Windows icon
26+
run: go generate ./...
27+
28+
- name: Build
29+
run: go build -ldflags="-s -w -H=windowsgui" -tags production -o conduit.exe .
30+
31+
- uses: softprops/action-gh-release@v2
32+
with:
33+
files: conduit.exe
34+
generate_release_notes: true

‎README.md‎

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,39 @@
1-
# Conduit
1+
<p align="center">
2+
<img src="internal/app/assets/icon.png" alt="Conduit" width="128" height="128">
3+
</p>
24

3-
Windows desktop utility: a local HTTP CONNECT proxy with TLS ClientHello fragmentation and an embedded YouTube viewer (Wails v3 / WebView2).
5+
<h1 align="center">Conduit</h1>
46

5-
Designed for a small footprint: one WebView window, mobile YouTube UI, system-tray settings.
7+
<p align="center">
8+
Windows desktop utility: local HTTP CONNECT proxy with TLS ClientHello fragmentation and an embedded YouTube viewer (Wails v3 / WebView2).
9+
</p>
10+
11+
<p align="center">
12+
<a href="https://github.com/foursecondfivefour/conduit/releases/latest"><img src="https://img.shields.io/github/v/release/foursecondfivefour/conduit?label=download&style=flat-square" alt="Latest release"></a>
13+
<a href="https://github.com/foursecondfivefour/conduit/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/foursecondfivefour/conduit/ci.yml?branch=main&style=flat-square" alt="CI"></a>
14+
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue?style=flat-square" alt="MIT License"></a>
15+
</p>
16+
17+
Designed for a small footprint: one WebView window, mobile YouTube UI, system-tray settings. Release builds run without a console window.
18+
19+
## Download
20+
21+
Pre-built Windows binary (amd64): **[Latest release](https://github.com/foursecondfivefour/conduit/releases/latest)** — download `conduit.exe`, then run it. Requires [WebView2 Runtime](https://developer.microsoft.com/microsoft-edge/webview2/).
622

723
## Requirements
824

925
- Windows 10 (amd64)
10-
- [Go 1.22+](https://go.dev/dl/)
26+
- [Go 1.25+](https://go.dev/dl/) (to build from source)
1127
- [Microsoft Edge WebView2 Runtime](https://developer.microsoft.com/microsoft-edge/webview2/)
1228

1329
## Build
1430

1531
```powershell
1632
go generate ./... # embeds assets/windows/icon.ico into the .exe (needs go-winres)
17-
go build -ldflags="-s -w" -tags production -o build\conduit.exe .
33+
go build -ldflags="-s -w -H=windowsgui" -tags production -o build\conduit.exe .
1834
```
1935

20-
`rsrc_windows_amd64.syso` is checked in so a plain `go build` also works on Windows amd64.
36+
`-H=windowsgui` hides the console window in release builds. `rsrc_windows_amd64.syso` is checked in so a plain `go build` also works on Windows amd64 (add the same ldflags for a GUI subsystem).
2137

2238
## Run
2339

0 commit comments

Comments
 (0)