Skip to content

Commit 0ae4e9f

Browse files
committed
extra debug statements/comments
1 parent facb1b0 commit 0ae4e9f

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

build-scripts/qchatbuild.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
cd_sign_file,
1616
apple_notarize_file,
1717
)
18-
from util import info, isDarwin, run_cmd, warn
18+
from util import debug, info, isDarwin, run_cmd, warn
1919
from rust import cargo_cmd_name, rust_env, rust_targets
2020
from importlib import import_module
2121

@@ -121,6 +121,7 @@ def cd_signer_request(method: str, path: str, data: str | None = None):
121121
SigV4Auth(get_creds(), "signer-builder-tools", REGION).add_auth(request)
122122

123123
for i in range(1, 8):
124+
debug(f"Sending request {method} to {url} with data: {data}")
124125
response = requests.request(method=method, url=url, headers=dict(request.headers), data=data)
125126
info(f"CDSigner Request ({url}): {response.status_code}")
126127
if response.status_code == 429:
@@ -188,6 +189,13 @@ def cd_build_signed_package(file_path: pathlib.Path):
188189
| ├─ EXECUTABLES_TO_SIGN
189190
| | ├─ qchat
190191
```
192+
193+
Try #2:
194+
```
195+
package
196+
├─ EXECUTABLES_TO_SIGN
197+
| ├─ qchat
198+
```
191199
"""
192200
# working_dir = BUILD_DIR / "package"
193201
# shutil.rmtree(working_dir, ignore_errors=True)

build-scripts/util.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from const import DESKTOP_PACKAGE_NAME, TAURI_PRODUCT_NAME
1212

1313

14+
DEBUG = "\033[94;1m"
1415
INFO = "\033[92;1m"
1516
WARN = "\033[93;1m"
1617
FAIL = "\033[91;1m"
@@ -72,6 +73,10 @@ def log(*value: object, title: str, color: str | None):
7273
print(f"{color}{title}:{ENDC}", *value, flush=True)
7374

7475

76+
def debug(*value: object):
77+
log(*value, title="DEBUG", color=DEBUG)
78+
79+
7580
def info(*value: object):
7681
log(*value, title="INFO", color=INFO)
7782

0 commit comments

Comments
 (0)