mirror of https://github.com/JustKato/FreePad.git
16 lines
260 B
Bash
16 lines
260 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
|
||
|
echo "Removing old";
|
||
|
rm dist/freepad;
|
||
|
|
||
|
# Remember current path
|
||
|
MYDIR=`pwd`;
|
||
|
# Go into src
|
||
|
cd src;
|
||
|
# Build
|
||
|
echo "Building..."
|
||
|
export GIN_MODE=release;
|
||
|
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o ../dist/freepad .
|
||
|
# Go back!
|
||
|
cd $MYDIR;
|