Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
haoqu.ma
/
gotty
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 248f51b2
authored
Aug 23, 2017
by
Iwasaki Yudai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Release v2.0.0-alpha.1
1 parent
4d682aa0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
Makefile
version.go
Makefile
View file @
248f51b
OUTPUT_DIR
=
./builds
OUTPUT_DIR
=
./builds
GIT_COMMIT
=
`
git rev-parse HEAD | cut -c1-10
`
GIT_COMMIT
=
`
git rev-parse HEAD | cut -c1-7
`
BUILD_OPTIONS
=
-ldflags
"-X main.CommitID=
$(GIT_COMMIT)
"
VERSION
=
2.0.0-alpha.1
BUILD_OPTIONS
=
-ldflags
"-X main.Version=
$(VERSION)
-X main.CommitID=
$(GIT_COMMIT)
"
gotty
:
server/asset.go main.go server/*.go webtty/*.go backend/*.go Makefile
gotty
:
server/asset.go main.go server/*.go webtty/*.go backend/*.go Makefile
godep go build
${
BUILD_OPTIONS
}
godep go build
${
BUILD_OPTIONS
}
...
@@ -66,7 +68,7 @@ cross_compile:
...
@@ -66,7 +68,7 @@ cross_compile:
targz
:
targz
:
mkdir -p
${
OUTPUT_DIR
}
/dist
mkdir -p
${
OUTPUT_DIR
}
/dist
cd
${
OUTPUT_DIR
}
/pkg/;
for
osarch
in
*
;
do
(
cd
$$
osarch; tar zcvf ../../dist/gotty_
$$
osarch.tar.gz ./
*
)
;
done
;
cd
${
OUTPUT_DIR
}
/pkg/;
for
osarch
in
*
;
do
(
cd
$$
osarch; tar zcvf ../../dist/gotty_
$
{
VERSION
}
_
$
$
osarch.tar.gz ./
*
)
;
done
;
shasums
:
shasums
:
cd
${
OUTPUT_DIR
}
/dist; sha256sum
*
> ./SHA256SUMS
cd
${
OUTPUT_DIR
}
/dist; sha256sum
*
> ./SHA256SUMS
...
...
version.go
View file @
248f51b
package
main
package
main
var
Version
=
"
2.0.0-alpha
"
var
Version
=
"
unknown_version
"
var
CommitID
=
"unknown_commit"
var
CommitID
=
"unknown_commit"
Write
Preview
Markdown
is supported
Attach a file
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 post a comment