Skip to content

Commit

Permalink
Add signing stage before deployment for iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
sevilS authored and antoniofrighetto committed Dec 14, 2023
1 parent 5adba12 commit 14c8b73
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
19 changes: 18 additions & 1 deletion .github/workflows/xcode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,36 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: O-MVLL Xcode 14.1
shell: bash
run: |
curl -LO https://open-obfuscator.build38.io/static/omvll-deps-xcode-14_1.tar
mkdir -p /tmp/third-party-xcode14
mkdir -p $GITHUB_WORKSPACE/dist
tar xvf ./omvll-deps-xcode-14_1.tar --directory=/tmp/third-party-xcode14
docker run --rm \
-v /tmp/third-party-xcode14:/third-party \
-v $GITHUB_WORKSPACE:/o-mvll \
openobfuscator/omvll-xcode:latest bash /o-mvll/scripts/docker/xcode_14_compile.sh
- name: O-MVLL Signing
uses: indygreg/[email protected]
with:
input_path: ${{ github.workspace }}/src/build_xcode/omvll_unsigned.dylib
output_path: ${{ github.workspace }}/src/build_xcode/omvll_xcode_14.dylib
p12_file: ${{ github.workspace }}/scripts/certificates/SigningCertificate.p12
p12_password: ${{ secrets.certificate_password }}
- name: Generate deployment tar
uses: a7ul/[email protected]
id: compress
with:
command: c
cwd: ${{ github.workspace }}/src/build_xcode/
files: |
./omvll_xcode_14.dylib
outPath: ${{ github.workspace }}/dist/omvll_xcode_14.tar.gz
- name: Nightly Deployment
env:
OMVLL_S3_KEY: ${{ secrets.OMVLL_S3_KEY }}
Expand Down
Binary file added scripts/certificates/SigningCertificate.p12
Binary file not shown.
7 changes: 2 additions & 5 deletions scripts/docker/xcode_14_compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@ ninja
cd ..

lipo -create -output omvll.dylib ./arm64/libOMVLL.dylib ./x86_64/libOMVLL.dylib

mkdir -p /o-mvll/dist
python3 /o-mvll/scripts/package.py -t xcode_14 /o-mvll/src/build_xcode/omvll.dylib /o-mvll/dist/omvll_xcode_14.tar.gz

mv /o-mvll/src/build_xcode/omvll.dylib /o-mvll/src/build_xcode/omvll_unsigned.dylib
chown -R 1000:1000 /o-mvll/src/build_xcode
chown -R 1000:1000 /o-mvll/dist
chmod -R 777 /o-mvll/src/build_xcode

0 comments on commit 14c8b73

Please sign in to comment.