Skip to content

Commit

Permalink
Display version.
Browse files Browse the repository at this point in the history
  • Loading branch information
udhos committed Sep 9, 2017
1 parent e94be0d commit f21ce2c
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 1 deletion.
17 changes: 17 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# fugo invader release

Home: https://github.com/udhos/fugo

$ tar xf fugo-invader.tar.gz
$ cd fugo-invader

arena: server
invader: Binary for desktop Linux
invader.apk: Package for Android

Run the server:
$ arena

Run the desktop Linux client:
$ invader

3 changes: 3 additions & 0 deletions arena/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"github.com/udhos/fugo/future"
"github.com/udhos/fugo/msg"
"github.com/udhos/fugo/unit"
"github.com/udhos/fugo/version"
)

type world struct {
Expand Down Expand Up @@ -54,6 +55,8 @@ type player struct {

func main() {

log.Printf("arena version " + version.Version)

var addr string

flag.StringVar(&addr, "addr", ":8080", "listen address")
Expand Down
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ check future
check msg
check trace
check unit
check version
if [ "$1" != arena ]; then
mobilebuild demo/square
mobilebuild demo/triangle2
Expand Down
3 changes: 2 additions & 1 deletion demo/invader/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import (
"github.com/udhos/fugo/msg"
"github.com/udhos/fugo/trace"
"github.com/udhos/fugo/unit"
"github.com/udhos/fugo/version"
)

type gameState struct {
Expand Down Expand Up @@ -204,7 +205,7 @@ func flipY(name string, img *image.NRGBA) {
}

func main() {
log.Print("main begin")
log.Print("main begin - fugo invader version " + version.Version)

slowPaint := len(os.Args) > 1
if !slowPaint {
Expand Down
13 changes: 13 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

dir=fugo-invader-0.0

mkdir $dir

cp ~/go/bin/invader $dir
cp ~/go/bin/arena $dir
cp -a demo/invader/assets $dir
cp invader.apk $dir
cp RELEASE.md $dir

tar czf $dir.tar.gz $dir
3 changes: 3 additions & 0 deletions version/version.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package version

const Version = "0.0"

0 comments on commit f21ce2c

Please sign in to comment.