Skip to content

Commit

Permalink
Add O3 modloader support
Browse files Browse the repository at this point in the history
  • Loading branch information
j005u committed Dec 1, 2024
1 parent 17464b7 commit e5df352
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

.PHONY: modloader-o3


all: */jni/*
NDK_PROJECT_PATH=./modloader_final ndk-build
Expand All @@ -25,10 +27,10 @@ tweaks: tweak-*/jni/*
$(MAKE) -C tweak-enable-debug-menu ipk
mv tweak-enable-debug-menu/ipk/*.ipk ./

modloader-o3: modloader-o3/*
modloader-o3:
$(MAKE) -C modloader-o3 ipk
mv modloader-o3/ipk/*.ipk ./

clean:
$(MAKE) -C ipk clean
rm -f *.ipk
2 changes: 2 additions & 0 deletions modloader-o3/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.PHONY: ipk

ipk:
$(MAKE) -C ipk clean
$(MAKE) -C ipk
Expand Down
4 changes: 1 addition & 3 deletions modloader-o3/ipk/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ IPK_NAME = "${NAME}_${VERSION}_${ARCH}.ipk"
all:
mkdir -p tmp
echo "2.0" > tmp/debian-binary
cp -r data tmp/
cp -r control tmp/
cd tmp/control && tar --owner=0 --group=0 -czvf ../control.tar.gz .
cd tmp/data && tar --owner=0 --group=0 -czvf ../data.tar.gz .
cd tmp/ && tar --owner=0 --group=0 -czvf "../${IPK_NAME}" ./control.tar.gz ./data.tar.gz ./debian-binary
cd tmp/ && tar --owner=0 --group=0 -czvf "../${IPK_NAME}" ./control.tar.gz ./debian-binary

clean:
rm -rf tmp

0 comments on commit e5df352

Please sign in to comment.