mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-30 21:19:48 +01:00
chore: add deb creation to workflow
This commit is contained in:
3 files changed
+131
No files matched your search
@@ -351,6 +351,13 @@ jobs:
|
|||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
needs: build-darwin
|
needs: build-darwin
|
||||||
steps:
|
steps:
|
||||||
|
- name: Setup Procursus
|
||||||
|
uses: beerpiss/[email protected]
|
||||||
|
with:
|
||||||
|
packages: sed coreutils
|
||||||
|
cache: true
|
||||||
|
mirror: 'https://procursus.itsnebula.net/'
|
||||||
|
|
||||||
- name: Download all Darwin artifacts
|
- name: Download all Darwin artifacts
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
|
|
||||||
@@ -369,6 +376,80 @@ jobs:
|
|||||||
zip -r9 ready/palera1n-ios.dSYM.zip palera1n-iphoneos-arm64.dSYM
|
zip -r9 ready/palera1n-ios.dSYM.zip palera1n-iphoneos-arm64.dSYM
|
||||||
zip -r9 ready/palera1n-macos.dSYM.zip palera1n-macos.dSYM
|
zip -r9 ready/palera1n-macos.dSYM.zip palera1n-macos.dSYM
|
||||||
|
|
||||||
|
- name: Build debs
|
||||||
|
run: |
|
||||||
|
# Darwin x86_64
|
||||||
|
mkdir -p stage/DEBIAN
|
||||||
|
mkdir -p stage/opt/procursus/usr/bin
|
||||||
|
mkdir -p stage/opt/procursus/usr/share/man/man1
|
||||||
|
cd stage
|
||||||
|
cp ${{ github.workspace }}/packaging/control DEBIAN/control
|
||||||
|
|
||||||
|
gsed 's|@DEB_ARCH@|darwin-amd64|g' -i DEBIAN/control
|
||||||
|
gsed 's|@DEB_VERSION@|$(cat {{ github.workspace }}/version)|g' -i DEBIAN/control
|
||||||
|
|
||||||
|
ginstall -Dm644 ../ready/palera1n-macos-x86_64 opt/procursus/usr/bin/palera1n
|
||||||
|
ginstall -Dm644 ../ready/palera1n.1 opt/procursus/usr/share/man/man1/palera1n.1
|
||||||
|
|
||||||
|
cd ..
|
||||||
|
dpkg-deb -b stage .
|
||||||
|
mv palera1n*.deb ready/
|
||||||
|
rm -rf stage
|
||||||
|
|
||||||
|
# Darwin arm64
|
||||||
|
mkdir -p stage/DEBIAN
|
||||||
|
mkdir -p stage/opt/procursus/usr/bin
|
||||||
|
mkdir -p stage/opt/procursus/usr/share/man/man1
|
||||||
|
cd stage
|
||||||
|
cp ${{ github.workspace }}/packaging/control DEBIAN/control
|
||||||
|
|
||||||
|
gsed 's|@DEB_ARCH@|darwin-arm64|g' -i DEBIAN/control
|
||||||
|
gsed 's|@DEB_VERSION@|$(cat {{ github.workspace }}/version)|g' -i DEBIAN/control
|
||||||
|
|
||||||
|
ginstall -Dm644 ../ready/palera1n-macos-arm64 opt/procursus/usr/bin/palera1n
|
||||||
|
ginstall -Dm644 ../ready/palera1n.1 opt/procursus/usr/share/man/man1/palera1n.1
|
||||||
|
|
||||||
|
cd ..
|
||||||
|
dpkg-deb -b stage .
|
||||||
|
mv palera1n*.deb ready/
|
||||||
|
rm -rf stage
|
||||||
|
|
||||||
|
# iPhoneOS
|
||||||
|
mkdir -p stage/DEBIAN
|
||||||
|
mkdir -p stage/usr/bin
|
||||||
|
mkdir -p stage/usr/share/man/man1
|
||||||
|
cd stage
|
||||||
|
cp ${{ github.workspace }}/packaging/control DEBIAN/control
|
||||||
|
|
||||||
|
gsed 's|@DEB_ARCH@|iphoneos-arm|g' -i DEBIAN/control
|
||||||
|
gsed 's|@DEB_VERSION@|$(cat {{ github.workspace }}/version)|g' -i DEBIAN/control
|
||||||
|
|
||||||
|
ginstall -Dm644 ../ready/palera1n-macos-arm64 usr/bin/palera1n
|
||||||
|
ginstall -Dm644 ../ready/palera1n.1 usr/share/man/man1/palera1n.1
|
||||||
|
|
||||||
|
cd ..
|
||||||
|
dpkg-deb -b stage .
|
||||||
|
mv palera1n*.deb ready/
|
||||||
|
rm -rf stage
|
||||||
|
|
||||||
|
# iPhoneOS (rootless)
|
||||||
|
mkdir -p stage/DEBIAN
|
||||||
|
mkdir -p stage/var/jb/usr/bin
|
||||||
|
mkdir -p stage/var/jb/usr/share/man/man1
|
||||||
|
cd stage
|
||||||
|
cp ${{ github.workspace }}/packaging/control DEBIAN/control
|
||||||
|
|
||||||
|
gsed 's|@DEB_ARCH@|iphoneos-arm64|g' -i DEBIAN/control
|
||||||
|
gsed 's|@DEB_VERSION@|$(cat {{ github.workspace }}/version)|g' -i DEBIAN/control
|
||||||
|
|
||||||
|
ginstall -Dm644 ../ready/palera1n-macos-arm64 var/jb/usr/bin/palera1n
|
||||||
|
ginstall -Dm644 ../ready/palera1n.1 var/jb/usr/share/man/man1/palera1n.1
|
||||||
|
|
||||||
|
cd ..
|
||||||
|
dpkg-deb -b stage .
|
||||||
|
mv palera1n*.deb ready/
|
||||||
|
rm -rf stage
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
if: ${{ github.event_name != 'pull_request' }}
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
uses: wangyucode/[email protected]
|
uses: wangyucode/[email protected]
|
||||||
@@ -459,6 +540,7 @@ jobs:
|
|||||||
echo "CROSS_COMPILE=${{ matrix.triple }}-" >> $GITHUB_ENV
|
echo "CROSS_COMPILE=${{ matrix.triple }}-" >> $GITHUB_ENV
|
||||||
mkdir -p $(pwd)/sysroot/usr/local/lib
|
mkdir -p $(pwd)/sysroot/usr/local/lib
|
||||||
ln -sf $(pwd)/sysroot/usr/local/lib{,64}
|
ln -sf $(pwd)/sysroot/usr/local/lib{,64}
|
||||||
|
|
||||||
- name: Download dependencies (source code)
|
- name: Download dependencies (source code)
|
||||||
run: |
|
run: |
|
||||||
curl -LOOOOOOO \
|
curl -LOOOOOOO \
|
||||||
@@ -652,6 +734,44 @@ jobs:
|
|||||||
mv src/palera1n ready/palera1n-${{ env.CHECKRA1N_NAME }}
|
mv src/palera1n ready/palera1n-${{ env.CHECKRA1N_NAME }}
|
||||||
tar -zcf ready/dep_root_${{ matrix.triple }}.tgz dep_root
|
tar -zcf ready/dep_root_${{ matrix.triple }}.tgz dep_root
|
||||||
|
|
||||||
|
- name: Build debs
|
||||||
|
run: |
|
||||||
|
# Linux amd64
|
||||||
|
mkdir -p stage/DEBIAN
|
||||||
|
mkdir -p stage/usr/bin
|
||||||
|
mkdir -p stage/usr/share/man/man1
|
||||||
|
cd stage
|
||||||
|
cp ${{ github.workspace }}/packaging/control DEBIAN/control
|
||||||
|
|
||||||
|
gsed 's|@DEB_ARCH@|amd64|g' -i DEBIAN/control
|
||||||
|
gsed 's|@DEB_VERSION@|$(cat {{ github.workspace }}/version)|g' -i DEBIAN/control
|
||||||
|
|
||||||
|
ginstall -Dm644 ../ready/palera1n-macos-x86_64 usr/bin/palera1n
|
||||||
|
ginstall -Dm644 ../ready/palera1n.1 usr/share/man/man1/palera1n.1
|
||||||
|
|
||||||
|
cd ..
|
||||||
|
dpkg-deb -b stage .
|
||||||
|
mv palera1n*.deb ready/
|
||||||
|
rm -rf stage
|
||||||
|
|
||||||
|
# Linux arm64
|
||||||
|
mkdir -p stage/DEBIAN
|
||||||
|
mkdir -p stage/usr/bin
|
||||||
|
mkdir -p stage/usr/share/man/man1
|
||||||
|
cd stage
|
||||||
|
cp ${{ github.workspace }}/packaging/control DEBIAN/control
|
||||||
|
|
||||||
|
gsed 's|@DEB_ARCH@|arm64|g' -i DEBIAN/control
|
||||||
|
gsed 's|@DEB_VERSION@|$(cat {{ github.workspace }}/version)|g' -i DEBIAN/control
|
||||||
|
|
||||||
|
ginstall -Dm644 ../ready/palera1n-macos-arm64 usr/bin/palera1n
|
||||||
|
ginstall -Dm644 ../ready/palera1n.1 usr/share/man/man1/palera1n.1
|
||||||
|
|
||||||
|
cd ..
|
||||||
|
dpkg-deb -b stage .
|
||||||
|
mv palera1n*.deb ready/
|
||||||
|
rm -rf stage
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
if: ${{ github.event_name != 'pull_request' }}
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
uses: wangyucode/[email protected]
|
uses: wangyucode/[email protected]
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
Package: palera1n
|
||||||
|
Name: palera1n
|
||||||
|
Version: @DEB_VERSION@
|
||||||
|
Architecture: @DEB_ARCH@
|
||||||
|
Maintainer: palera1n team
|
||||||
|
Author: palera1n team
|
||||||
|
Section: Utilities
|
||||||
|
Priority: optional
|
||||||
|
Homepage: https://palera.in
|
||||||
|
Description: iOS 15.0-16.3.1 semi-tethered checkm8 jailbreak
|
||||||
Reference in new issue
Block a user