mirror of
https://github.com/palera1n/palera1n.git
synced 2026-11-24 06:34:41 +01:00
generate debug symbols
This commit is contained in:
1 parent
2c32d7a355
commit
ec586d7258
4 files changed
+27
-4
No files matched your search
@@ -25,8 +25,14 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
make -j$(sysctl -n hw.ncpu) macos-dist
|
make -j$(sysctl -n hw.ncpu) macos-dist
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload macOS build
|
||||||
uses: actions/[email protected]
|
uses: actions/[email protected]
|
||||||
with:
|
with:
|
||||||
name: palera1n-macOS
|
name: palera1n-macOS
|
||||||
path: palera1n-macos
|
path: palera1n-macos
|
||||||
|
|
||||||
|
- name: Upload macOS debug symbols
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: palera1n-macos.dSYM
|
||||||
|
path: palera1n-macos.dSYM
|
||||||
@@ -12,3 +12,4 @@ palera1n*
|
|||||||
!checkra1n.h
|
!checkra1n.h
|
||||||
src/binpack.dmg
|
src/binpack.dmg
|
||||||
src/ramdisk.dmg
|
src/ramdisk.dmg
|
||||||
|
.DS_Store
|
||||||
@@ -1,12 +1,19 @@
|
|||||||
SRC = $(shell pwd)
|
SRC = $(shell pwd)
|
||||||
DEP = $(SRC)/dep_root
|
DEP = $(SRC)/dep_root
|
||||||
|
STRIP = strip
|
||||||
CC = cc
|
CC = cc
|
||||||
CFLAGS += -mmacosx-version-min=10.8 -I$(DEP)/include -I/opt/procursus/include -I$(SRC)/include -I$(SRC) -O0 -g -Wall -Wextra
|
CFLAGS += -mmacosx-version-min=10.8 -I$(DEP)/include -I/opt/procursus/include -I$(SRC)/include -I$(SRC) -Wall -Wextra
|
||||||
LIBS = $(DEP)/lib/libimobiledevice-1.0.a $(DEP)/lib/libirecovery-1.0.a $(DEP)/lib/libusbmuxd-2.0.a $(DEP)/lib/libplist-2.0.a $(DEP)/lib/libimobiledevice-glue-1.0.a -pthread
|
LIBS = $(DEP)/lib/libimobiledevice-1.0.a $(DEP)/lib/libirecovery-1.0.a $(DEP)/lib/libusbmuxd-2.0.a $(DEP)/lib/libplist-2.0.a $(DEP)/lib/libimobiledevice-glue-1.0.a -pthread
|
||||||
LIBS += $(DEP)/lib/libcrypto.35.tbd $(DEP)/lib/libssl.35.tbd $(DEP)/lib/libusb-1.0.a
|
LIBS += $(DEP)/lib/libcrypto.35.tbd $(DEP)/lib/libssl.35.tbd $(DEP)/lib/libusb-1.0.a
|
||||||
LIBS += -framework CoreFoundation -framework SystemConfiguration -framework IOKit -framework Security
|
LIBS += -framework CoreFoundation -framework SystemConfiguration -framework IOKit -framework Security
|
||||||
LDFLAGS = $(LIBS)
|
LDFLAGS = $(LIBS)
|
||||||
|
|
||||||
|
ifeq ($(DEV_BUILD),1)
|
||||||
|
CFLAGS += -O0 -g
|
||||||
|
else
|
||||||
|
CFLAGS += -Os -g
|
||||||
|
endif
|
||||||
|
|
||||||
export SRC DEP CC CFLAGS LDFLAGS LIBS
|
export SRC DEP CC CFLAGS LDFLAGS LIBS
|
||||||
|
|
||||||
all: palera1n
|
all: palera1n
|
||||||
@@ -21,13 +28,22 @@ macos-dist:
|
|||||||
$(MAKE) clean
|
$(MAKE) clean
|
||||||
$(MAKE) all CFLAGS='-arch arm64 $(CFLAGS)'
|
$(MAKE) all CFLAGS='-arch arm64 $(CFLAGS)'
|
||||||
cp src/palera1n palera1n-arm64
|
cp src/palera1n palera1n-arm64
|
||||||
|
dsymutil src/palera1n
|
||||||
|
cp -a src/palera1n.dSYM palera1n-arm64.dSYM
|
||||||
$(MAKE) clean
|
$(MAKE) clean
|
||||||
$(MAKE) all CFLAGS='-arch x86_64 $(CFLAGS)'
|
$(MAKE) all CFLAGS='-arch x86_64 $(CFLAGS)'
|
||||||
cp src/palera1n palera1n-x86_64
|
cp src/palera1n palera1n-x86_64
|
||||||
|
dsymutil src/palera1n
|
||||||
|
cp -a src/palera1n.dSYM palera1n-x86_64.dSYM
|
||||||
$(MAKE) clean
|
$(MAKE) clean
|
||||||
lipo -create -arch arm64 palera1n-arm64 -arch x86_64 palera1n-x86_64 -output palera1n-macos
|
lipo -create -arch arm64 palera1n-arm64 -arch x86_64 palera1n-x86_64 -output palera1n-macos
|
||||||
|
mkdir -p palera1n-macos.dSYM/Contents/Resources/DWARF
|
||||||
|
cp palera1n-arm64.dSYM/Contents/Info.plist palera1n-macos.dSYM/Contents
|
||||||
|
lipo -create -arch arm64 palera1n-arm64.dSYM/Contents/Resources/DWARF/palera1n -arch x86_64 palera1n-x86_64.dSYM/Contents/Resources/DWARF/palera1n -output palera1n-macos.dSYM/Contents/Resources/DWARF/palera1n-macos
|
||||||
|
$(STRIP) palera1n-macos
|
||||||
|
codesign -s - --force palera1n-macos
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean
|
||||||
rm -f palera1n-*
|
rm -rf palera1n-* palera1n*.dSYM
|
||||||
|
|
||||||
.PHONY: all palera1n clean
|
.PHONY: all palera1n clean
|
||||||
+1
-1
@@ -25,6 +25,6 @@ palera1n: $(OBJECTS)
|
|||||||
$(CC) $(OBJECTS) $(CFLAGS) $(LDFLAGS) -o palera1n
|
$(CC) $(OBJECTS) $(CFLAGS) $(LDFLAGS) -o palera1n
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o palera1n checkra1n
|
rm -rf *.o palera1n checkra1n palera1n.dSYM
|
||||||
|
|
||||||
.PHONY: all clean
|
.PHONY: all clean
|
||||||
Reference in new issue
Block a user