Don't run shortcut logic in installer if no shortcut locations provided (#191)

This commit is contained in:
Caelan
2024-07-28 20:48:31 +01:00
committed by GitHub
parent ed21e282d5
commit 2ffc382ac2

View File

@@ -191,7 +191,9 @@ fn install_impl(pkg: &bundle::BundleInfo, root_path: &PathBuf, tx: &std::sync::m
}
info!("Creating shortcuts...");
windows::create_or_update_manifest_lnks(&root_path, &app, None);
if !app.shortcut_locations.is_empty() {
windows::create_or_update_manifest_lnks(&root_path, &app, None);
}
info!("Starting process install hook");
if !windows::run_hook(&app, &root_path, "--veloapp-install", 30) {