Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions scripts/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
pkgname=MultiRPC
pkgver=`cat version-digit`
pkgrel=1
pkgdesc="thingy"
arch=( 'x86_64' 'aarch64' 'arm' )
url="https://fluxpoint.dev/multirpc"
license=('GPL3')
depends=( dotnet-runtime )
makedepends=( )
source=( )
md5sum=( )

arch_=`echo $CARCH | sed -e s/aarch64/arm64/ | sed -e s/x86_64/x64/`


prepare() {
ln -s $startdir/../builds/linux-$arch_ $srcdir/$pkgname
}

package() {
mkdir -p $pkgdir/opt/$pkgname
mkdir -p $pkgdir/usr/bin
cp -r $srcdir/$pkgname/* $pkgdir/opt/MultiRPC
ln -s /opt/$pkgname/MultiRPC $pkgdir/usr/bin/MultiRPC
}
1 change: 1 addition & 0 deletions scripts/build-all.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash

set -e
set -o pipefail

Expand Down
5 changes: 4 additions & 1 deletion scripts/build-linux.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#!/bin/bash

set -e
set -o pipefail

echo "Building Linux x64"
dotnet publish ../src/MultiRPC/MultiRPC.csproj -c Release -r linux-x64 -o ../builds/linux-x64 --self-contained && echo "Built Linux x64" || (echo "Failed to build for Linux x64"; exit -1)
echo "Building Linux arm"
dotnet publish ../src/MultiRPC/MultiRPC.csproj -c Release -r linux-arm -o ../builds/linux-arm --self-contained && echo "Built Linux arm" || (echo "Failed to build for Linux arm"; exit -1)
dotnet publish ../src/MultiRPC/MultiRPC.csproj -c Release -r linux-arm -o ../builds/linux-arm --self-contained && echo "Built Linux arm" || (echo "Failed to build for Linux arm"; exit -1)
echo "Building Linux arm64"
dotnet publish ../src/MultiRPC/MultiRPC.csproj -c Release -r linux-arm64 -o ../builds/linux-arm64 --self-contained && echo "Built Linux arm" || (echo "Failed to build for Linux arm"; exit -1)
1 change: 1 addition & 0 deletions scripts/build-macos.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash

set -e
set -o pipefail

Expand Down
9 changes: 9 additions & 0 deletions scripts/create_arch.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

# $1: arch (aarch64, arm, x86_64)

CARCH=$1 makepkg -f

rm -rf ./src ./pkg

[ -d ../packages ] && mv *.zst ../packages/ || { mkdir ../packages; mv *.zst ../packages; }
2 changes: 2 additions & 0 deletions scripts/create_deb.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

#$1: source_dir, $2: arch, $3: package_name

arch=$2
Expand Down
1 change: 1 addition & 0 deletions scripts/make-macos-installer.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash

set -e
set -o pipefail

Expand Down
1 change: 1 addition & 0 deletions scripts/make-macos-installers.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash

set -e
set -o pipefail

Expand Down
19 changes: 17 additions & 2 deletions scripts/package-linux.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash

set -e
set -o pipefail

Expand All @@ -10,15 +11,29 @@ getfilelocation()
}

mkdir ../packages || echo "folder already exists"
cd "../builds"

# Package Linux
# Package Linux - Arch

./create_arch.sh aarch64
./create_arch.sh arm
./create_arch.sh x86_64

# Package Linux - Debian and friends

cd "../builds"
getfilelocation "Linux" "arm"
mv "linux-arm" "${filename}"
tar -C "../builds" -czvf "../packages/${filename}.tar.gz" "$filename"
cd ../scripts
sh create_deb.sh ../builds/$filename arm multirpc-arm

cd "../builds"
getfilelocation "Linux" "arm64"
mv "linux-arm64" "${filename}"
tar -C "../builds" -czvf "../packages/${filename}.tar.gz" "$filename"
cd ../scripts
sh create_deb.sh ../builds/$filename arm multirpc-arm64

cd "../builds"
getfilelocation "Linux" "x64"
mv "linux-x64" "${filename}"
Expand Down
1 change: 1 addition & 0 deletions scripts/package-macos.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash

set -e
set -o pipefail

Expand Down