Skip to content

Commit

Permalink
Add a job to build the cydia package (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
trufae authored Jun 14, 2024
1 parent 029fdf0 commit f26b3a8
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 9 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Dependencies
- name: ldid2
run: |
git clone https://github.com/razum2um/ldid
cd ldid && make && cp -f ldid ldid2 /usr/local/bin
Expand All @@ -35,6 +35,12 @@ jobs:
with:
name: fsmon-ios
path: fsmon-ios
- name: Cydia Package
run: make -C dist/cydia && cp -f dist/cydia/fsmon*.deb .
- uses: actions/upload-artifact@v4
with:
name: fsmon-cydia.zip
path: fsmon*.deb
macos:
runs-on: macos-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion COPYING
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015-2016 NowSecure
Copyright (c) 2015-2024 NowSecure

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016 NowSecure, Inc
Copyright (c) 2016-2024 NowSecure, Inc

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,8 @@ all: macos
oldios:
$(IOS_CC) $(CFLAGS) -DTARGET_IOS=1 -o fsmon-ios $(SOURCES) -framework CoreFoundation -framework MobileCoreServices
$(IOS_STRIP) fsmon-ios
if [ $(IOS_ON_DEVICE_COMPILE) != 1 ]; \
then \
xcrun --sdk iphoneos codesign -f --entitlements ./entitlements.plist -s- fsmon-ios; \
fi
if [ $(IOS_ON_DEVICE_COMPILE) != 1 ]; then \
xcrun --sdk iphoneos codesign -f --entitlements ./entitlements.plist -s- fsmon-ios; fi

IOS_FRAMEWORKS=-framework CoreFoundation -weak_framework MobileCoreServices -weak_framework CoreServices
ios:
Expand Down
3 changes: 2 additions & 1 deletion dist/cydia/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
include ./CONFIG
DEPENDS=
PACKAGE_DIR?=${PWD}
PACKAGE_DIR?=$(shell pwd)

all:
$(SUDO) $(MAKE) mrproper
mkdir -p data root/usr/bin
$(MAKE) -C ../.. ios
cp -f ../../fsmon-ios root/usr/bin/fsmon
chmod +x root/usr/bin/fsmon
mkdir -p root/usr/share/man/man1
Expand Down
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* fsmon -- MIT - Copyright NowSecure 2015-2020 - pancake@nowsecure.com */
/* fsmon -- MIT - Copyright NowSecure 2015-2024 - pancake@nowsecure.com */

#include <stdio.h>
#include <string.h>
Expand Down

0 comments on commit f26b3a8

Please sign in to comment.