Skip to content

Commit e42ae64

Browse files
authored
Add node.h fallbacks
1 parent 50dd5bb commit e42ae64

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: macos-26
99
steps:
1010
- name: Checkout
11-
uses: actions/checkout@v3
11+
uses: actions/checkout@v4
1212
with:
1313
submodules: recursive
1414

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,22 @@ prepare_packages: deps
5050
git -C "$$ALT_SIGN_CHECKOUT" submodule sync --recursive; \
5151
git -C "$$ALT_SIGN_CHECKOUT" submodule update --init --recursive; \
5252
fi; \
53+
ALT_SIGN_LIBCNARY_NODE_H="$$ALT_SIGN_CHECKOUT/Dependencies/ldid/libplist/libcnary/include/node.h"; \
54+
ALT_SIGN_LIBPLIST_NODE_H="$$ALT_SIGN_CHECKOUT/Dependencies/ldid/libplist/src/node.h"; \
55+
if [ -f "$$ALT_SIGN_LIBCNARY_NODE_H" ] && [ ! -e "$$ALT_SIGN_LIBPLIST_NODE_H" ]; then \
56+
ln -sf ../libcnary/include/node.h "$$ALT_SIGN_LIBPLIST_NODE_H"; \
57+
fi; \
5358
ALT_SIGN_OPENSSL_XCFRAMEWORK="$$(find "$(SOURCE_PACKAGES)" \( -path "*/Dependencies/OpenSSL.xcframework" -o -path "*/OpenSSL.xcframework" \) -type d | head -n 1)"; \
5459
if [ -z "$$ALT_SIGN_OPENSSL_XCFRAMEWORK" ]; then \
5560
echo "Expected AltSign OpenSSL.xcframework after package resolution." >&2; \
5661
exit 1; \
5762
fi; \
5863
ALT_SIGN_LIBPLIST_SRC_DIR="$(SOURCE_PACKAGES)/checkouts/AltSign/Dependencies/ldid/libplist/src"; \
5964
if [ -d "$$ALT_SIGN_LIBPLIST_SRC_DIR" ]; then \
65+
if [ ! -f "$$ALT_SIGN_LIBPLIST_NODE_H" ]; then \
66+
echo "Expected AltSign node.h after submodule initialization." >&2; \
67+
exit 1; \
68+
fi; \
6069
find "$$ALT_SIGN_LIBPLIST_SRC_DIR" -name '*.cpp' -exec perl -0pi -e 's/\b([A-Za-z_][A-Za-z0-9_]*)& \1::operator=\((?:PList::)?\1& ([A-Za-z_][A-Za-z0-9_]*)\)/$$1\& $$1::operator=(const $$1\& $$2)/g' {} +; \
6170
else \
6271
echo "Expected AltSign libplist sources after submodule initialization." >&2; \

0 commit comments

Comments
 (0)