Files
I2pbrowser/Makefile

130 lines
3.6 KiB
Makefile
Raw Normal View History

2020-04-02 17:52:46 -04:00
2020-04-03 19:55:17 -04:00
export GO111MODULE=on
GO111MODULE=on
2020-04-03 19:53:12 -04:00
2020-08-21 15:14:02 -04:00
EXT_VERSION=0.73
2020-04-03 13:43:33 -04:00
SNOW_VERSION=0.2.2
2020-04-03 18:56:34 -04:00
UMAT_VERSION=1.25.2
UBLO_VERSION=1.4.0
2020-04-07 22:21:26 -04:00
NOSS_VERSION=11.0.23
2020-05-11 20:06:57 -04:00
ZERO_VERSION=v1.16
2020-08-21 15:14:02 -04:00
ZERO_VERSION_B=`echo $(ZERO_VERSION) | tr -d 'v.'`
2020-08-21 23:33:32 -04:00
LAST_VERSION=$(ZERO_VERSION_B).$(EXT_VERSION).095
LAUNCH_VERSION=$(ZERO_VERSION_B).$(EXT_VERSION).096
2020-04-02 17:52:46 -04:00
2020-05-17 17:45:50 -04:00
GO_COMPILER_OPTS = -a -tags netgo -ldflags '-w -extldflags "-static"'
2020-08-21 15:14:02 -04:00
echo:
echo $(LAUNCH_VERSION)
2020-08-01 14:15:43 -04:00
build:
2020-05-17 17:45:50 -04:00
go build $(GO_COMPILER_OPTS)
2020-04-03 11:38:32 -04:00
2020-08-04 00:31:08 -04:00
assets: fmt lib/assets.go
2020-04-03 18:56:34 -04:00
2020-07-02 19:58:19 -04:00
gen:
go run $(GO_COMPILER_OPTS) -tags generate gen.go extensions.go
2020-04-02 17:52:46 -04:00
clean: fmt
rm -f i2pfirefox*
fmt:
gofmt -w -s *.go
2020-08-04 00:31:08 -04:00
gofmt -w -s \
2020-08-04 00:31:35 -04:00
lib/firefox.go \
lib/pure.go \
lib/pureextensions.go \
lib/variant.go \
2020-08-04 00:31:08 -04:00
lib/variantextensions.go
2020-07-02 19:58:19 -04:00
sum:
2020-04-03 15:38:36 -04:00
sha256sum ifox/i2ppb@eyedeekay.github.io.xpi
sha256sum 'ifox/{b11bea1f-a888-4332-8d8a-cec2be7d24b9}.xpi'
sha256sum ifox/uBlock0@raymondhill.net.xpi
sha256sum ifox/uMatrix@raymondhill.net.xpi
2020-07-02 19:58:19 -04:00
#sha256sum 'ifox/{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi'
2020-04-03 13:43:33 -04:00
2020-04-07 20:16:41 -04:00
all: pure variant
2020-08-04 00:31:08 -04:00
pure: fmt lib/assets.go windows osx linux
2020-08-01 14:15:43 -04:00
windows: fmt
2020-05-17 17:45:50 -04:00
GOOS=windows go build $(GO_COMPILER_OPTS) -o i2pfirefox.exe
2020-08-01 14:15:43 -04:00
osx: fmt
2020-08-02 18:21:36 -04:00
GOOS=darwin go build $(GO_COMPILER_OPTS) -o i2pfirefox-darwin
2020-08-01 14:15:43 -04:00
linux: fmt
2020-05-17 17:45:50 -04:00
GOOS=linux go build $(GO_COMPILER_OPTS) -o i2pfirefox
2020-04-02 17:52:46 -04:00
2020-08-04 01:48:09 -04:00
variant: fmt lib/assets.go vwindows vosx vlinux
2020-08-01 14:15:43 -04:00
vwindows: fmt
2020-05-17 17:45:50 -04:00
GOOS=windows go build $(GO_COMPILER_OPTS) -tags variant -o i2pfirefox-variant.exe
2020-08-01 14:15:43 -04:00
vosx: fmt
2020-08-02 18:21:36 -04:00
GOOS=darwin go build $(GO_COMPILER_OPTS) -tags variant -o i2pfirefox-variant-darwin
2020-08-01 14:15:43 -04:00
vlinux: fmt
2020-05-17 17:45:50 -04:00
GOOS=linux go build $(GO_COMPILER_OPTS) -tags variant -o i2pfirefox-variant
2020-04-07 20:16:41 -04:00
sumwindows=`sha256sum i2pfirefox.exe`
sumlinux=`sha256sum i2pfirefox`
sumdarwin=`sha256sum i2pfirefox-darwin`
sumvwindows=`sha256sum i2pfirefox-variant.exe`
sumvlinux=`sha256sum i2pfirefox-variant`
sumvdarwin=`sha256sum i2pfirefox-variant-darwin`
check:
echo "$(sumwindows)"
echo "$(sumlinux)"
echo "$(sumdarwin)"
echo "$(sumvwindows)"
echo "$(sumvlinux)"
echo "$(sumvdarwin)"
2020-04-03 11:38:32 -04:00
release:
2020-08-21 15:27:05 -04:00
gothub release -p -u eyedeekay -r "i2pfirefox" -t $(LAUNCH_VERSION) -n "Launchers" -d "A self-configuring launcher for mixed I2P and clearnet Browsing with Firefox"
sed -i "s|$(LAST_VERSION)|$(LAUNCH_VERSION)|g" README.md
sed -i "s|$(LAST_VERSION)|$(LAUNCH_VERSION)|g" Makefile
git commit -am "Make release version $(LAUNCH_VERSION)" && git push
2020-04-02 17:52:46 -04:00
2020-08-21 23:33:32 -04:00
upload: upload-windows upload-darwin upload-linux
upload-windows:
gothub upload -R -u eyedeekay -r "i2pfirefox" -t $(LAUNCH_VERSION) -l "$(sumwindows)" -n "i2pfirefox.exe" -f "i2pfirefox.exe"
2020-08-21 23:33:32 -04:00
upload-darwin:
gothub upload -R -u eyedeekay -r "i2pfirefox" -t $(LAUNCH_VERSION) -l "$(sumdarwin)" -n "i2pfirefox-darwin" -f "i2pfirefox-darwin"
2020-08-21 23:33:32 -04:00
upload-linux:
gothub upload -R -u eyedeekay -r "i2pfirefox" -t $(LAUNCH_VERSION) -l "$(sumlinux)" -n "i2pfirefox" -f "i2pfirefox"
2020-08-21 23:33:32 -04:00
upload-variant: upload-variant-windows upload-variant-darwin upload-variant-linux
upload-variant-windows:
gothub upload -R -u eyedeekay -r "i2pfirefox" -t $(LAUNCH_VERSION) -l "$(sumvwindows)" -n "i2pfirefox-variant.exe" -f "i2pfirefox-variant.exe"
2020-08-21 23:33:32 -04:00
upload-variant-darwin:
gothub upload -R -u eyedeekay -r "i2pfirefox" -t $(LAUNCH_VERSION) -l "$(sumvdarwin)" -n "i2pfirefox-variant-darwin" -f "i2pfirefox-variant-darwin"
2020-08-21 23:33:32 -04:00
upload-variant-linux:
gothub upload -R -u eyedeekay -r "i2pfirefox" -t $(LAUNCH_VERSION) -l "$(sumvlinux)" -n "i2pfirefox-variant" -f "i2pfirefox-variant"
upload-all: upload upload-variant
release-all: release upload-all
release-pure:
make pure
make release; true
make upload
2020-04-07 20:16:41 -04:00
release-variant:
make variant
make release; true
make upload-variant
2020-08-02 18:21:36 -04:00
clean-release: clean release-pure release-variant
2020-08-02 18:21:36 -04:00