Procházet zdrojové kódy

Merge pull request #33 from metalmatze/feature/main.go

Rename gogs.go to main.go with all references
tags/v1.0.0
Thomas Boerger před 7 roky
rodič
revize
ba4d255635
5 změnil soubory, kde provedl 10 přidání a 8 odebrání
  1. 1
    1
      Makefile
  2. 1
    2
      main.go
  3. 2
    1
      scripts/build.sh
  4. 3
    2
      scripts/build_freebsd.sh
  5. 3
    2
      scripts/build_linux64.sh

+ 1
- 1
Makefile Zobrazit soubor

@@ -24,7 +24,7 @@ check: test
dist: release

govet:
$(GOVET) gogs.go
$(GOVET) main.go
$(GOVET) models modules routers

build: $(GENERATED)

gogs.go → main.go Zobrazit soubor

@@ -11,10 +11,9 @@ import (
"os"
"runtime"

"github.com/urfave/cli"

"github.com/go-gitea/gitea/cmd"
"github.com/go-gitea/gitea/modules/setting"
"github.com/urfave/cli"
)

const APP_VER = "0.9.99.0915"

+ 2
- 1
scripts/build.sh Zobrazit soubor

@@ -1,9 +1,10 @@
#!/usr/bin/env bash
outPath=./output

rm -rf $outPath
mkdir $outPath

go build ../gogs.go
go build ../main.go -o gitea
PLATFORM=`uname | cut -d _ -f 1`
if [ $PLATFORM = "MINGW32" ] || [ $PLATFORM = "MINGW64" ] || [ $PLATFORM = "CYGWIN" ]; then
GOGS_EXE=gogs.exe

+ 3
- 2
scripts/build_freebsd.sh Zobrazit soubor

@@ -1,3 +1,4 @@
#!/usr/bin/env bash
outPlattform=freebsd
outArch=amd64
outPath=./output_$outPlattform_$outArch
@@ -5,7 +6,7 @@ outPath=./output_$outPlattform_$outArch
rm -rf $outPath
mkdir $outPath

CGO_ENABLED=0 GOOS=$outPlattform GOARCH=$outArch go build ../gogs.go
CGO_ENABLED=0 GOOS=$outPlattform GOARCH=$outArch go build ../main.go -o gitea
chmod +x gogs
mv gogs $outPath/

@@ -24,4 +25,4 @@ cp ../README_ZH.md $outPath/
cp start.bat $outPath/
cp start.sh $outPath/
cp ../wercker.yml $outPath/
cp mysql.sql $outPath/
cp mysql.sql $outPath/

+ 3
- 2
scripts/build_linux64.sh Zobrazit soubor

@@ -1,3 +1,4 @@
#!/usr/bin/env bash
outPlattform=linux
outArch=amd64
outPath=./output_$outPlattform_$outArch
@@ -5,7 +6,7 @@ outPath=./output_$outPlattform_$outArch
rm -rf $outPath
mkdir $outPath

CGO_ENABLED=0 GOOS=$outPlattform GOARCH=$outArch go build ../gogs.go
CGO_ENABLED=0 GOOS=$outPlattform GOARCH=$outArch go build ../main.go -o gitea
chmod +x gogs
mv gogs $outPath/

@@ -24,4 +25,4 @@ cp ../README_ZH.md $outPath/
cp start.bat $outPath/
cp start.sh $outPath/
cp ../wercker.yml $outPath/
cp mysql.sql $outPath/
cp mysql.sql $outPath/

Načítá se…
Zrušit
Uložit