File tree Expand file tree Collapse file tree 5 files changed +10
-8
lines changed Expand file tree Collapse file tree 5 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ check: test
24
24
dist : release
25
25
26
26
govet :
27
- $(GOVET ) gogs .go
27
+ $(GOVET ) main .go
28
28
$(GOVET ) models modules routers
29
29
30
30
build : $(GENERATED )
Original file line number Diff line number Diff line change @@ -11,10 +11,9 @@ import (
11
11
"os"
12
12
"runtime"
13
13
14
- "github.com/urfave/cli"
15
-
16
14
"github.com/go-gitea/gitea/cmd"
17
15
"github.com/go-gitea/gitea/modules/setting"
16
+ "github.com/urfave/cli"
18
17
)
19
18
20
19
const APP_VER = "0.9.99.0915"
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
1
2
outPath=./output
2
3
3
4
rm -rf $outPath
4
5
mkdir $outPath
5
6
6
- go build ../gogs .go
7
+ go build ../main .go -o gitea
7
8
PLATFORM=` uname | cut -d _ -f 1`
8
9
if [ $PLATFORM = " MINGW32" ] || [ $PLATFORM = " MINGW64" ] || [ $PLATFORM = " CYGWIN" ]; then
9
10
GOGS_EXE=gogs.exe
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
1
2
outPlattform=freebsd
2
3
outArch=amd64
3
4
outPath=./output_$outPlattform_$outArch
4
5
5
6
rm -rf $outPath
6
7
mkdir $outPath
7
8
8
- CGO_ENABLED=0 GOOS=$outPlattform GOARCH=$outArch go build ../gogs .go
9
+ CGO_ENABLED=0 GOOS=$outPlattform GOARCH=$outArch go build ../main .go -o gitea
9
10
chmod +x gogs
10
11
mv gogs $outPath /
11
12
@@ -24,4 +25,4 @@ cp ../README_ZH.md $outPath/
24
25
cp start.bat $outPath /
25
26
cp start.sh $outPath /
26
27
cp ../wercker.yml $outPath /
27
- cp mysql.sql $outPath /
28
+ cp mysql.sql $outPath /
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
1
2
outPlattform=linux
2
3
outArch=amd64
3
4
outPath=./output_$outPlattform_$outArch
4
5
5
6
rm -rf $outPath
6
7
mkdir $outPath
7
8
8
- CGO_ENABLED=0 GOOS=$outPlattform GOARCH=$outArch go build ../gogs .go
9
+ CGO_ENABLED=0 GOOS=$outPlattform GOARCH=$outArch go build ../main .go -o gitea
9
10
chmod +x gogs
10
11
mv gogs $outPath /
11
12
@@ -24,4 +25,4 @@ cp ../README_ZH.md $outPath/
24
25
cp start.bat $outPath /
25
26
cp start.sh $outPath /
26
27
cp ../wercker.yml $outPath /
27
- cp mysql.sql $outPath /
28
+ cp mysql.sql $outPath /
You can’t perform that action at this time.
0 commit comments