1234567891011121314151617181920212223242526272829 |
- #!/bin/sh
- set -e
- cd "$(dirname "$0")/../"
- OS=$(uname -s)
- if [[ "$OS" == *"CYGWIN"* || "$OS" == *"MINGW"* || "$OS" == *"MSYS"* ]]; then
- OUTPUT="./build/memos.exe"
- else
- OUTPUT="./build/memos"
- fi
- echo "Building for $OS..."
- go build -o "$OUTPUT" ./bin/memos/main.go
- echo "Build successful!"
- echo "To run the application, execute the following command:"
- echo "$OUTPUT --mode dev"
|