|
|
@ -119,8 +119,11 @@ fn target_to_platforms(
|
|
|
|
update_platform: Option<String>,
|
|
|
|
update_platform: Option<String>,
|
|
|
|
signature: String,
|
|
|
|
signature: String,
|
|
|
|
) -> HashMap<String, PlatformUpdate> {
|
|
|
|
) -> HashMap<String, PlatformUpdate> {
|
|
|
|
|
|
|
|
|
|
|
|
let mut platforms = HashMap::new();
|
|
|
|
let mut platforms = HashMap::new();
|
|
|
|
if let Some(platform) = update_platform {
|
|
|
|
if let Some(platform) = update_platform {
|
|
|
|
|
|
|
|
println!("TARGET: {}", platform.clone());
|
|
|
|
|
|
|
|
|
|
|
|
platforms.insert(
|
|
|
|
platforms.insert(
|
|
|
|
platform,
|
|
|
|
platform,
|
|
|
|
PlatformUpdate {
|
|
|
|
PlatformUpdate {
|
|
|
@ -201,11 +204,11 @@ fn bundle_path(root_dir: &Path, _version: &str, v1compatible: bool) -> PathBuf {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#[cfg(windows)]
|
|
|
|
#[cfg(windows)]
|
|
|
|
fn bundle_paths(
|
|
|
|
fn test_cases(
|
|
|
|
root_dir: &Path,
|
|
|
|
root_dir: &Path,
|
|
|
|
version: &str,
|
|
|
|
version: &str,
|
|
|
|
v1compatible: bool,
|
|
|
|
target: String
|
|
|
|
) -> Vec<(BundleTarget, PathBuf)> {
|
|
|
|
) -> Vec<(BundleTarget, PathBuf, Option<String>, Vec<i32>)> {
|
|
|
|
vec![
|
|
|
|
vec![
|
|
|
|
(
|
|
|
|
(
|
|
|
|
BundleTarget::Nsis,
|
|
|
|
BundleTarget::Nsis,
|
|
|
@ -302,7 +305,7 @@ fn update_app() {
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// bundle app update
|
|
|
|
// bundle app update
|
|
|
|
config.version = "1.0.0";
|
|
|
|
config.version = "1.0.0";
|
|
|
|
build_app(&manifest_dir, &config, true, BundleTarget::get_targets());
|
|
|
|
build_app(&manifest_dir, &config, true, BundleTarget::default());
|
|
|
|
|
|
|
|
|
|
|
|
let bundle_updater_ext = if v1_compatible {
|
|
|
|
let bundle_updater_ext = if v1_compatible {
|
|
|
|
out_bundle_path
|
|
|
|
out_bundle_path
|
|
|
|