Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
majora-go
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
majora
majora-go
Commits
d5cdf1a3
Commit
d5cdf1a3
authored
Sep 20, 2021
by
wei.xuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:fix build
parent
df42345c
Pipeline
#2447
failed with stages
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
5 deletions
+10
-5
.gitignore
.gitignore
+2
-1
Makefile
Makefile
+2
-3
README.md
README.md
+5
-0
majora-cli
majora-cli
+0
-0
majora.go
majora.go
+1
-1
No files found.
.gitignore
View file @
d5cdf1a3
dist/
.idea
echo-cli
\ No newline at end of file
echo-cli
majora-cli
\ No newline at end of file
Makefile
View file @
d5cdf1a3
build
:
flags
=
"-w -s -X majora.BuildDate=
`
date
-u
'+%Y-%m-%d_%I:%M:%S%p'
`
-X majora.Version=
`
git describe
--long
--dirty
--abbrev
=
14
`
"
go build
-ldflags
"
$flags
"
-o
majora-cli
go build
-ldflags
'-w -s'
-o
majora-cli
release
:
goreleaser build
--rm-dist
--snapshot
--single-target
...
...
@@ -12,4 +11,4 @@ releaseall:
clean
:
rm
-fr
dist
rm
-fr
echo-cli
\ No newline at end of file
rm
-fr
majora-cli
\ No newline at end of file
README.md
View file @
d5cdf1a3
...
...
@@ -4,3 +4,8 @@
make build
```
# 运行
```
./majora-cli -natServer "127.0.0.1:5879"
```
\ No newline at end of file
majora-cli
deleted
100755 → 0
View file @
df42345c
File deleted
majora.go
View file @
d5cdf1a3
...
...
@@ -40,7 +40,7 @@ func initPprof() {
func
main
()
{
InitLogger
(
logLevel
)
initPprof
()
logger
.
Info
()
.
Msgf
(
"build in %s, version %s"
,
BuildDate
,
Version
)
//
logger.Info().Msgf("build in %s, version %s", BuildDate, Version)
NewClient
(
WithNatServerAddr
(
natServer
))
.
StartUp
()
select
{}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment