From 6c16501fb1abe2834792da47f43c414b2cc46ead Mon Sep 17 00:00:00 2001
From: badman <543538258@qq.com>
Date: Fri, 25 Oct 2024 16:00:15 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=94=BE=E5=9C=A8=E6=A0=B9?=
=?UTF-8?q?=E7=9B=AE=E5=BD=95=E6=97=A0=E6=B3=95=E6=89=93=E5=BC=80=E7=9A=84?=
=?UTF-8?q?=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README.md | 10 +++++---
aabViewer/App.config | 6 ++---
aabViewer/Form1.cs | 1 -
aabViewer/Properties/Settings.Designer.cs | 30 ++++++++++------------
aabViewer/Utils/Define.cs | 2 +-
aabViewer/Utils/WinformTools.cs | 11 ++++++--
aabViewer/aabViewer.csproj | 3 ++-
aabViewer/bin/Debug/aabViewer.exe | Bin 200704 -> 200704 bytes
aabViewer/bin/Debug/aabViewer.exe.config | 6 ++---
aabViewer/bin/Debug/aabViewer.pdb | Bin 167424 -> 167424 bytes
10 files changed, 38 insertions(+), 31 deletions(-)
diff --git a/README.md b/README.md
index b163caf..c19c2cf 100644
--- a/README.md
+++ b/README.md
@@ -102,8 +102,6 @@ FacebookId#/manifest/application/meta-data#com.facebook.sdk.ApplicationId
增加快速打开缓存目录的按钮
增加了查看AndroidManifest的功能
-
-
## v4.0.0
增加了查看Apk的功能
@@ -114,4 +112,10 @@ FacebookId#/manifest/application/meta-data#com.facebook.sdk.ApplicationId
修改了图标
-重构了代码结构
\ No newline at end of file
+重构了代码结构
+
+
+
+## v4.0.1
+
+修复了在分区根目录报错的问题
\ No newline at end of file
diff --git a/aabViewer/App.config b/aabViewer/App.config
index 731f6de..d1428ad 100644
--- a/aabViewer/App.config
+++ b/aabViewer/App.config
@@ -1,6 +1,6 @@
-
+
-
+
-
\ No newline at end of file
+
diff --git a/aabViewer/Form1.cs b/aabViewer/Form1.cs
index ec435b9..22af112 100644
--- a/aabViewer/Form1.cs
+++ b/aabViewer/Form1.cs
@@ -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}");
}
diff --git a/aabViewer/Properties/Settings.Designer.cs b/aabViewer/Properties/Settings.Designer.cs
index c3dd2f2..f783544 100644
--- a/aabViewer/Properties/Settings.Designer.cs
+++ b/aabViewer/Properties/Settings.Designer.cs
@@ -1,28 +1,24 @@
//------------------------------------------------------------------------------
//
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.42000
+// 此代码由工具生成。
+// 运行时版本:4.0.30319.42000
//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
+// 对此文件的更改可能会导致不正确的行为,并且如果
+// 重新生成代码,这些更改将会丢失。
//
//------------------------------------------------------------------------------
-namespace aabViewer.Properties
-{
-
-
+namespace aabViewer.Properties {
+
+
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
- internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
- {
-
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.8.1.0")]
+ internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
+
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
-
- public static Settings Default
- {
- get
- {
+
+ public static Settings Default {
+ get {
return defaultInstance;
}
}
diff --git a/aabViewer/Utils/Define.cs b/aabViewer/Utils/Define.cs
index 36c9383..43f1449 100644
--- a/aabViewer/Utils/Define.cs
+++ b/aabViewer/Utils/Define.cs
@@ -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";
diff --git a/aabViewer/Utils/WinformTools.cs b/aabViewer/Utils/WinformTools.cs
index f599640..3b6818f 100644
--- a/aabViewer/Utils/WinformTools.cs
+++ b/aabViewer/Utils/WinformTools.cs
@@ -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;
}
diff --git a/aabViewer/aabViewer.csproj b/aabViewer/aabViewer.csproj
index 134b549..e0121fa 100644
--- a/aabViewer/aabViewer.csproj
+++ b/aabViewer/aabViewer.csproj
@@ -8,7 +8,7 @@
WinExe
aabViewer
aabViewer
- v4.6.1
+ v4.5
512
true
true
@@ -27,6 +27,7 @@
false
false
true
+
AnyCPU
diff --git a/aabViewer/bin/Debug/aabViewer.exe b/aabViewer/bin/Debug/aabViewer.exe
index 9dfbb5ceeae2e1a1b1334fe6d82083b0bab8c29c..07912d547707ff859b05a1017c45e0b04bf384e7 100644
GIT binary patch
delta 293
zcmZozz|*jRXF>j)oN@nTMn-j3od-+|7Sj#aFzQT>WK?IAnB2%%
z&-i&VBa<+%ODzKfGXoPtJp%(<%w|QV@CwESn=7jpDyvT8_GFsPFpYaLQ#ZpeuEk7~
z8DuyXGgSl0!%(uD!Dh4lyj)*_UCcVROD1!At?ak`w4-TW<>o!FH*m3dGBQX_F8C(N
zXgay)o20Oio}X)of?H8yZfbdcQMQ7Kp6TRW-zKw~=~?I*HV1v*9`v2@(J9f5XM_70
zfPe{zqk%XD==PN9o`;x}1)kTi*t;zE@t>A&q4Yyp)ogmrAtra;=RgH8z&QQFAtq_Y
e&)eS|Vp3w9Xuz_a?+DW`PbLw=?SX|%-xvXNIbWdw
delta 322
zcmZozz|*jRXF>o}X)o0$fJHL=UKX^0sf2Sq=3J^bDH)
zzHj&Y&iLq*=%pPC-ZKCJ6A(uOaR$&&8Pi=4F)0hUw@*(r|NGQ)LGsIhl0@Sp(<=@!
xxeL7pDu4mjhd{Q%L`5;i@7rG-Vp3w<&Ub|AmnV~i;r7IQrdf>B9o8_$004Y-Xqo^3
diff --git a/aabViewer/bin/Debug/aabViewer.exe.config b/aabViewer/bin/Debug/aabViewer.exe.config
index 731f6de..d1428ad 100644
--- a/aabViewer/bin/Debug/aabViewer.exe.config
+++ b/aabViewer/bin/Debug/aabViewer.exe.config
@@ -1,6 +1,6 @@
-
+
-
+
-
\ No newline at end of file
+
diff --git a/aabViewer/bin/Debug/aabViewer.pdb b/aabViewer/bin/Debug/aabViewer.pdb
index 5df46c8000378ee1b7933f8266292d47ee2466ae..733ccce3120a388018564d55a37e67c7be06175b 100644
GIT binary patch
delta 992
zcmcgqT}V@57=GW=Icqy}$hO)PSyRJ|m=S~NC~Is4S&odw;&?h39+2F)r9r>r`hOe%Ym-BbA@0}ZZKleoi2yoxaG|yXV#Q-PvDrkwfg>SD0Sz(5Zc*h
zyY?V+{>))>I^HkL?{H-n(l_n#Jxbs7HZ{-N$^ck$myO-?h|<;&SC(q`^oi(TDenL}
zQdMnkRCS2}Ga~D24@LYHY@xkEn9>5|nBeQiTGs0`Vvr5`E=2tNnBOZHo5qJ-ti!*b
zz4RvHb7iDIi?R7MMYbw=Ctfq$3fN{=;uF8#uro9
z14BrIl76FD`@1EmO&K~ldofl-rnIuY2eUYRR(;C68X%06G!biv&BS^zNLCFtph0fa
zV10HZ$^$$j?Bf6e#L*Q14tn)OiRoTC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