Files
i2p.plugins.tinymce/Makefile

69 lines
2.3 KiB
Makefile
Raw Normal View History

2022-03-26 01:43:26 -04:00
GOPATH?=$(shell go env GOPATH)
GOOS?=$(shell go env GOOS)
GOARCH?=$(shell go env GOARCH)
BINARY=htmleditor
2022-03-26 23:17:41 -04:00
VERSION=0.0.2
2022-03-26 01:43:26 -04:00
SIGNER=hankhill19580@gmail.com
SIGNER_DIR=$(HOME)/i2p-go-keys/
CONSOLEPOSTNAME=I2P Site Editor
#the binaries actually come from $GOPATH/src/github.com/eyedeekay/go-htmleditor
"$(GOPATH)/src/github.com/eyedeekay/go-htmleditor":
git clone https://github.com/eyedeekay/go-htmleditor "$(GOPATH)/src/github.com/eyedeekay/go-htmleditor"; true
pull: "$(GOPATH)/src/github.com/eyedeekay/go-htmleditor"
cd "$(GOPATH)/src/github.com/eyedeekay/go-htmleditor" && \
git pull --all
build-all-arches: pull
cd "$(GOPATH)/src/github.com/eyedeekay/go-htmleditor" && \
make all
copy-all-arches: build-all-arches
cp "$(GOPATH)/src/github.com/eyedeekay/go-htmleditor/htmleditor-"* .
2022-03-26 01:57:20 -04:00
plugin-all-arches: copy-all-arches
2022-03-26 01:43:26 -04:00
GOOS=linux GOARCH=amd64 make pluginsu3
GOOS=linux GOARCH=386 make pluginsu3
GOOS=windows GOARCH=amd64 make pluginsu3
GOOS=windows GOARCH=386 make pluginsu3
GOOS=darwin GOARCH=amd64 make pluginsu3
#if GOOS==windows, then DOTEXE=.exe
DOTEXE=$(shell bash -c '[ "$(GOOS)" == "windows" ] && echo ".exe" || echo ""')
pluginsu3:
i2p.plugin.native -name=$(BINARY)-$(GOOS)-$(GOARCH) \
-signer=$(SIGNER) \
-signer-dir=$(SIGNER_DIR) \
-version "$(VERSION)" \
-author=$(SIGNER) \
-autostart=true \
-clientname=$(BINARY) \
-consolename="$(BINARY) - $(CONSOLEPOSTNAME)" \
-delaystart="1" \
-desc="`cat desc`" \
-exename=$(BINARY)-$(GOOS)-$(GOARCH)$(DOTEXE) \
-icondata=icon/icon.png \
-consoleurl="http://127.0.0.1:7685" \
-updateurl="http://idk.i2p/$(BINARY)/$(BINARY)-$(GOOS)-$(GOARCH).su3" \
-website="http://idk.i2p/$(BINARY)/" \
2022-03-26 15:14:09 -04:00
-command="$(BINARY)-$(GOOS)-$(GOARCH) -dir=\$$CONFIG/eepsite/docroot" \
2022-03-26 01:43:26 -04:00
-license=MIT
2022-03-26 01:57:20 -04:00
unzip -o $(BINARY)-$(GOOS)-$(GOARCH).zip -d $(BINARY)-$(GOOS)-$(GOARCH)-zip
release:
gothub release --pre-release -u eyedeekay -r i2p.plugins.tinymce -n $(BINARY) -d "`cat desc`" -t "$(VERSION)"
upload:
gothub upload -u eyedeekay -r i2p.plugins.tinymce -n $(BINARY) -t "$(VERSION)" -f $(BINARY)-$(GOOS)-$(GOARCH).su3
version: plugin-all-arches release
GOOS=linux GOARCH=amd64 make upload
GOOS=linux GOARCH=386 make upload
GOOS=windows GOARCH=amd64 make upload
GOOS=windows GOARCH=386 make upload
GOOS=darwin GOARCH=amd64 make upload