Skip to content

Commit

Permalink
Merge pull request #8 from viodo/dev
Browse files Browse the repository at this point in the history
feat: update to v1.1.1
  • Loading branch information
xbmlz authored Jul 7, 2021
2 parents af577bb + 9da83bb commit 741d93a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.bat
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
@echo off
echo Build Windows...
go build -ldflags="-w -s" -o build\DbDoc-1.1.0-win\DbDoc.exe main.go
go build -ldflags="-w -s" -o build\DbDoc-Windows.exe main.go
echo Build Windows Successfully!

echo Build Linux...
set CGO_ENABLED=0
set GOOS=linux
set GOARCH=amd64
go build -ldflags="-w -s" -o build\DbDoc-1.1.0-linux\DbDoc main.go
go build -ldflags="-w -s" -o build\DbDoc-Mac main.go
echo Build Linux Successfully!


echo Build Mac...
set CGO_ENABLED=0
set GOOS=darwin
set GOARCH=amd64
go build -ldflags="-w -s" -o build\DbDoc-1.1.0-mac\DbDoc main.go
go build -ldflags="-w -s" -o build\DbDoc-Linux main.go
echo Build Mac Successfully!

pause
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@ import (
"os"
)

const version = "v1.1.1"

var dbConfig model.DbConfig

func main() {
fmt.Printf("Welcome to the database document generation tool, the current version is %s \n", version)
fmt.Println("? Database type:\n1:MySQL or MariaDB\n2:SQL Server\n3:PostgreSQL")
// db type
fmt.Scanln(&dbConfig.DbType)
Expand Down

0 comments on commit 741d93a

Please sign in to comment.