feat: support hot,key specification in portable file name

This commit is contained in:
Kingtous
2022-10-31 14:59:57 +08:00
parent d465792d41
commit c8c726b565
3 changed files with 15 additions and 1 deletions

View File

@@ -141,6 +141,11 @@ pub fn has_rendezvous_service() -> bool {
pub fn get_license() -> String {
#[cfg(windows)]
if let Some(lic) = crate::platform::windows::get_license() {
#[cfg(feature = "flutter")]
{
return format!("Key: {}\nHost: {}\nApi: {}", lic.key, lic.host, lic.api);
}
// default license format is html formed (sciter)
return format!(
"<br /> Key: {} <br /> Host: {} Api: {}",
lic.key, lic.host, lic.api