Skip to content

Commit ac94d2b

Browse files
committed
Enable Attestations for Release Artifacts
1 parent 5ba9a8b commit ac94d2b

9 files changed

Lines changed: 34 additions & 8 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,6 @@ jobs:
6868
archive: $bin-lite-$tag-$target
6969
token: ${{ secrets.GITHUB_TOKEN }}
7070
checksum: sha512
71-
# - uses: actions/attest-build-provenance@v1
72-
# with:
73-
# subject-path: "**/*.tar.gz,**/*.zip"
71+
- uses: actions/attest-build-provenance@v1
72+
with:
73+
subject-path: "**/*.tar.gz,**/*.zip"

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "yap"
33
repository = "https://github.com/nullstalgia/yap"
4-
version = "0.1.0-pre.0"
4+
version = "0.1.0"
55
# Note to self, if doing a pre-release:
66
# start at: -pre.0
77
# just -pre will go before any .x entries

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,16 @@ Try to connect to found USB device with VID 303A and PID 1001 and Serial Number
8282
```
8383
yap 303A:1001:123456 9600
8484
```
85+
86+
## Antivirus notice:
87+
88+
Downloaded Windows builds of `yap` may falsely trigger Windows Defender, likely due to the executable's capacity to self-update.
89+
90+
Release builds have GitHub Attestations enabled to help you to verify their authenticity!
91+
92+
93+
## Acknowledgements:
94+
95+
Inspired by the likes of [minicom](https://salsa.debian.org/minicom-team/minicom)/[picocom](https://github.com/npat-efault/picocom), [Termite](https://www.compuphase.com/software_termite.htm), [CuteCom](https://cutecom.sourceforge.net/), [PuTTY](https://www.chiark.greenend.org.uk/~sgtatham/putty/), and others.
96+
97+
This wouldn't have been possible without the prior work of the original [`ansi-to-tui`](https://github.com/ratatui/ansi-to-tui) crate, [`esp-rs`'s team](https://github.com/esp-rs), [Ferrous Systems](https://ferrous-systems.com/), and many many other incredible crate authors and educators. Thank you all!

example_configs/yap_colors.toml.blank

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Place as many Color Rules here as you like!
2+
# Ensure each one starts with [[literal]] or [[regex]] to denote the rule type.
3+
14
# Color Highlight Rule Example: case-insensitive match
25
# Example
36
# [[regex]] ## type of rule (regex/literal)

example_configs/yap_espflash_profiles.toml.blank

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Place as many espflash profiles here as you like!
2+
# Ensure each one starts with [[bin]] or [[elf]] to denote the profile type.
3+
14
# .bin example
25
# [[bin]] ## type of profile (bin/elf)
36
# name = "PlatformIO Core v2 Build" ## name in macros and UI

examples/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
`tcp_log_listener` is a helpful listener for Tracing events (since the console is taken up by the App TUI). It's presently hardcoded to listen to `127.0.0.1:7331`.
2+
3+
`tcp_log_send_test` is just to help smoke-test `tcp_log_listener`.

src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ fn main() -> color_eyre::Result<()> {
44

55
// Sooner TODOs:
66
// deduplication of code for defmt and logging defmt
7+
// SignPath for release binaries
78

89
// General TODOs:
910
// Mouse select in line mode?

src/settings/mod.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,15 @@ const DEFAULT_LOG_LEVEL: Level = Level::Trace;
4242
#[cfg(not(debug_assertions))]
4343
const DEFAULT_LOG_LEVEL: Level = Level::Debug;
4444

45-
const DEFAULT_LOG_SOCKET: SocketAddr = {
45+
#[cfg(debug_assertions)]
46+
const DEFAULT_LOG_SOCKET_OPT: Option<SocketAddr> = {
4647
let addr = Ipv4Addr::new(127, 0, 0, 1);
4748
let port = 7331;
4849

49-
SocketAddr::new(IpAddr::V4(addr), port)
50+
Some(SocketAddr::new(IpAddr::V4(addr), port))
5051
};
52+
#[cfg(not(debug_assertions))]
53+
const DEFAULT_LOG_SOCKET_OPT: Option<SocketAddr> = None;
5154

5255
#[serde_inline_default]
5356
#[derive(Debug, Clone, Serialize, Deserialize, Derivative)]
@@ -91,7 +94,7 @@ pub struct Misc {
9194
pub log_level: Level,
9295

9396
#[serde_inline_default_parent]
94-
#[derivative(Default(value = "Some(DEFAULT_LOG_SOCKET)"))]
97+
#[derivative(Default(value = "DEFAULT_LOG_SOCKET_OPT"))]
9598
#[serde_as(as = "NoneAsEmptyString")]
9699
pub log_tcp_socket: Option<SocketAddr>,
97100
}

0 commit comments

Comments
 (0)