mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-21 09:47:01 +02:00
fix: macos deb building
This commit is contained in:
1 file changed
+17
-12
+17
-12
@@ -351,6 +351,11 @@ jobs:
|
||||
runs-on: macos-latest
|
||||
needs: build-darwin
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Procursus
|
||||
uses: beerpiss/[email protected]
|
||||
with:
|
||||
@@ -378,19 +383,19 @@ jobs:
|
||||
|
||||
- name: Build debs
|
||||
run: |
|
||||
curl -LO https://raw.githubusercontent.com/palera1n/palera1n/main/packaging/control
|
||||
make -j$(sysctl -n hw.ncpu) docs
|
||||
|
||||
# Darwin x86_64
|
||||
mkdir -p stage/DEBIAN
|
||||
mkdir -p stage/opt/procursus/usr/bin
|
||||
mkdir -p stage/opt/procursus/usr/share/man/man1
|
||||
cp control stage/DEBIAN/control
|
||||
cp packaging/control stage/DEBIAN/control
|
||||
|
||||
gsed 's|@DEB_ARCH@|darwin-amd64|g' -i DEBIAN/control
|
||||
gsed 's|@DEB_VERSION@|$(cat {{ github.workspace }}/version)|g' -i DEBIAN/control
|
||||
gsed 's|@DEB_ARCH@|darwin-amd64|g' -i stage/DEBIAN/control
|
||||
gsed 's|@DEB_VERSION@|$(cat {{ github.workspace }}/version)|g' -i stage/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
|
||||
ginstall -Dm644 ready/palera1n-macos-x86_64 stage/opt/procursus/usr/bin/palera1n
|
||||
ginstall -Dm644 docs/palera1n.1 stage/opt/procursus/usr/share/man/man1/palera1n.1
|
||||
|
||||
dpkg-deb -b stage .
|
||||
mv palera1n*.deb ready/
|
||||
@@ -400,13 +405,13 @@ jobs:
|
||||
mkdir -p stage/DEBIAN
|
||||
mkdir -p stage/opt/procursus/usr/bin
|
||||
mkdir -p stage/opt/procursus/usr/share/man/man1
|
||||
cp control stage/DEBIAN/control
|
||||
cp packaging/control stage/DEBIAN/control
|
||||
|
||||
gsed 's|@DEB_ARCH@|darwin-arm64|g' -i stage/DEBIAN/control
|
||||
gsed 's|@DEB_VERSION@|$(cat {{ github.workspace }}/version)|g' -i stage/DEBIAN/control
|
||||
|
||||
ginstall -Dm644 ready/palera1n-macos-arm64 stage/opt/procursus/usr/bin/palera1n
|
||||
ginstall -Dm644 ready/palera1n.1 stage/opt/procursus/usr/share/man/man1/palera1n.1
|
||||
ginstall -Dm644 docs/palera1n.1 stage/opt/procursus/usr/share/man/man1/palera1n.1
|
||||
|
||||
dpkg-deb -b stage .
|
||||
mv palera1n*.deb ready/
|
||||
@@ -416,13 +421,13 @@ jobs:
|
||||
mkdir -p stage/DEBIAN
|
||||
mkdir -p stage/usr/bin
|
||||
mkdir -p stage/usr/share/man/man1
|
||||
cp control stage/DEBIAN/control
|
||||
cp packaging/control stage/DEBIAN/control
|
||||
|
||||
gsed 's|@DEB_ARCH@|iphoneos-arm|g' -i stage/DEBIAN/control
|
||||
gsed 's|@DEB_VERSION@|$(cat {{ github.workspace }}/version)|g' -i stage/DEBIAN/control
|
||||
|
||||
ginstall -Dm644 ready/palera1n-macos-arm64 stage/usr/bin/palera1n
|
||||
ginstall -Dm644 ready/palera1n.1 stage/usr/share/man/man1/palera1n.1
|
||||
ginstall -Dm644 docs/palera1n.1 stage/usr/share/man/man1/palera1n.1
|
||||
|
||||
dpkg-deb -b stage .
|
||||
mv palera1n*.deb ready/
|
||||
@@ -432,13 +437,13 @@ jobs:
|
||||
mkdir -p stage/DEBIAN
|
||||
mkdir -p stage/var/jb/usr/bin
|
||||
mkdir -p stage/var/jb/usr/share/man/man1
|
||||
cp control stage/DEBIAN/control
|
||||
cp packaging/control stage/DEBIAN/control
|
||||
|
||||
gsed 's|@DEB_ARCH@|iphoneos-arm64|g' -i stage/DEBIAN/control
|
||||
gsed 's|@DEB_VERSION@|$(cat {{ github.workspace }}/version)|g' -i DEBIAN/control
|
||||
|
||||
ginstall -Dm644 ready/palera1n-macos-arm64 stage/var/jb/usr/bin/palera1n
|
||||
ginstall -Dm644 ready/palera1n.1 stage/var/jb/usr/share/man/man1/palera1n.1
|
||||
ginstall -Dm644 docs/palera1n.1 stage/var/jb/usr/share/man/man1/palera1n.1
|
||||
|
||||
dpkg-deb -b stage .
|
||||
mv palera1n*.deb ready/
|
||||
|
||||
Reference in new issue
Block a user