We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff99a77 commit 763cbf8Copy full SHA for 763cbf8
2 files changed
.gitignore
@@ -1,2 +1,3 @@
1
/target
2
*.db
3
+/dist
scripts/dist.sh
@@ -0,0 +1,18 @@
+#!/usr/bin/env bash
+# Build static Linux binary using musl
+set -euo pipefail
4
+
5
+VERSION=0.1.0
6
+TMP="$(mktemp -d)"
7
+DESTDIR="$TMP/notifiers-$VERSION-linux-x86_64"
8
+mkdir -p "$DESTDIR"
9
+# --no-track prevents creation of .crates.toml and .crates2.json
10
+cargo install --no-track --path . --root "$DESTDIR" --target x86_64-unknown-linux-musl --features openssl/vendored
11
+mv "$DESTDIR/bin/notifiers" "$DESTDIR"
12
+rmdir "$DESTDIR/bin"
13
+pushd "$TMP"
14
+tar czf "notifiers-$VERSION-linux-x86_64.tar.gz" "notifiers-$VERSION-linux-x86_64"
15
+popd
16
+mkdir -p dist
17
+mv "$TMP/notifiers-$VERSION-linux-x86_64.tar.gz" "dist/notifiers-$VERSION-linux-x86_64.tar.gz"
18
+rm -fr "$TMP"
0 commit comments