mirror of
https://github.com/gmemstr/sliproad.git
synced 2024-09-19 16:11:11 +01:00
58128a0e98
Implemented file upload progress to the frontend using XMLHttpRequests, since fetch() doesn't offer this functionality right now. Bit of a fragmented approach to requests in the codebase right now, but hope to resolve this soon. Not styled at all either. Also added some nifty commands to the Makefile for producing smaller binaries using some compiler flags and upx, and requires upx to be installed (make small and make small_pi).
18 lines
257 B
Makefile
18 lines
257 B
Makefile
.DEFAULT_GOAL := build
|
|
|
|
build:
|
|
go build
|
|
|
|
pi:
|
|
env GOOS=linux GOARCH=arm GOARM=5 go build
|
|
|
|
small:
|
|
go build -ldflags="-s -w"
|
|
upx --brute nas
|
|
|
|
small_pi:
|
|
env GOOS=linux GOARCH=arm GOARM=5 go build -ldflags="-s -w"
|
|
upx --brute nas
|
|
|
|
run:
|
|
go run webserver.go
|