f508d3213f
apple / swift (push) Successful in 1m5s
android / android (push) Successful in 4m23s
audit / cargo-audit (push) Successful in 42s
audit / bun-audit (push) Successful in 19s
arch / build-publish (push) Successful in 5m38s
ci / rust (push) Failing after 44s
ci / web (push) Successful in 51s
ci / docs-site (push) Successful in 1m3s
windows-host / package (push) Successful in 8m41s
release / apple (push) Successful in 8m45s
windows-msix / package (arm64, C:\Users\Public\ffmpeg-arm64, --no-default-features, aarch64-pc-windows-msvc, C:\t-a64) (push) Successful in 1m49s
ci / bench (push) Successful in 4m51s
decky / build-publish (push) Successful in 13s
windows-msix / package (x64, C:\Users\Public\ffmpeg, , x86_64-pc-windows-msvc, C:\t) (push) Successful in 1m44s
deb / build-publish (push) Successful in 5m31s
docker / build-push (., web/Dockerfile, punktfunk-web) (push) Successful in 34s
windows / build (aarch64-pc-windows-msvc) (push) Failing after 1m16s
docker / build-push (--build-arg FEDORA_VERSION=44, ci, ci/fedora-rpm.Dockerfile, punktfunk-fedora44-rpm) (push) Successful in 2m36s
windows / build (x86_64-pc-windows-msvc) (push) Failing after 1m23s
apple / screenshots (push) Successful in 5m44s
docker / build-push (ci, ci/rust-ci.Dockerfile, punktfunk-rust-ci) (push) Successful in 2m23s
docker / build-push (docs-site, docs-site/Dockerfile, punktfunk-docs) (push) Successful in 52s
docker / build-push (ci, ci/fedora-rpm.Dockerfile, punktfunk-fedora-rpm) (push) Successful in 4m39s
flatpak / build-publish (push) Failing after 3m13s
rpm / build-publish (43, bazzite, punktfunk-fedora-rpm) (push) Successful in 11m24s
docker / deploy-docs (push) Successful in 29s
rpm / build-publish (44, fedora-44, punktfunk-fedora44-rpm) (push) Successful in 11m27s
UAC prompts, Task Manager and Properties→Details show FileDescription; without one the exe appeared as its raw filename. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
25 lines
1.2 KiB
Rust
25 lines
1.2 KiB
Rust
//! Embed the Windows version-info + icon resources into `punktfunk-session.exe`. The
|
|
//! icon drives Explorer, and `pf-presenter`'s `win32::stamp_window_icon` loads it by
|
|
//! ordinal 1 onto the SDL window's title bar / taskbar / Alt-Tab (SDL's own window-class
|
|
//! icon is the generic default).
|
|
|
|
fn main() {
|
|
// cfg(windows) is the HOST (skips Linux/macOS builds of this cross-platform binary);
|
|
// CARGO_CFG_WINDOWS is the TARGET (x64 and cross-compiled ARM64 both pass).
|
|
#[cfg(windows)]
|
|
if std::env::var_os("CARGO_CFG_WINDOWS").is_some() {
|
|
let icon = "../../packaging/windows/branding/punktfunk.ico";
|
|
println!("cargo:rerun-if-changed={icon}");
|
|
winresource::WindowsResource::new()
|
|
// Ordinal 1 — pf-presenter's win32.rs loads it by this id for WM_SETICON.
|
|
.set_icon_with_id(icon, "1")
|
|
// The version-info strings Windows surfaces for the bare exe — UAC prompts,
|
|
// Task Manager and Properties→Details all show FileDescription (without one
|
|
// the exe appears as its raw filename).
|
|
.set("FileDescription", "Punktfunk Session")
|
|
.set("ProductName", "Punktfunk")
|
|
.compile()
|
|
.expect("embed windows icon resource");
|
|
}
|
|
}
|