Skip to content

Commit

Permalink
Cross compiling bash script
Browse files Browse the repository at this point in the history
  • Loading branch information
grunch committed Aug 3, 2023
1 parent 39b9921 commit b5e7132
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
*.svg
*.data
*.old
/bin
9 changes: 9 additions & 0 deletions archs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
aarch64-unknown-linux-gnu
arm-unknown-linux-gnueabi
x86_64-unknown-linux-gnu
aarch64-unknown-linux-gnu
armv7-unknown-linux-gnueabi
x86_64-linux-android
x86_64-pc-windows-gnu
x86_64-unknown-freebsd
aarch64-linux-android
21 changes: 21 additions & 0 deletions cross-compile.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash
file="archs"
manifest="manifest.txt"
arch=`cat $file`
for i in $arch; do
echo "Cross compiling for $i"
cross build --release --target $i
filename=`basename $PWD`
if [ $i == "x86_64-pc-windows-gnu" ]; then
filename=`basename $PWD`".exe"
fi
cd target/$i/release
mkdir $i
cp $filename $i/
sha256sum $i/$filename >> ../../../bin/$manifest
tar -cjf rana-$i.tar.gz $i
sha256sum rana-$i.tar.gz >> ../../../bin/$manifest
mv rana-$i.tar.gz ../../../bin
rm -rf $i
cd ../../../
done
52 changes: 52 additions & 0 deletions keys/negrunch.asc
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----

mQINBGOKeIwBEAC6vt3dVYg73Cs3OTqDp/UFQIdpax9wXNghiuZ2KHTulr+TYPnf
gNVmAnJp6C8Td2UMqKYKqEwWVYuDAGQ3k15vDY/MmozZGmA+BtRV+aAaeC4Iw+ka
mPNtldBdGbiG5JJud5KPLMKweoxWsqbqUzPYZhIu8OEX+SML9vKlwn0T8Mrs7B8T
GKtug14rdA1FPh4vOzWj2eHmiuKatv55WM+T4Yh9gH+x9pb/bt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