Skip to content

Commit 6e6839e

Browse files
committed
v4.0.6
1 parent 209a7ff commit 6e6839e

File tree

4 files changed

+36
-31
lines changed

4 files changed

+36
-31
lines changed

Pearcleaner.xcodeproj/project.pbxproj

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,7 @@
400400
"zh-Hans",
401401
ja,
402402
tr,
403+
es,
403404
);
404405
mainGroup = C77B8FF72AF18E2E009CC655;
405406
packageReferences = (
@@ -556,8 +557,8 @@
556557
isa = XCBuildConfiguration;
557558
buildSettings = {
558559
ALWAYS_SEARCH_USER_PATHS = NO;
559-
APP_BUILD = 71;
560-
APP_VERSION = 4.0.5;
560+
APP_BUILD = 72;
561+
APP_VERSION = 4.0.6;
561562
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
562563
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
563564
CLANG_ANALYZER_NONNULL = YES;
@@ -628,8 +629,8 @@
628629
isa = XCBuildConfiguration;
629630
buildSettings = {
630631
ALWAYS_SEARCH_USER_PATHS = NO;
631-
APP_BUILD = 71;
632-
APP_VERSION = 4.0.5;
632+
APP_BUILD = 72;
633+
APP_VERSION = 4.0.6;
633634
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
634635
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
635636
CLANG_ANALYZER_NONNULL = YES;

Pearcleaner/Logic/Logic.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -683,11 +683,12 @@ func getCaskIdentifier(for appName: String) -> String? {
683683
let appDirectory = "\(caskSubPath)/\(latestVersion)/"
684684

685685
// List all files in the version directory and check for .app file
686-
let appsInDir = try fileManager.contentsOfDirectory(atPath: appDirectory).filter { !$0.hasPrefix(".") }
687-
686+
// let appsInDir = try fileManager.contentsOfDirectory(atPath: appDirectory).filter { !$0.hasPrefix(".") }
687+
let appsInDir = try fileManager.contentsOfDirectory(atPath: appDirectory).filter {
688+
!$0.hasPrefix(".") && $0.hasSuffix(".app") && !$0.lowercased().contains("uninstall")
689+
}
688690
if let appFile = appsInDir.first(where: { $0.hasSuffix(".app") }) {
689691
let realAppName = appFile.replacingOccurrences(of: ".app", with: "").lowercased()
690-
691692
// Compare the lowercased app names for case-insensitive match
692693
if realAppName == lowercasedAppName {
693694
return realAppName.replacingOccurrences(of: " ", with: "-").lowercased()

Pearcleaner/Settings/About.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ struct Sponsor: Identifiable {
132132
let url: URL
133133

134134
static let sponsors: [Sponsor] = [
135+
Sponsor(name: "Sagittarius", url: URL(string: "https://github.com/sagittarius-codebase")!),
135136
Sponsor(name: "Ilovecatz17", url: URL(string: "https://github.com/Ilovecatz17")!),
136137
Sponsor(name: "ichoosetoaccept", url: URL(string: "https://github.com/ichoosetoaccept")!),
137138
Sponsor(name: "barats", url: URL(string: "https://github.com/barats")!),

Pearcleaner/Views/MiniMode.swift

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -59,33 +59,35 @@ struct MiniEmptyView: View {
5959
@Binding var showPopover: Bool
6060

6161
var body: some View {
62-
VStack(alignment: .center) {
62+
ZStack() {
6363

64-
Spacer()
65-
66-
LinearGradient(gradient: Gradient(colors: [.green, .orange]), startPoint: .leading, endPoint: .trailing)
67-
.mask(
68-
Image(systemName: "plus.square.dashed")
69-
.resizable()
70-
.scaledToFit()
71-
.frame(width: 120, height: 120, alignment: .center)
72-
.padding()
73-
.fontWeight(.ultraLight)
74-
.offset(x: 5, y: 5)
75-
)
76-
77-
Text("Drop an app here")
78-
.font(.title3)
79-
.opacity(0.7)
80-
81-
Text("Click for apps list")
82-
.font(.footnote)
83-
.padding(.bottom, 25)
84-
.opacity(0.5)
64+
VStack {
65+
Spacer()
66+
LinearGradient(gradient: Gradient(colors: [.green, .orange]), startPoint: .leading, endPoint: .trailing)
67+
.mask(
68+
Image(systemName: "plus.square.dashed")
69+
.resizable()
70+
.scaledToFit()
71+
.frame(width: 120, height: 120, alignment: .center)
72+
.padding()
73+
.fontWeight(.ultraLight)
74+
.offset(x: 5, y: 5)
75+
)
76+
Spacer()
77+
}
8578

86-
Spacer()
79+
VStack {
80+
Spacer()
81+
Text("Drop an app here")
82+
.font(.title3)
83+
.opacity(0.7)
84+
85+
Text("Click for apps list")
86+
.font(.footnote)
87+
.padding(.bottom, 25)
88+
.opacity(0.5)
89+
}
8790

88-
8991
}
9092
.onTapGesture {
9193
withAnimation(Animation.easeInOut(duration: animationEnabled ? 0.35 : 0)) {

0 commit comments

Comments
 (0)