Skip to content

Commit

Permalink
修复放在根目录无法打开的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
corle-bell committed Oct 25, 2024
1 parent f430dcc commit 6c16501
Show file tree
Hide file tree
Showing 10 changed files with 38 additions and 31 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ FacebookId#/manifest/application/meta-data#com.facebook.sdk.ApplicationId
增加快速打开缓存目录的按钮
增加了查看AndroidManifest的功能



## v4.0.0

增加了查看Apk的功能
Expand All @@ -114,4 +112,10 @@ FacebookId#/manifest/application/meta-data#com.facebook.sdk.ApplicationId

修改了图标

重构了代码结构
重构了代码结构



## v4.0.1

修复了在分区根目录报错的问题
6 changes: 3 additions & 3 deletions aabViewer/App.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/>
</startup>
</configuration>
</configuration>
1 change: 0 additions & 1 deletion aabViewer/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ private void CheckTools()
{
var ToolsPath = WinformTools.GetParentPath(WinformTools.GetCurrentPath(), 2);
ToolsPath = Path.Combine(ToolsPath, "Tools");

WinformTools.CheckAndCopy(Define.jarPath, Path.Combine(ToolsPath, Define.BundleToolFile), $"缺少{Define.BundleToolFile}");
WinformTools.CheckAndCopy(Define.aaptPath, Path.Combine(ToolsPath, Define.AAPTFile), $"缺少{Define.AAPTFile}");
}
Expand Down
30 changes: 13 additions & 17 deletions aabViewer/Properties/Settings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion aabViewer/Utils/Define.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public class Define
public static string jarPath;
public static string aaptPath;
public static string keyConfigPath = "";
public const string verion = "v4.0.0";
public const string verion = "v4.0.1";

public const string LogFile = "log.txt";
public const string BundleToolFile = "bundletool-all-1.8.0.jar";
Expand Down
11 changes: 9 additions & 2 deletions aabViewer/Utils/WinformTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,16 @@ public static void WriteLog(string _txt)
public static string GetParentPath(string path, int backTimes=1)
{
var ret = path;
for(int i=0; i< backTimes+1; i++)
try
{
for (int i = 0; i < backTimes + 1; i++)
{
ret = Directory.GetParent(ret).FullName;
}
}
catch(Exception e)
{
ret = Directory.GetParent(ret).FullName;
return ret;
}
return ret;
}
Expand Down
3 changes: 2 additions & 1 deletion aabViewer/aabViewer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<OutputType>WinExe</OutputType>
<RootNamespace>aabViewer</RootNamespace>
<AssemblyName>aabViewer</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
Expand All @@ -27,6 +27,7 @@
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand Down
Binary file modified aabViewer/bin/Debug/aabViewer.exe
Binary file not shown.
6 changes: 3 additions & 3 deletions aabViewer/bin/Debug/aabViewer.exe.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/>
</startup>
</configuration>
</configuration>
Binary file modified aabViewer/bin/Debug/aabViewer.pdb
Binary file not shown.

0 comments on commit 6c16501

Please sign in to comment.