Skip to content

Commit 54dd704

Browse files
committed
sync Hackdoc
1 parent ccc6e32 commit 54dd704

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+148
-148
lines changed

.github/workflows/build-app-wxpython.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ jobs:
2828
rm -rf Univ*
2929
rm -rf *pay*.dmg
3030
/Library/Frameworks/Python.framework/Versions/3.11/bin/python3 -m pip install -r requirements.txt
31-
32-
aria2c -x 16 "https://github.com/pyquick/PatcherSupportPkg/releases/download/1.9.8/Universal-Binaries.dmg"
31+
32+
aria2c -x 16 "https://github.com/hackdoc/PatcherSupportPkg/releases/download/1.9.9pre1/Universal-Binaries.dmg"
3333
3434
- name: Force Universal2 charset for Python
3535
run: |

.github/workflows/build-self.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
rm -rf Univ*
2929
rm -rf *pay*.dmg
3030
/Library/Frameworks/Python.framework/Versions/3.11/bin/python3 -m pip install -r requirements.txt
31-
/usr/local/aria2/bin/aria2c -x 16 "https://gitapi.simplehac.top/https://github.com/pyquick/PatcherSupportPkg/releases/download/1.9.8/Universal-Binaries.dmg"
31+
/usr/local/aria2/bin/aria2c -x 16 "https://gitapi.simplehac.top/https://github.com/hackdoc/PatcherSupportPkg/releases/download/1.9.9pre1/Universal-Binaries.dmg"
3232
3333
- name: Force Universal2 charset for Python
3434
run: |

.github/workflows/validate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ jobs:
2525
/Library/Frameworks/Python.framework/Versions/3.11/bin/python3 -m pip install -r requirements.txt
2626
/Library/Frameworks/Python.framework/Versions/3.11/bin/python3 -m pip install packaging
2727
rm -rf Univ*
28-
aria2c -x 16 "https://github.com/pyquick/PatcherSupportPkg/releases/download/1.9.8/Universal-Binaries.dmg"
28+
aria2c -x 16 "https://github.com/hackdoc/PatcherSupportPkg/releases/download/1.9.9pre1/Universal-Binaries.dmg"
2929
/Library/Frameworks/Python.framework/Versions/3.11/bin/python3 OCLP-R-GUI.command --validate

