Signed automatic updates from GitHub Releases

- Atmosphere checks the repo's latest release and offers new versions with their notes
- Updates are signed; installed copies refuse anything not signed with the project key
- Installer, macOS and AppImage builds update themselves; portable and deb/rpm link to the download
- Release workflow builds, signs and publishes every platform with latest.json on a version tag
- Check-for-updates row and automatic check setting in Settings
- Release guide in docs/releasing.md
This commit is contained in:
Christian
2026-11-18 21:25:50 -05:00
parent a5c6c2503b
commit 7f518eecc7
14 changed files with 562 additions and 12 deletions
+4 -1
View File
@@ -61,6 +61,7 @@ pub struct Settings {
pub cookies_browser: String,
pub cookies_file: String,
pub api_enabled: bool,
pub check_updates: bool,
pub api_port: u16,
pub api_read: bool,
pub api_control: bool,
@@ -106,6 +107,7 @@ impl Default for Settings {
cookies_browser: String::new(),
cookies_file: String::new(),
api_enabled: false,
check_updates: true,
api_port: 47823,
api_read: true,
api_control: true,
@@ -149,6 +151,7 @@ pub struct SettingsPatch {
pub cookies_browser: Option<String>,
pub cookies_file: Option<String>,
pub api_enabled: Option<bool>,
pub check_updates: Option<bool>,
pub api_port: Option<u16>,
pub api_read: Option<bool>,
pub api_control: Option<bool>,
@@ -201,7 +204,7 @@ impl Settings {
($($f:ident),*) => { $( if let Some(v) = p.$f { self.$f = v; } )* };
}
set!(save_as, embed_metadata, collection_folders, number_tracks, skip_downloaded, sponsorblock, embed_subtitles, embed_chapters, watch_clipboard);
set!(api_enabled, api_read, api_control, api_links);
set!(api_enabled, api_read, api_control, api_links, check_updates);
if let Some(p) = p.api_port.filter(|p| *p >= 1024) {
self.api_port = p;
}