Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,10 @@
/Appium Wizard/obj/Appium Wizard.csproj.nuget.dgspec.json
/Appium Wizard/obj/Appium Wizard.csproj.nuget.g.props
/Appium Wizard/obj/project.assets.json
/Appium Wizard/Properties/PublishProfiles/FolderProfile.pubxml
/Appium Wizard/Properties/PublishProfiles/FolderProfile.pubxml.user
/Appium Wizard/obj/publish/win-x64/project.assets.json
/Appium Wizard/obj/publish/win-x64/Appium Wizard.csproj.nuget.dgspec.json
/Appium Wizard/obj/publish/win-x64/Appium Wizard.csproj.nuget.g.props
/Appium Wizard/obj/publish/win-x64/Appium Wizard.csproj.nuget.g.targets
/Appium Wizard/Appium Wizard.csproj.user
100 changes: 0 additions & 100 deletions Appium Wizard/Appium Wizard.csproj.user

This file was deleted.

1 change: 1 addition & 0 deletions Appium Wizard/FilesPath.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ public static class FilesPath
public static string scrcpy = Path.GetDirectoryName(AppDomain.CurrentDomain.BaseDirectory) + "\\Resources\\Executables\\scrcpy\\scrcpy.exe";
public static string ddiDownloaderFilePath = Path.GetDirectoryName(AppDomain.CurrentDomain.BaseDirectory) + "\\Resources\\iOS\\ddi-downloader.exe";
public static string devImagesPath = Path.GetDirectoryName(AppDomain.CurrentDomain.BaseDirectory) + "\\Resources\\iOS\\devimages\\";
public static string zsignFilePath = Path.GetDirectoryName(AppDomain.CurrentDomain.BaseDirectory) + "\\Resources\\iOS\\zsign.exe";
}
}
20 changes: 0 additions & 20 deletions Appium Wizard/Properties/PublishProfiles/FolderProfile.pubxml

This file was deleted.

10 changes: 0 additions & 10 deletions Appium Wizard/Properties/PublishProfiles/FolderProfile.pubxml.user

This file was deleted.

32 changes: 32 additions & 0 deletions Appium Wizard/SignIPA.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,17 @@ public SignIPA(List<string[]> profilesList)

private void SignIPA_Load(object sender, EventArgs e)
{
if (!IsZsignWorking())
{
var result = MessageBox.Show("zsign could not be accessed (it may have been removed by antivirus). Would you like to open the Troubleshooting Guide?", "zsign Not Available", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
if (result == DialogResult.Yes)
{
Process.Start(new ProcessStartInfo("https://github.com/mega6453/AppiumWizard/blob/master/TROUBLESHOOTINGGUIDE.md") { UseShellExecute = true });
}
Close();
return;
}

int index = 0;
foreach (var item in profilesList)
{
Expand Down Expand Up @@ -155,6 +166,27 @@ private void OutputPathButton_Click(object sender, EventArgs e)
}
}

private bool IsZsignWorking()
{
try
{
var process = new Process();
process.StartInfo.FileName = FilesPath.zsignFilePath;
process.StartInfo.UseShellExecute = false;
process.StartInfo.CreateNoWindow = true;
process.StartInfo.RedirectStandardOutput = true;
process.StartInfo.RedirectStandardError = true;
process.Start();
string output = process.StandardOutput.ReadToEnd() + process.StandardError.ReadToEnd();
process.WaitForExit();
return !string.IsNullOrWhiteSpace(output);
}
catch
{
return false;
}
}

private void SignIPA_Shown(object sender, EventArgs e)
{
GoogleAnalytics.SendEvent("SignIPA_Shown");
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading