mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 13:05:32 +09:00
feat(desktop): sign every Windows release artifact (#1548)
This commit is contained in:
1 parent
873c203b5d
commit
6e66c92dca
89 files changed
+2408
-2740
No files matched your search
@@ -1,6 +1,8 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
use crate::common::{CommandSpec, command_succeeds, output_text, run_command};
|
||||
use crate::common::{
|
||||
CommandSpec, command_succeeds, output_text, remove_file_if_exists, run_command,
|
||||
};
|
||||
use anyhow::{Context, Result, anyhow, bail, ensure};
|
||||
use clap::Args;
|
||||
use sha2::{Digest, Sha256};
|
||||
@@ -738,6 +740,14 @@ fn build_win_game_capture_vulkan_layer(
|
||||
required,
|
||||
)?;
|
||||
let manifest_path = root.join(format!("fluxer-vulkan-layer.{}.json", arch.tag));
|
||||
if !root.join(&layer_dll_name).exists() {
|
||||
remove_file_if_exists(&manifest_path)?;
|
||||
println!(
|
||||
"[win-game-capture] no {layer_dll_name}; not emitting {} so packages never ship a manifest pointing at an absent layer",
|
||||
manifest_path.display()
|
||||
);
|
||||
return Ok(());
|
||||
}
|
||||
fs::write(&manifest_path, vulkan_layer_manifest(&layer_dll_name))
|
||||
.with_context(|| format!("Failed to write {}", manifest_path.display()))?;
|
||||
println!("[win-game-capture] emitted {}", manifest_path.display());
|
||||
|
||||
Reference in new issue
Block a user