aboutsummaryrefslogtreecommitdiff
path: root/dist.sh
diff options
context:
space:
mode:
authordiogo464 <[email protected]>2024-01-18 11:56:19 +0000
committerdiogo464 <[email protected]>2024-01-18 11:56:19 +0000
commitf8d8aaa035dd27c5bb33c1654d94b5b8612586d8 (patch)
treef1d6d6808c60e78ac2d37161d804946d2597b8ce /dist.sh
parent5b48457beb82b38f1a003af1ee34a3a7ad291af1 (diff)
added release workflow
Diffstat (limited to 'dist.sh')
-rwxr-xr-xdist.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/dist.sh b/dist.sh
new file mode 100755
index 0000000..c628b19
--- /dev/null
+++ b/dist.sh
@@ -0,0 +1,18 @@
1#!/usr/bin/sh
2
3if [ "$VERSION" = "" ]; then
4 echo "VERSION missing"
5 exit 1
6fi
7
8mkdir -p dist/
9cargo build --release --target-dir target/ || exit 1
10cp target/release/dotup .
11rpm-assembler \
12 --name dotup \
13 --version $VERSION \
14 --summary "Link dotfiles" \
15 --arch x86_64 \
16 --url https://git.d464.sh/code/dotup \
17 dotup:/usr/bin/dotup:0755 || exit 1
18mv dotup *.rpm dist/