sparklers-sys 0.1.0

Low-level bindings to the Sparkle application update framework for macOS
// TODO: Is this necessary?
// const COMMANDS: &[&str] = &[
//     "check_for_updates",
//     "check_for_updates_in_background",
//     "can_check_for_updates",
//     "current_version",
//     "feed_url",
//     "set_feed_url",
//     "automatically_checks_for_updates",
//     "set_automatically_checks_for_updates",
//     "automatically_downloads_updates",
//     "set_automatically_downloads_updates",
//     "last_update_check_date",
//     "reset_update_cycle",
//     "update_check_interval",
//     "set_update_check_interval",
//     "check_for_update_information",
//     "session_in_progress",
//     "http_headers",
//     "set_http_headers",
//     "user_agent_string",
//     "set_user_agent_string",
//     "sends_system_profile",
//     "set_sends_system_profile",
//     "clear_feed_url_from_user_defaults",
//     "reset_update_cycle_after_short_delay",
//     "allowed_channels",
//     "set_allowed_channels",
//     "feed_url_override",
//     "set_feed_url_override",
//     "feed_parameters",
//     "set_feed_parameters",
//     "should_download_release_notes",
//     "set_should_download_release_notes",
//     "should_relaunch_application",
//     "set_should_relaunch_application",
//     "may_check_for_updates_config",
//     "set_may_check_for_updates_config",
//     "should_proceed_with_update",
//     "set_should_proceed_with_update",
//     "decryption_password",
//     "set_decryption_password",
//     "last_found_update",
// ];

use sparklers_find_framework::{is_publish_verify, setup_sparkle_framework};

fn main() {
    if std::env::var("CARGO_CFG_TARGET_OS").ok().as_deref() == Some("macos") && !is_publish_verify()
    {
        setup_sparkle_framework();
    }
}