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-04-02 17:52:46 -04:00
|
|
|
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-04-07 22:30:48 -04:00
|
|
|
LAUNCH_VERSION=$(VERSION).08
|
2020-04-02 17:52:46 -04:00
|
|
|
|
|
|
|
build: setup assets.go
|
|
|
|
go build
|
2020-04-03 11:38:32 -04:00
|
|
|
|
2020-04-03 18:56:34 -04:00
|
|
|
assets: clean setup assets.go
|
|
|
|
|
2020-04-02 17:52:46 -04:00
|
|
|
assets.go:
|
|
|
|
go run -tags generate gen.go
|
|
|
|
|
2020-04-03 11:38:32 -04:00
|
|
|
clean:
|
2020-04-07 20:45:19 -04:00
|
|
|
@echo CLEANING
|
2020-04-07 20:23:31 -04:00
|
|
|
rm -rf ifox i2pfox
|
2020-04-07 20:45:19 -04:00
|
|
|
gofmt -w -s main.go pure.go variant.go gen.go
|
|
|
|
@echo CLEANED
|
2020-04-03 11:38:32 -04:00
|
|
|
|
2020-04-07 20:45:19 -04:00
|
|
|
setup:
|
|
|
|
@echo CLEANING
|
|
|
|
rm -rf ifox i2pfox
|
|
|
|
gofmt -w -s main.go pure.go variant.go gen.go
|
|
|
|
@echo CLEANED
|
2020-04-07 22:21:26 -04:00
|
|
|
make i2ppb ublock noscript
|
2020-04-07 21:30:26 -04:00
|
|
|
go run -tags generate gen.go
|
2020-04-03 11:38:32 -04:00
|
|
|
|
2020-04-07 20:45:19 -04:00
|
|
|
setup-variant:
|
|
|
|
@echo CLEANING
|
|
|
|
rm -rf ifox i2pfox
|
|
|
|
gofmt -w -s main.go pure.go variant.go gen.go
|
|
|
|
@echo CLEANED
|
2020-04-07 21:27:27 -04:00
|
|
|
make i2ppb snowflake ublock umatrix
|
2020-04-07 21:30:26 -04:00
|
|
|
go run -tags generate gen.go
|
2020-04-07 20:16:41 -04:00
|
|
|
|
2020-04-07 22:21:26 -04:00
|
|
|
exts: noscript i2ppb snowflake ublock umatrix
|
|
|
|
|
|
|
|
noscript: ifox/noscript@noscript.org
|
2020-04-03 13:43:33 -04:00
|
|
|
i2ppb: ifox/i2ppb@eyedeekay.github.io.xpi
|
|
|
|
snowflake: ifox/snowflake@torproject.org.xpi
|
|
|
|
ublock: ifox/uBlock0@raymondhill.net.xpi
|
|
|
|
umatrix: ifox/uMatrix@raymondhill.net.xpi
|
|
|
|
|
|
|
|
ifox:
|
|
|
|
mkdir -p ifox
|
|
|
|
|
|
|
|
ifox/i2ppb@eyedeekay.github.io.xpi: ifox
|
2020-04-07 20:45:19 -04:00
|
|
|
wget -nv -c -O ifox/i2ppb@eyedeekay.github.io.xpi https://github.com/eyedeekay/I2P-in-Private-Browsing-Mode-Firefox/releases/download/$(VERSION)/i2ppb@eyedeekay.github.io.xpi
|
2020-04-03 11:38:32 -04:00
|
|
|
|
2020-04-03 13:43:33 -04:00
|
|
|
ifox/snowflake@torproject.org.xpi: ifox/{b11bea1f-a888-4332-8d8a-cec2be7d24b9}.xpi
|
|
|
|
|
|
|
|
ifox/{b11bea1f-a888-4332-8d8a-cec2be7d24b9}.xpi: ifox
|
2020-04-07 20:45:19 -04:00
|
|
|
wget -nv -c -O 'ifox/{b11bea1f-a888-4332-8d8a-cec2be7d24b9}.xpi' https://addons.mozilla.org/firefox/downloads/file/3519836/snowflake-0.2.2-fx.xpi
|
2020-04-03 13:43:33 -04:00
|
|
|
|
|
|
|
ifox/uBlock0@raymondhill.net.xpi: ifox
|
2020-04-07 20:45:19 -04:00
|
|
|
wget -nv -c -O ifox/uBlock0@raymondhill.net.xpi https://addons.mozilla.org/firefox/downloads/file/3521827/ublock_origin-$(UBLO_VERSION)-an+fx.xpi
|
2020-04-03 13:43:33 -04:00
|
|
|
|
|
|
|
ifox/uMatrix@raymondhill.net.xpi: ifox
|
2020-04-07 20:45:19 -04:00
|
|
|
wget -nv -c -O ifox/uMatrix@raymondhill.net.xpi https://addons.mozilla.org/firefox/downloads/file/3396815/umatrix-$(UMAT_VERSION)-an+fx.xpi
|
2020-04-03 13:43:33 -04:00
|
|
|
|
2020-04-07 22:21:26 -04:00
|
|
|
ifox/{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi:
|
|
|
|
wget -nv -c -O 'ifox/{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi' https://addons.mozilla.org/firefox/downloads/file/3534184/noscript_security_suite-$(NOSS_VERSION)-an+fx.xpi
|
|
|
|
|
|
|
|
ifox/noscript@noscript.org: ifox/{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi
|
|
|
|
|
|
|
|
sums: exts
|
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-04-07 22:21:26 -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
|
|
|
|
|
|
|
|
pure: clean setup assets.go
|
2020-04-03 11:38:32 -04:00
|
|
|
GOOS=windows go build -o i2pfirefox.exe
|
|
|
|
GOOS=darwin go build -o i2pfirefox-darwin
|
|
|
|
GOOS=linux go build -o i2pfirefox
|
2020-04-02 17:52:46 -04:00
|
|
|
|
2020-04-07 20:16:41 -04:00
|
|
|
variant: clean setup-variant assets.go
|
|
|
|
GOOS=windows go build -tags variant -o i2pfirefox-variant.exe
|
|
|
|
GOOS=darwin go build -tags variant -o i2pfirefox-variant-darwin
|
|
|
|
GOOS=linux go build -tags variant -o i2pfirefox-variant
|
|
|
|
|
2020-04-03 11:38:32 -04:00
|
|
|
release:
|
2020-04-03 20:58:14 -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"
|
2020-04-03 13:43:33 -04:00
|
|
|
gothub upload -R -u eyedeekay -r "i2pfirefox" -t $(LAUNCH_VERSION) -n "i2pfirefox.exe" -f "i2pfirefox.exe"
|
|
|
|
gothub upload -R -u eyedeekay -r "i2pfirefox" -t $(LAUNCH_VERSION) -n "i2pfirefox-darwin" -f "i2pfirefox-darwin"
|
|
|
|
gothub upload -R -u eyedeekay -r "i2pfirefox" -t $(LAUNCH_VERSION) -n "i2pfirefox" -f "i2pfirefox"
|
2020-04-02 17:52:46 -04:00
|
|
|
|
2020-04-07 20:16:41 -04:00
|
|
|
release-variant:
|
|
|
|
gothub upload -R -u eyedeekay -r "i2pfirefox" -t $(LAUNCH_VERSION) -n "i2pfirefox-variant.exe" -f "i2pfirefox-variant.exe"
|
|
|
|
gothub upload -R -u eyedeekay -r "i2pfirefox" -t $(LAUNCH_VERSION) -n "i2pfirefox-variant-darwin" -f "i2pfirefox-variant-darwin"
|
|
|
|
gothub upload -R -u eyedeekay -r "i2pfirefox" -t $(LAUNCH_VERSION) -n "i2pfirefox-variant" -f "i2pfirefox-variant"
|
|
|
|
|
2020-04-03 11:38:32 -04:00
|
|
|
linux-release:
|
2020-04-03 13:43:33 -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"; true
|
|
|
|
gothub upload -R -u eyedeekay -r "i2pfirefox" -t $(LAUNCH_VERSION) -n "i2pfirefox" -f "i2pfirefox"
|