summaryrefslogtreecommitdiffstats
path: root/packaging/macos/jhb/etc/jhb.conf/release.sh
blob: 6fe8708fd64a1ad432e0604b9956781b70dd00d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# SPDX-FileCopyrightText: 2022 René de Hesselle <dehesselle@web.de>
#
# SPDX-License-Identifier: GPL-2.0-or-later

### description ################################################################

# Release artifact.

### shellcheck #################################################################

# shellcheck shell=bash # no shebang as this file is intended to be sourced
# shellcheck disable=SC2034 # we only use exports if we really need them

### variables ##################################################################

RELEASE_ARCHIVE=${RELEASE_ARCHIVE:-$(basename "$VER_DIR")_$(uname -m).tar.xz}

# GitHub and GitLab
# shellcheck disable=2206 # we need expansion for the array to work
RELEASE_URLS=(${RELEASE_URLS[@]:-
  "https://github.com/dehesselle/jhb/releases/download/\
v$VERSION/$RELEASE_ARCHIVE"
  "https://gitlab.com/api/v4/projects/35965804/packages/generic/jhb/\
$VERSION/$RELEASE_ARCHIVE"
})

RELEASE_OVERLAY=overlay

### functions ##################################################################

# Nothing here.

### main #######################################################################

# Nothing here.