Skip to content

Commit 5f02ff8

Browse files
committed
- add new icons
- fix some bugs
1 parent d98901c commit 5f02ff8

7 files changed

Lines changed: 15 additions & 17 deletions

File tree

OCLP-R-GUI.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ coll = COLLECT(exe,
6969

7070
app = BUNDLE(coll,
7171
name='OCLP-R.app',
72-
icon="payloads/Icon/AppIcons/AppIcon.icns",
72+
icon="payloads/Icon/AppIcons/OCR.icns",
7373
bundle_identifier="com.hackdoc.oclp-r",
7474
info_plist={
7575
"CFBundleName": "OCLP-R",

oclp_r/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ def icns_resource_path(self):
776776

777777
@property
778778
def app_icon_path(self):
779-
return self.payload_path / Path("Icon/AppIcons/AppIcon.icns")
779+
return self.payload_path / Path("Icon/AppIcons/OCR.icns")
780780

781781
@property
782782
def icon_path_external(self):

oclp_r/wx_gui/gui_kdk_dl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def _generate_catalog_frame(self) -> None:
5858
self.Show()
5959
def _fetch_installers():
6060
try:
61-
if self.constants.github_proxy_link!="Default":
61+
if self.constants.github_proxy_link=="SimpleHac":
6262
KDK_API_LINK:str=KDK_API_LINK_PROXY
6363
else:
6464
KDK_API_LINK: str = KDK_API_LINK_ORIGIN

oclp_r/wx_gui/gui_settings.py

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -50,31 +50,29 @@ def __init__(self, parent: wx.Frame, title: str, global_constants: constants.Con
5050
self.parent: wx.Frame = parent
5151
self.xnu_major = int(platform.release().split(".")[0])
5252
self.hyperlink_colour = (25, 179, 231)
53-
5453
self.settings = self._settings()
5554

5655
self.frame_modal = wx.Dialog(parent, title=title, size=(600, 720))
5756

5857
self._generate_elements(self.frame_modal)
5958
self.frame_modal.ShowWindowModal()
6059
def condition_exp(self,key:str):
61-
import os,json
60+
import json
6261
try:
6362

64-
private_path=Path("~/Library/Logs/Hackdoc/PRIVATE/.PRIVATE").expanduser()
65-
if private_path.exists():
63+
developer_path=Path("~/.hackdoc_developer").expanduser()
64+
if developer_path.exists():
6665
return True
67-
else:
68-
base_path=Path("~/Library/Logs/Hackdoc/JSON/control.json").expanduser()
69-
with open(base_path,"r",encoding="utf-8") as file:
70-
data=json.load(file.read())
71-
if data[key]=="1":
72-
return True
73-
else:
74-
return False
66+
67+
base_path=Path("~/Library/Logs/Hackdoc/JSON/control.json").expanduser()
68+
with open(base_path,"r",encoding="utf-8") as file:
69+
data=json.load(file)
70+
if data[key]=="1":
71+
return True
72+
return False
7573
except:
7674
return False
77-
75+
7876

7977
def _generate_elements(self, frame: wx.Frame = None) -> None:
8078
"""

payloads/Icon/AppIcons/Assets.car

-1.9 MB
Binary file not shown.

payloads/Tools/OCLP-R.app/Contents/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<key>CFBundleExecutable</key>
88
<string>OCLP-R</string>
99
<key>CFBundleIconFile</key>
10-
<string>AppIcon.icns</string>
10+
<string>OCR.icns</string>
1111
<key>CFBundleIdentifier</key>
1212
<string>com.hackdoc.oclp-r-helper</string>
1313
<key>CFBundleInfoDictionaryVersion</key>

0 commit comments

Comments
 (0)