PHP Classes


Recommend this page to a friend!
  Classes of Wolfy-J   spiral   Download  
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: spiral
Modular Web application development framework
Author: By
Last change: no need for cycle:sync confirmation
version bump
Date: 5 years ago
Size: 1,101 bytes


Class file image Download
#!/bin/bash cd $(dirname "${BASH_SOURCE[0]}") OD="$(pwd)" # Pushes application version into the build information. SPIRAL_VERSION=2.0.7 # Hardcode some values to the core package LDFLAGS="$LDFLAGS -X${SPIRAL_VERSION}" LDFLAGS="$LDFLAGS -X$(date +%FT%T%z)" build(){ echo Packaging $1 Build bdir=spiral-${SPIRAL_VERSION}-$2-$3 rm -rf builds/$bdir && mkdir -p builds/$bdir GOOS=$2 GOARCH=$3 ./ if [ "$2" == "windows" ]; then mv spiral builds/$bdir/spiral.exe else mv spiral builds/$bdir fi cp builds/$bdir cp builds/$bdir cp LICENSE builds/$bdir cd builds if [ "$2" == "linux" ]; then tar -zcf $bdir.tar.gz $bdir else zip -r -q $ $bdir fi rm -rf $bdir cd .. } if [ "$1" == "all" ]; then rm -rf builds/ build "Windows" "windows" "amd64" build "Mac" "darwin" "amd64" build "Linux" "linux" "amd64" build "FreeBSD" "freebsd" "amd64" exit fi CGO_ENABLED=0 go build -ldflags "$LDFLAGS -extldflags '-static'" -o "$OD/spiral" main.go