Skip to content

Commit d22e583

Browse files
committed
v0.1.27更新
1 parent f7a1aba commit d22e583

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

.github/ISSUE_TEMPLATE/bug_report.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ body:
3333
label: App version
3434
description: Specify the version of APK Installer you're using.
3535
options:
36+
- "0.1.27"
3637
- "0.1.26"
3738
- "0.1.25"
3839
- "0.1.24"

APKInstaller/APKInstaller/APKInstaller.csproj

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,20 @@
2121
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
2222
<TrimMode>partial</TrimMode>
2323
<UseWinUI>True</UseWinUI>
24-
<VersionPrefix>0.1.26</VersionPrefix>
24+
<VersionPrefix>0.1.27</VersionPrefix>
2525
</PropertyGroup>
2626

2727
<PropertyGroup>
2828
<AppxAutoIncrementPackageRevision>False</AppxAutoIncrementPackageRevision>
2929
<AppxBundle>Never</AppxBundle>
3030
<AppxBundlePlatforms>x64</AppxBundlePlatforms>
3131
<AppxPackageDir>AppPackages</AppxPackageDir>
32+
<AppxPackageSigningEnabled>False</AppxPackageSigningEnabled>
33+
<AppxPackageSigningTimestampDigestAlgorithm>SHA256</AppxPackageSigningTimestampDigestAlgorithm>
3234
<AppxSymbolPackageEnabled>True</AppxSymbolPackageEnabled>
3335
<GenerateAppInstallerFile>False</GenerateAppInstallerFile>
3436
<GenerateTemporaryStoreCertificate>True</GenerateTemporaryStoreCertificate>
35-
<GenerateTestArtifacts>False</GenerateTestArtifacts>
37+
<GenerateTestArtifacts>True</GenerateTestArtifacts>
3638
<HoursBetweenUpdateChecks>0</HoursBetweenUpdateChecks>
3739
</PropertyGroup>
3840

@@ -81,10 +83,6 @@
8183
<HasPackageAndPublishMenu>true</HasPackageAndPublishMenu>
8284
</PropertyGroup>
8385

84-
<ItemGroup>
85-
<None Remove="favicon.ico" />
86-
</ItemGroup>
87-
8886
<ItemGroup>
8987
<COMReference Include="IWshRuntimeLibrary">
9088
<WrapperTool>tlbimp</WrapperTool>

APKInstaller/APKInstaller/Package.appxmanifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<Identity
1212
Name="18184wherewhere.AndroidAppInstaller"
1313
Publisher="CN=2C3A37C0-35FC-4839-B08C-751C1C1AFBF5"
14-
Version="0.1.26.0" />
14+
Version="0.1.27.0" />
1515

1616
<Properties>
1717
<DisplayName>APK 安装程序</DisplayName>

APKInstaller/APKInstaller/Strings/en-US/Resources.resw

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
<value>An Android App Installer. Written by @wherewhere and @Tangent-90.</value>
128128
</data>
129129
<data name="AppName" xml:space="preserve">
130-
<value>App Installer for Mobile</value>
130+
<value>App Installer (Mobile)</value>
131131
</data>
132132
<data name="ExceptionThrown" xml:space="preserve">
133133
<value>There was an error with the program…</value>

APKInstaller/APKInstaller/ViewModels/InstallViewModel.cs

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -752,14 +752,14 @@ public async Task InitADBFile()
752752
{
753753
XamlRoot = _page?.XamlRoot,
754754
Title = _loader.GetString("ADBMissing"),
755-
PrimaryButtonText = _loader.GetString("Download"),
755+
//PrimaryButtonText = _loader.GetString("Download"),
756756
SecondaryButtonText = _loader.GetString("Select"),
757757
CloseButtonText = _loader.GetString("Cancel"),
758758
Content = new ScrollViewer
759759
{
760760
Content = StackPanel
761761
},
762-
DefaultButton = ContentDialogButton.Primary
762+
DefaultButton = ContentDialogButton.Secondary
763763
};
764764
ProgressHelper.SetState(ProgressState.None, true);
765765
ContentDialogResult result = await dialog.ShowAsync();
@@ -794,6 +794,7 @@ public async Task InitADBFile()
794794
}
795795
else
796796
{
797+
await ReinitializeUI();
797798
return;
798799
}
799800
}
@@ -818,6 +819,7 @@ public async Task InitADBFile()
818819
}
819820
else
820821
{
822+
await ReinitializeUI();
821823
return;
822824
}
823825
}
@@ -837,15 +839,19 @@ public async Task InitADBFile()
837839
}
838840

839841
StorageFile file = await FileOpen.PickSingleFileAsync();
840-
if (file != null)
842+
if (file == null)
843+
{
844+
goto checkadb;
845+
}
846+
else
841847
{
842848
ADBPath = file.Path;
843849
}
844850
}
845851
else
846852
{
847853
SendResults(new Exception(_loader.GetString("ADBMissing")));
848-
Application.Current.Exit();
854+
await ReinitializeUI();
849855
return;
850856
}
851857
}
@@ -1285,11 +1291,6 @@ private async Task ReinitializeUI()
12851291
WaitProgressText = _loader.GetString("Loading");
12861292
if ((!string.IsNullOrWhiteSpace(_path) || _url != null) && NetAPKExist)
12871293
{
1288-
if (!IsADBReady)
1289-
{
1290-
ResetUI();
1291-
return;
1292-
}
12931294
checkdevice:
12941295
if (await CheckDevice() && _device != null)
12951296
{

0 commit comments

Comments
 (0)