Build-Project.command

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def main() -> None:
7878
if (args.run_as_individual_steps is False) or (args.run_as_individual_steps and args.prepare_application):
7979
# Prepare Privileged Helper Tool
8080
sign_notarize.SignAndNotarize(
81-
path=Path("./ci_tooling/privileged_helper_tool/com.pyquick.oclp-r.privileged-helper"),
81+
path=Path("./ci_tooling/privileged_helper_tool/com.hackdoc.oclp-r.privileged-helper"),
8282
signing_identity=args.application_signing_identity,
8383
notarization_apple_id=args.notarization_apple_id,
8484
notarization_password=args.notarization_password,

OCLP-R-GUI.spec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ datas = [
2222
('Universal-Binaries.dmg', '.'),
2323
]
2424

25-
if Path("PyquickInternalResources.dmg").exists():
26-
datas.append(('PyquickInternalResources.dmg', '.'))
25+
if Path("HackdocInternalResources.dmg").exists():
26+
datas.append(('HackdocInternalResources.dmg', '.'))
2727

2828

2929
a = Analysis(['OCLP-R-GUI.command'],
@@ -71,7 +71,7 @@ coll = COLLECT(exe,
7171
app = BUNDLE(coll,
7272
name='OCLP-R.app',
7373
icon="payloads/Icon/AppIcons/OCR.icns",
74-
bundle_identifier="com.pyquick.oclp-r",
74+
bundle_identifier="com.hackdoc.oclp-r",
7575
info_plist={
7676
"CFBundleName": "OCLP-R",
7777
"CFBundleVersion": constants.Constants().patcher_version,

ci_tooling/build_modules/disk_images.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def _download_resources(self):
117117
subprocess_wrapper.run_and_verify(
118118
[
119119
"/usr/bin/curl", "-LO",
120-
f"https://github.com/pyquick/PatcherSupportPkg/releases/download/{patcher_support_pkg_version}/{resource}"
120+
f"https://github.com/hackdoc/PatcherSupportPkg/releases/download/{patcher_support_pkg_version}/{resource}"
121121
],
122122
stdout=subprocess.PIPE, stderr=subprocess.PIPE
123123
)

ci_tooling/build_modules/package.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ def __init__(self) -> None:
2020
Initialize
2121
"""
2222
self._files = {
23-
"./dist/OCLP-R.app": "/Library/Application Support/Pyquick/OCLP-R.app",
24-
"./ci_tooling/privileged_helper_tool/com.pyquick.oclp-r.privileged-helper": "/Library/PrivilegedHelperTools/com.pyquick.oclp-r.privileged-helper",
23+
"./dist/OCLP-R.app": "/Library/Application Support/Hackdoc/OCLP-R.app",
24+
"./ci_tooling/privileged_helper_tool/com.hackdoc.oclp-r.privileged-helper": "/Library/PrivilegedHelperTools/com.hackdoc.oclp-r.privileged-helper",
2525
}
2626
self._autopkg_files = {
27-
"./payloads/Launch Services/com.pyquick.oclp-r.auto-patch.plist": "/Library/LaunchAgents/com.pyquick.oclp-r.auto-patch.plist",
27+
"./payloads/Launch Services/com.hackdoc.oclp-r.auto-patch.plist": "/Library/LaunchAgents/com.hackdoc.oclp-r.auto-patch.plist",
2828
}
2929
self._autopkg_files.update(self._files)
3030

@@ -92,7 +92,7 @@ def generate(self) -> None:
9292

9393
assert macos_pkg_builder.Packages(
9494
pkg_output="./dist/OCLP-R-Uninstaller.pkg",
95-
pkg_bundle_id="com.pyquick.oclp-r-uninstaller",
95+
pkg_bundle_id="com.hackdoc.oclp-r-uninstaller",
9696
pkg_version=constants.Constants().patcher_version,
9797
pkg_background="./ci_tooling/pkg_assets/PkgBackground-Uninstaller.png",
9898
pkg_preinstall_script=_tmp_uninstall.name,
@@ -112,7 +112,7 @@ def generate(self) -> None:
112112

113113
assert macos_pkg_builder.Packages(
114114
pkg_output="./dist/OCLP-R.pkg",
115-
pkg_bundle_id="com.pyquick.oclp-r",
115+
pkg_bundle_id="com.hackdoc.oclp-r",
116116
pkg_version=constants.Constants().patcher_version,
117117
pkg_allow_relocation=False,
118118
pkg_as_distribution=True,
@@ -135,7 +135,7 @@ def generate(self) -> None:
135135

136136
assert macos_pkg_builder.Packages(
137137
pkg_output="./dist/AutoPkg-Assets.pkg",
138-
pkg_bundle_id="com.pyquick.pkg.AutoPkg-Assets",
138+
pkg_bundle_id="com.hackdoc.pkg.AutoPkg-Assets",
139139
pkg_version=constants.Constants().patcher_version,
140140
pkg_allow_relocation=False,
141141
pkg_as_distribution=True,

ci_tooling/build_modules/package_scripts.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def generate_fix_settings_file_permission(self) -> str:
176176
_script = ""
177177

178178
_script += "function _fixSettingsFilePermission() {\n"
179-
_script += " local settingsPath=\"$pathToTargetVolume/Users/Shared/.com.pyquick.oclp-r.plist\"\n\n"
179+
_script += " local settingsPath=\"$pathToTargetVolume/Users/Shared/.com.hackdoc.oclp-r.plist\"\n\n"
180180

181181
_script += " if [[ -e $settingsPath ]]; then\n"
182182
_script += " echo \"Fixing settings file permissions: $settingsPath\"\n"
@@ -233,7 +233,7 @@ def generate_clean_launch_service(self) -> str:
233233
_script = ""
234234

235235
_script += "function _cleanLaunchService() {\n"
236-
_script += " local domain=\"com.pyquick.oclp-r\"\n\n"
236+
_script += " local domain=\"com.hackdoc.oclp-r\"\n\n"
237237

238238
_script += " # Iterate over launch agents and daemons\n"
239239
_script += " for launchServiceVariant in \"$pathToTargetVolume/Library/LaunchAgents\" \"$pathToTargetVolume/Library/LaunchDaemons\"; do\n"
@@ -316,13 +316,13 @@ def __init__(self):
316316

317317
self.files = [
318318
"Applications/OCLP-R.app",
319-
"Library/Application Support/Pyquick/Update.plist",
320-
"Library/Application Support/Pyquick/OCLP-R.app",
321-
"Library/PrivilegedHelperTools/com.pyquick.oclp-r.privileged-helper"
319+
"Library/Application Support/Hackdoc/Update.plist",
320+
"Library/Application Support/Hackdoc/OCLP-R.app",
321+
"Library/PrivilegedHelperTools/com.hackdoc.oclp-r.privileged-helper"
322322
]
323323

324324
self.additional_auto_pkg_files = [
325-
"Library/LaunchAgents/com.pyquick.oclp-r.auto-patch.plist"
325+
"Library/LaunchAgents/com.hackdoc.oclp-r.auto-patch.plist"
326326
]
327327

328328

@@ -428,8 +428,8 @@ def _generate_postinstall_script(self, is_autopkg: bool = False) -> str:
428428
_script += self._generate_label_bar()
429429
_script += "\n"
430430

431-
_script += "helperPath=\"Library/PrivilegedHelperTools/com.pyquick.oclp-r.privileged-helper\"\n"
432-
_script += "mainAppPath=\"Library/Application Support/Pyquick/OCLP-R.app\"\n"
431+
_script += "helperPath=\"Library/PrivilegedHelperTools/com.hackdoc.oclp-r.privileged-helper\"\n"
432+
_script += "mainAppPath=\"Library/Application Support/Hackdoc/OCLP-R.app\"\n"
433433
_script += "shimAppPath=\"Applications/OCLP-R.app\"\n"
434434
if is_autopkg:
435435
_script += "executablePath=\"$mainAppPath/Contents/MacOS/OCLP-R\"\n"

ci_tooling/privileged_helper_tool/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CC=clang
2-
OUTPUT=com.pyquick.oclp-r.privileged-helper
2+
OUTPUT=com.hackdoc.oclp-r.privileged-helper
33

44
all: clean release
55

ci_tooling/privileged_helper_tool/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# OCLP-R Privileged Helper Tool
22

3-
`com.pyquick.oclp-r.privileged-helper` is OCLP-R's Privileged Helper Tool.
3+
`com.hackdoc.oclp-r.privileged-helper` is OCLP-R's Privileged Helper Tool.
44

55
The architecture is as such:
66
1. The main application (OCLP-R.app) will send arguments to the privileged helper tool to execute.
7-
2. The privileged helper tool will check the code signature of the main application to ensure it is signed by pyquick.
7+
2. The privileged helper tool will check the code signature of the main application to ensure it is signed by hackdoc.
88
3. The privileged helper tool will then execute the command and return the output to the main application.
99

1010
The helper tool is able to execute code as root by using the "Set UID" bit present on the file.
1111

1212

1313
## Running from source
1414

15-
Since running OCLP-R from source will lack pyquick's code signature, you will need to disable code signature verification in the privileged helper tool otherwise root commands will fail.
15+
Since running OCLP-R from source will lack hackdoc's code signature, you will need to disable code signature verification in the privileged helper tool otherwise root commands will fail.
1616

1717
To do so, compile the privileged helper tool with debug:
1818
```
@@ -28,7 +28,7 @@ When using the Privileged Helper Tool from source, you are now adding a security
2828

2929
If possible, we highly recommend creating a developer account with Apple and signing the application with your own ["Developer ID Application" certificate](https://developer.apple.com/help/account/create-certificates/create-developer-id-certificates/). This will allow you to run the application without disabling code signature checks.
3030

31-
* Note that pyquick's Team ID will need to be replaced in main.m with your own Team ID (`S74BDJXQMD` -> `YOUR_TEAM`)
31+
* Note that hackdoc's Team ID will need to be replaced in main.m with your own Team ID (`S74BDJXQMD` -> `YOUR_TEAM`)
3232
* Additionally you will be required to compile OCLP-R.app with your own Developer ID Application certificate
3333

3434
If this is not possible, we recommend using [OCLP-R's prebuilt binaries](../../SOURCE.md) instead.

0 commit comments

Comments
 (0)