Compare commits

..

2 Commits

Author SHA1 Message Date
Jeff Carr b1de98a8f8 fix build 2024-11-16 00:06:47 -06:00
Jeff Carr bb34a4590f add note for the simple-vpn package 2024-02-13 16:18:04 -06:00
2 changed files with 24 additions and 3 deletions

View File

@ -1,7 +1,24 @@
all:
go build -v -x
VERSION = $(shell git describe --tags)
BUILDTIME = $(shell date +%Y.%m.%d)
all: build
./control-panel-vpn
build:
GO111MODULE=off go build \
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
verbose:
GO111MODULE=off go build -v -x \
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
install:
GO111MODULE=off go install \
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
clean:
-rm -f control-panel-vpn
goimports:
goimports -w *.go

View File

@ -1,4 +1,8 @@
// This is a simple example
/*
Attempt to make a VPN
Take a look at: https://github.com/skx/simple-vpn
*/
package main
import (