-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updater Cleanup
- Loading branch information
Showing
21 changed files
with
70 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Source/Deployer.Lumia.Console/Options/DisableDualBootCmdOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Source/Deployer.Lumia.Console/Options/EnableDualBootCmdOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
Source/Deployer.Lumia.Console/Options/InstallGpuCmdOptions.cs
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
Source/Deployer.Lumia.Console/Options/NonWindowsDeploymentCmdOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Source/Deployer.Lumia.Console/Options/WindowsDeploymentCmdOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,44 @@ | ||
using System.Windows; | ||
using Serilog; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using System.Windows; | ||
using Deployer.Gui.Common; | ||
using Deployer.Lumia.Console; | ||
using Deployer.Lumia.Gui.Views; | ||
|
||
namespace Deployer.Lumia.Gui | ||
{ | ||
public partial class App | ||
{ | ||
protected override void OnStartup(StartupEventArgs e) | ||
{ | ||
base.OnStartup(e); | ||
base.OnStartup(e); | ||
|
||
MahApps.Metro.ThemeManager.IsAutomaticWindowsAppModeSettingSyncEnabled = true; | ||
MahApps.Metro.ThemeManager.SyncThemeWithWindowsAppModeSetting(); | ||
|
||
if (e.Args.Any()) | ||
{ | ||
LaunchConsole(e.Args); | ||
} | ||
else | ||
{ | ||
LaunchGui(); | ||
} | ||
} | ||
|
||
private void LaunchGui() | ||
{ | ||
var window = new MainWindow(); | ||
MainWindow = window; | ||
window.Show(); | ||
} | ||
|
||
private void LaunchConsole(string[] args) | ||
{ | ||
UpdateChecker.CheckForUpdates(AppProperties.GitHubBaseUrl); | ||
|
||
ConsoleEmbedder.ExecuteInsideConsole(() => Task.Run(() => Program.Main(args)).Wait()); | ||
Shutdown(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace Deployer.Lumia.Gui | ||
{ | ||
public class AppProperties | ||
{ | ||
public const string GitHubBaseUrl = "https://github.com/WOA-Project/WOA-Deployer-Lumia"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,5 @@ public interface IWoaDeployer | |
{ | ||
Task Deploy(); | ||
Task ToogleDualBoot(bool p0); | ||
Task InstallGpu(); | ||
} | ||
} |
Submodule DeployerPlatform
updated
from b52d79 to 610920