summaryrefslogtreecommitdiff
path: root/bin/build-distribution-archives
diff options
context:
space:
mode:
authorrejbasket <39080670+rejbasket@users.noreply.github.com>2025-05-20 17:53:43 +0200
committerGitHub <noreply@github.com>2025-05-20 17:53:43 +0200
commite7b5f19b02512b7424954c868e7bacb93cdff9f2 (patch)
tree16c67353d4b7f23b75e031d25ef9bb4258d69c34 /bin/build-distribution-archives
parent75f02dc4b0d6b7d6276e8b425a1c1f32c6bfca29 (diff)
add linux arm build (#3740)
Diffstat (limited to 'bin/build-distribution-archives')
-rw-r--r--bin/build-distribution-archives21
1 files changed, 19 insertions, 2 deletions
diff --git a/bin/build-distribution-archives b/bin/build-distribution-archives
index 72da7c7b..1ac920b0 100644
--- a/bin/build-distribution-archives
+++ b/bin/build-distribution-archives
@@ -112,12 +112,21 @@ if [ "$BUILD" = "linux" ] || [ "$BUILD" = "linux32" ]; then
VERSION="0.0.1-${VERSION}"
fi
+
echo -n "$INKSTITCH_GPG_KEY" | base64 -d | gpg --import
cat <<EOF > $HOME/.rpmmacros
%_gpg_name EA93BCE2CCD0FB2E77B2CC29E8120E50709E5C44
%_signature gpg
EOF
+ # set the rpm file name for cpu arch
+ if [[ "$BUILD" = "linux32" ]]; then
+ linux_arch="i386"
+ else
+ linux_arch=${ARCH}
+ fi
+
+ echo "Creating deb"
deb_version="$(sed -E 's/[^a-zA-Z0-9.+]/./g' <<< "$VERSION")"
fpm -s dir \
-t deb \
@@ -134,11 +143,13 @@ EOF
--verbose \
dist/inkstitch=/opt
+ echo "Creating rpm"
fpm -s dir \
-t rpm \
-n inkstitch \
-v "$VERSION" \
-d "inkscape >= 1.0.0" \
+ -a "$linux_arch" \
--rpm-compression xz \
--license "GPL-3.0" \
--description "An open-source machine embroidery design platform based on Inkscape" \
@@ -152,6 +163,12 @@ EOF
rpmsign --addsign inkstitch*.rpm
mv inkstitch*.deb inkstitch*.rpm artifacts/
- tar -C dist -Jcf artifacts/inkstitch-${VERSION}-${OS}.tar.xz inkstitch
- cat "$(dirname "$0")/linux-sh-installer" artifacts/inkstitch-${VERSION}-${OS}.tar.xz > artifacts/inkstitch-${VERSION}-${OS}.sh
+ # set file name for each cpu arch
+ if [[ "$BUILD" = "linux32" ]]; then
+ tar -C dist -Jcf artifacts/inkstitch-${VERSION}-${OS}-i386.tar.xz inkstitch
+ cat "$(dirname "$0")/linux-sh-installer" artifacts/inkstitch-${VERSION}-${OS}-i386.tar.xz > artifacts/inkstitch-${VERSION}-${OS}-i386.sh
+ else
+ tar -C dist -Jcf artifacts/inkstitch-${VERSION}-${OS}-${ARCH}.tar.xz inkstitch
+ cat "$(dirname "$0")/linux-sh-installer" artifacts/inkstitch-${VERSION}-${OS}-${ARCH}.tar.xz > artifacts/inkstitch-${VERSION}-${OS}-${ARCH}.sh
+ fi
fi