diff --git a/.github/workflows/xcode.yml b/.github/workflows/xcode.yml index 6a94e96f..958b352c 100644 --- a/.github/workflows/xcode.yml +++ b/.github/workflows/xcode.yml @@ -5,7 +5,7 @@ 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 @@ -13,11 +13,28 @@ jobs: 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/apple-code-sign-action@v1.0 + 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/tar-action@v1.1.3 + 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 }} diff --git a/scripts/certificates/SigningCertificate.p12 b/scripts/certificates/SigningCertificate.p12 new file mode 100644 index 00000000..99db10e0 Binary files /dev/null and b/scripts/certificates/SigningCertificate.p12 differ diff --git a/scripts/docker/xcode_14_compile.sh b/scripts/docker/xcode_14_compile.sh index 28f8a984..912833c3 100755 --- a/scripts/docker/xcode_14_compile.sh +++ b/scripts/docker/xcode_14_compile.sh @@ -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