generated from azures04/Photino-Boilerplate
Passed to winexe
This commit is contained in:
parent
af469cfeb3
commit
3253b728f7
@ -1,6 +1,6 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>WinExe</OutputType>
|
||||||
<TargetFramework>net8.0</TargetFramework>
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
<Platforms>AnyCPU</Platforms>
|
<Platforms>AnyCPU</Platforms>
|
||||||
<RootNamespace>Photino_Boilerplate</RootNamespace>
|
<RootNamespace>Photino_Boilerplate</RootNamespace>
|
||||||
|
|||||||
@ -160,10 +160,10 @@ class Program{
|
|||||||
var productConfig = await response.Content.ReadFromJsonAsync<ProductConfig>(Constants._jsonOptions);
|
var productConfig = await response.Content.ReadFromJsonAsync<ProductConfig>(Constants._jsonOptions);
|
||||||
InstallationFinish installationFinish = jsonPayload.Deserialize<InstallationFinish>(Constants._jsonOptions)!;
|
InstallationFinish installationFinish = jsonPayload.Deserialize<InstallationFinish>(Constants._jsonOptions)!;
|
||||||
if (installationFinish.CreateShortcut) {
|
if (installationFinish.CreateShortcut) {
|
||||||
ShortcutService.CreateShortcut(Constants.ProductMetadata.Name, Path.Combine(Constants.ProductMetadata.InstallPath, productConfig.Executable!));
|
ShortcutService.CreateShortcut(Constants.ProductMetadata.Name, Path.Combine(Constants.ProductMetadata.InstallPath, productConfig!.Executable!));
|
||||||
}
|
}
|
||||||
if (installationFinish.LaunchAfterExit) {
|
if (installationFinish.LaunchAfterExit) {
|
||||||
InstallationService.LaunchApplication(Path.Combine(Constants.ProductMetadata.InstallPath, productConfig.Executable!));
|
InstallationService.LaunchApplication(Path.Combine(Constants.ProductMetadata.InstallPath, productConfig!.Executable!));
|
||||||
}
|
}
|
||||||
responsePayload = new { success = true };
|
responsePayload = new { success = true };
|
||||||
} catch (Exception) {
|
} catch (Exception) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user