Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
eaa091971e | ||
![]() |
1203fbbc53 | ||
![]() |
104b5d7486 | ||
![]() |
716c56967c | ||
![]() |
d1d2721e36 | ||
![]() |
a46870bb72 |
25
Makefile
25
Makefile
@@ -1,5 +1,5 @@
|
||||
|
||||
VERSION=0.2.1
|
||||
VERSION=0.2.2
|
||||
APP=reseed-tools
|
||||
USER_GH=eyedeekay
|
||||
|
||||
@@ -38,10 +38,10 @@ build:
|
||||
/usr/lib/go-$(MIN_GO_VERSION)/bin/go build $(ARG) -o reseed-tools-$(GOOS)-$(GOARCH)
|
||||
|
||||
clean:
|
||||
rm reseed-tools-* *.key *.i2pKeys *.crt *.crl *.pem tmp -rfv
|
||||
rm reseed-tools-* tmp -rfv *.deb plugin reseed-tools
|
||||
|
||||
tar:
|
||||
tar --exclude="./.git" --exclude="./tmp" -cvf ../reseed-tools.tar.xz .
|
||||
tar --exclude="./.git" --exclude="./tmp" --exclude=".vscode" --exclude="./*.pem" --exclude="./*.crl" --exclude="./*.crt" -cvf ../reseed-tools.tar.xz .
|
||||
|
||||
install:
|
||||
install -m755 reseed-tools-$(GOOS)-$(GOARCH) /usr/bin/reseed-tools
|
||||
@@ -50,9 +50,19 @@ install:
|
||||
mkdir -p /etc/systemd/system/reseed.d/
|
||||
mkdir -p /var/lib/i2p
|
||||
install -g i2psvc -o i2psvc -d /var/lib/i2p/i2p-config/reseed/
|
||||
cp -r content /var/lib/i2p/i2p-config/reseed/content
|
||||
chown -R i2psvc:i2psvc /var/lib/i2p/i2p-config/reseed/
|
||||
install -m644 etc/systemd/system/reseed.d/reseed.conf /etc/systemd/system/reseed.d/reseed.conf
|
||||
install -m644 etc/systemd/system/reseed.d/reseed.service /etc/systemd/system/reseed.d/reseed.service
|
||||
|
||||
uninstall:
|
||||
rm /usr/bin/reseed-tools
|
||||
rm /etc/default/reseed
|
||||
rm /etc/init.d/reseed
|
||||
rm /etc/systemd/system/reseed.d/reseed.conf
|
||||
rm /etc/systemd/system/reseed.d/reseed.service
|
||||
rm -rf /var/lib/i2p/i2p-config/reseed/
|
||||
|
||||
checkinstall: build
|
||||
fakeroot checkinstall \
|
||||
--default \
|
||||
@@ -172,6 +182,9 @@ release: version upload checkinstall upload-single-deb plugins upload-su3s uploa
|
||||
version:
|
||||
cat README.md | gothub release -s $(GITHUB_TOKEN) -u $(USER_GH) -r $(APP) -t v$(VERSION) -d -
|
||||
|
||||
delete-version:
|
||||
gothub delete -s $(GITHUB_TOKEN) -u $(USER_GH) -r $(APP) -t v$(VERSION)
|
||||
|
||||
edit:
|
||||
cat README.md | gothub edit -s $(GITHUB_TOKEN) -u $(USER_GH) -r $(APP) -t v$(VERSION) -d -
|
||||
|
||||
@@ -218,7 +231,7 @@ upload-bin:
|
||||
GOOS=windows GOARCH=386 make upload-single-bin
|
||||
|
||||
rm-su3s:
|
||||
rm *.su3
|
||||
rm *.su3 -f
|
||||
|
||||
download-su3s: rm-su3s
|
||||
GOOS=darwin GOARCH=amd64 make download-single-su3
|
||||
@@ -247,7 +260,7 @@ upload-su3s:
|
||||
GOOS=windows GOARCH=386 make upload-single-su3
|
||||
|
||||
download-single-su3:
|
||||
wget -c "https://github.com/eyedeekay/reseed-tools/releases/download/v$(VERSION)/reseed-tools-$(GOOS)-$(GOARCH).su3"
|
||||
wget -N -c "https://github.com/eyedeekay/reseed-tools/releases/download/v$(VERSION)/reseed-tools-$(GOOS)-$(GOARCH).su3"
|
||||
|
||||
upload-single-deb:
|
||||
gothub upload -R -s $(GITHUB_TOKEN) -u $(USER_GH) -r $(APP) -t v$(VERSION) -f reseed-tools_$(VERSION)-1_amd64.deb -l "`sha256sum reseed-tools_$(VERSION)-1_amd64.deb`" -n "reseed-tools_$(VERSION)-1_amd64.deb"
|
||||
@@ -264,7 +277,7 @@ tmp/content:
|
||||
|
||||
tmp/lib:
|
||||
mkdir -p tmp/lib
|
||||
cp "$(HOME)/Workspace/GIT_WORK/i2p.i2p/build/i2p.jar" tmp/lib/i2p.jar
|
||||
cp "$(HOME)/Workspace/GIT_WORK/i2p.i2p/build/shellservice.jar" tmp/lib/shellservice.jar
|
||||
|
||||
su3s: tmp/content tmp/lib
|
||||
i2p.plugin.native -name=reseed-tools-$(GOOS)-$(GOARCH) \
|
||||
|
Reference in New Issue
Block a user