Skip to content
This repository has been archived by the owner on Oct 1, 2022. It is now read-only.

Commit

Permalink
added optional build script
Browse files Browse the repository at this point in the history
  • Loading branch information
zekroTJA committed Apr 14, 2019
1 parent b5b2c72 commit 568469f
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 67 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,20 @@

---

# Index

- [Intro](#intro)
- [Screen Shots](#screen-shots)

---

# Intro

Yuri is the best Discord sound board in whole North Korea, if you believe it or not! And now, even better with v.2 with way better performance, better code structure, easier installation and a brand new web interface! Also, now, Lavalink is completely implemented as Discord voice backend. With the new, open REST and Web Socket API you are now able to create applications hooking up the Yuri backend!

---

# Setup

---

Expand Down
25 changes: 25 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
APPNAME="yuri"
PACKAGE="github.com/zekroTJA/yuri2"
LDPAKAGE="static"
BINPATH="./bin"

GO="go"
DEP="dep"

##########################################

BIN="${BINPATH}/${APPNAME}"

TAG=$(git describe --tags)
COMMIT=$(git rev-parse HEAD)

##########################################

${DEP} ensure -v

${GO} build \
-v -o ${BIN} -ldflags "\
-X ${PACKAGE}/${LDPAKAGE}.AppVersion=${TAG} \
-X ${PACKAGE}/${LDPAKAGE}.AppCommit=${COMMIT} \
-X ${PACKAGE}/${LDPAKAGE}.Release=TRUE" \
./cmd/${APPNAME}
67 changes: 0 additions & 67 deletions scripts/release.sh

This file was deleted.

0 comments on commit 568469f

Please sign in to comment.