mirror of
https://github.com/JustKato/drive-health.git
synced 2026-02-27 06:17:00 +02:00
Build Script
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,2 +1,3 @@
|
||||
snapshots.dat
|
||||
.env
|
||||
dist
|
||||
17
build.sh
Executable file
17
build.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
APP_NAME="drive-health"
|
||||
DIST_DIR="dist"
|
||||
|
||||
# Create the dist directory if it doesn't exist
|
||||
mkdir -p $DIST_DIR
|
||||
|
||||
# Build the application
|
||||
echo "Building the application..."
|
||||
GOOS=linux GOARCH=amd64 go build -o $DIST_DIR/$APP_NAME
|
||||
|
||||
# Copy additional resources (like .env, static files, templates) to the dist directory
|
||||
echo "Copying additional resources..."
|
||||
cp -r .env static templates $DIST_DIR/
|
||||
|
||||
echo "Compilation and packaging completed."
|
||||
Reference in New Issue
Block a user