mirror of
https://github.com/samuelncui/yatm.git
synced 2025-12-23 06:15:22 +00:00
26 lines
666 B
Bash
Executable File
26 lines
666 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -ex;
|
|
|
|
CURDIR=$(cd $(dirname $0); pwd);
|
|
cd ${CURDIR};
|
|
|
|
export TARGET_FILE="yatm-${TARGET_NAME}-${RELEASE_VERSION}.tar.gz"
|
|
|
|
rm -rf output;
|
|
mkdir -p output;
|
|
mkdir -p output/captured_indices;
|
|
|
|
cp -r scripts ./output/;
|
|
cp ./cmd/httpd/yatm-httpd.service ./output/
|
|
cp ./config.example.yaml ./output/
|
|
cp ./LICENSE ./output/
|
|
cp ./README.md ./output/
|
|
echo "${RELEASE_VERSION}" > ./output/VERSION
|
|
|
|
# docker run --rm -v $(pwd):/app golang:1.21 sh -c "cd /app && bash build_backend.sh"
|
|
# docker run --rm -v $(pwd):/app node:20-slim sh -c "cd /app && bash build_frontend.sh"
|
|
./build_backend.sh
|
|
./build_frontend.sh
|
|
|
|
tar -czvf "${TARGET_FILE}" -C ./output .
|