30 lines
1 KiB
Bash
Executable file
30 lines
1 KiB
Bash
Executable file
#!/bin/bash
|
|
#
|
|
# This file is part of Deja-vu.
|
|
#
|
|
# Deja-vu is free software: you can redistribute it and/or modify it
|
|
# under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# Deja-vu is distributed in the hope that it will be useful, but
|
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
# See the GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with Deja-vu. If not, see <https://www.gnu.org/licenses/>.
|
|
#
|
|
## Helper script to build and assemble the items needed for a release
|
|
|
|
set -o errexit
|
|
set -o errtrace
|
|
set -o nounset
|
|
set -o pipefail
|
|
|
|
TEMP_DIR="$(mktemp -d)"
|
|
|
|
cargo build --release --target=x86_64-pc-windows-gnu
|
|
cp -nv target/x86_64-pc-windows-gnu/release/*exe "${TEMP_DIR}"/
|
|
cp -nrv include/* "${TEMP_DIR}"/
|
|
tar cavf "deja-vu_$(date +%Y-%m-%d).txz" -C "${TEMP_DIR}" .
|