Skip to content

Commit 89df9a9

Browse files
authored
Merge pull request #1 from sammyjeng/ci
enable ci
2 parents 0370da4 + e810a0b commit 89df9a9

File tree

2 files changed

+49
-2
lines changed

2 files changed

+49
-2
lines changed

.github/workflows/ci.yml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
workflow_dispatch:
11+
12+
jobs:
13+
build:
14+
runs-on: macos-12
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v2
19+
with:
20+
fetch-depth: 0
21+
submodules: recursive
22+
23+
- name: Theos Setup
24+
uses: Randomblock1/theos-action@v1
25+
26+
- name: Setup libSandy
27+
run: |
28+
git clone https://github.com/realthunder/mac-headers --depth 1
29+
mv mac-headers/usr/include/xpc $THEOS/include
30+
git clone https://github.com/opa334/libSandy vendor/libSandy --depth 1
31+
cd vendor/libSandy/ && ./install_to_theos.sh && cd -
32+
33+
- name: Setup AltList
34+
run: |
35+
git clone https://github.com/opa334/AltList --depth 1
36+
cd AltList && ./install_to_theos.sh && cd -
37+
38+
- name: Build shadow
39+
run: ./build.sh
40+
41+
- name: Release
42+
uses: softprops/action-gh-release@v1
43+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
44+
with:
45+
files: |
46+
${{ github.workspace }}/packages/*.deb
47+
env:
48+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

ShadowSettings.bundle/Makefile

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ include $(THEOS)/makefiles/common.mk
55
BUNDLE_NAME = ShadowSettings
66

77
ShadowSettings_FILES = $(wildcard *.m)
8-
ShadowSettings_FRAMEWORKS = Foundation
8+
ShadowSettings_FRAMEWORKS = Foundation Preferences
99
ShadowSettings_EXTRA_FRAMEWORKS = Shadow AltList HookKit RootBridge
10-
ShadowSettings_PRIVATE_FRAMEWORKS = Preferences
1110
ShadowSettings_INSTALL_PATH = /Library/PreferenceBundles
1211
ShadowSettings_CFLAGS = -fobjc-arc -I../Shadow.framework/Headers -I../vendor/HookKit.framework/Headers -I../vendor/RootBridge.framework/Headers
1312
ShadowSettings_LDFLAGS = -rpath /Library/Frameworks -rpath /var/jb/Library/Frameworks -rpath /usr/lib -rpath /var/jb/usr/lib

0 commit comments

Comments
 (0)