Skip to content

Commit

Permalink
ci: packaging
Browse files Browse the repository at this point in the history
Signed-off-by: 82Flex <[email protected]>
  • Loading branch information
Lessica committed Aug 18, 2024
1 parent b8082f5 commit 603d312
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 8 deletions.
11 changes: 3 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,7 @@ include $(THEOS_MAKE_PATH)/aggregate.mk
before-package::
$(ECHO_NOTHING)ldid -STrollFools/TrollFools.entitlements $(THEOS_STAGING_DIR)/Applications/TrollFools.app$(ECHO_END)

export THEOS_PACKAGE_INSTALL_PREFIX
export THEOS_STAGING_DIR
after-package::
$(ECHO_NOTHING)mkdir -p packages $(THEOS_STAGING_DIR)/Payload$(ECHO_END)
$(ECHO_NOTHING)cp -rp $(THEOS_STAGING_DIR)$(THEOS_PACKAGE_INSTALL_PREFIX)/Applications/TrollFools.app $(THEOS_STAGING_DIR)/Payload$(ECHO_END)
$(ECHO_NOTHING)chmod 0644 $(THEOS_STAGING_DIR)/Payload/TrollFools.app/Info.plist$(ECHO_END)
$(ECHO_NOTHING)rm $(THEOS_STAGING_DIR)/Payload/TrollFools.app/ldid-14 || true$(ECHO_END)
$(ECHO_NOTHING)cd $(THEOS_STAGING_DIR); 7z a -tzip -mm=LZMA TrollFools.tipa Payload; cd -;$(ECHO_END)
$(ECHO_NOTHING)cp -p TrollFools/ldid-14 $(THEOS_STAGING_DIR)/Payload/TrollFools.app/ldid-14$(ECHO_END)
$(ECHO_NOTHING)cd $(THEOS_STAGING_DIR); zip -qr TrollFools14.tipa Payload; cd -;$(ECHO_END)
$(ECHO_NOTHING)cp -p $(THEOS_STAGING_DIR)/TrollFools.tipa $(THEOS_STAGING_DIR)/TrollFools14.tipa packages$(ECHO_END)
devkit/tipa.sh
File renamed without changes.
22 changes: 22 additions & 0 deletions devkit/tipa.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/sh

XCCONFIG_NAME=TrollFools/Version.xcconfig
VERSION=$(awk -F "=" '/VERSION/ {print $2}' $XCCONFIG_NAME | tr -d ' ')
BUILD_NUMBER=$(awk -F "=" '/BUILD_NUMBER/ {print $2}' $XCCONFIG_NAME | tr -d ' ')

mkdir -p packages $THEOS_STAGING_DIR/Payload
cp -rp $THEOS_STAGING_DIR$THEOS_PACKAGE_INSTALL_PREFIX/Applications/TrollFools.app $THEOS_STAGING_DIR/Payload
chmod 0644 $THEOS_STAGING_DIR/Payload/TrollFools.app/Info.plist
rm $THEOS_STAGING_DIR/Payload/TrollFools.app/ldid-14 || true

cd $THEOS_STAGING_DIR
7z a -tzip -mm=LZMA TrollFools_$VERSION-$BUILD_NUMBER.tipa Payload
cd -

cp -p TrollFools/ldid-14 $THEOS_STAGING_DIR/Payload/TrollFools.app/ldid-14

cd $THEOS_STAGING_DIR
zip -qr TrollFools14_$VERSION-$BUILD_NUMBER.tipa Payload
cd -

cp -p $THEOS_STAGING_DIR/TrollFools_$VERSION-$BUILD_NUMBER.tipa $THEOS_STAGING_DIR/TrollFools14_$VERSION-$BUILD_NUMBER.tipa packages

0 comments on commit 603d312

Please sign in to comment.