forked from x/ContextOS
opt some
This commit is contained in:
parent
7c99b97d87
commit
ad3040e680
6
Makefile
6
Makefile
@ -2,10 +2,12 @@ publish = usr/publish
|
|||||||
binarys = bin/ice.bin
|
binarys = bin/ice.bin
|
||||||
version = src/version.go
|
version = src/version.go
|
||||||
binpack = src/binpack.go
|
binpack = src/binpack.go
|
||||||
|
# flags = -ldflags "-w -s -H windowsgui" -v
|
||||||
|
flags = -ldflags "-w -s" -v
|
||||||
|
|
||||||
all: def
|
all: def
|
||||||
@date +"%Y-%m-%d %H:%M:%S"
|
@date +"%Y-%m-%d %H:%M:%S"
|
||||||
go build -v -o ${binarys} src/main.go ${version} ${binpack} && ./${binarys} forever restart &>/dev/null
|
go build ${flags} -o ${binarys} src/main.go ${version} ${binpack} && ./${binarys} forever restart &>/dev/null
|
||||||
|
|
||||||
app: def
|
app: def
|
||||||
CGO_ENABLED=1 go build -v -o ${publish}/Contexts.app/Contents/MacOS/Contexts src/webview.go ${version} ${binpack} && ./${binarys} forever restart &>/dev/null
|
CGO_ENABLED=1 go build -v -o ${publish}/Contexts.app/Contents/MacOS/Contexts src/webview.go ${version} ${binpack} && ./${binarys} forever restart &>/dev/null
|
||||||
@ -15,7 +17,7 @@ app: def
|
|||||||
|
|
||||||
%: src/%.go def
|
%: src/%.go def
|
||||||
@date +"%Y-%m-%d %H:%M:%S"
|
@date +"%Y-%m-%d %H:%M:%S"
|
||||||
go build -v -o ${publish}/$@ src/$@.go ${version} && chmod u+x ${publish}/$@
|
go build ${flags} -o ${publish}/$@ src/$@.go ${version} && chmod u+x ${publish}/$@
|
||||||
|
|
||||||
def:
|
def:
|
||||||
@[ -f ${version} ] || echo "package main">${version}
|
@[ -f ${version} ] || echo "package main">${version}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user