Skip to content

Commit

Permalink
Remove updates- prefix in installer-downloader
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Feb 27, 2025
1 parent cea326c commit ea2bf5d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions installer-downloader/src/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ pub fn initialize_controller<T: AppDelegate + 'static>(delegate: &mut T) {

// Version info provider to use
const STAGEMOLE_PUBKEY: &str = include_str!("../../mullvad-update/stagemole-pubkey");
//"https://releases.mullvad.net/desktop/metadata/updater-windows.json"
let verifying_key =
mullvad_update::format::key::VerifyingKey::from_hex(STAGEMOLE_PUBKEY).expect("valid key");
let version_provider = HttpVersionInfoProvider {
Expand All @@ -49,16 +48,16 @@ pub fn initialize_controller<T: AppDelegate + 'static>(delegate: &mut T) {
AppController::initialize::<_, Downloader<T>, _, DirProvider>(delegate, version_provider)
}

/// JSON files should be stored at `<base url>/updates-<platform>.json`.
fn get_metadata_url() -> String {
/// JSON files should be stored at `<base url>/<platform>.json`.
fn get_metadata_url() {
const PLATFORM: &str = if cfg!(target_os = "windows") {
"windows"
} else if cfg!(target_os = "macos") {
"macos"
} else {
panic!("Unsupported platform")
};
format!("https://releases.stagemole.eu/desktop/metadata/updates-{PLATFORM}.json")
format!("https://releases.stagemole.eu/desktop/metadata/{PLATFORM}.json")
}

impl AppController {
Expand Down

0 comments on commit ea2bf5d

Please sign in to comment.