add download_prebuilt target

This commit is contained in:
evan 2020-05-07 23:43:23 -05:00
parent 1c26f7be06
commit f41beb4cea
3 changed files with 16 additions and 6 deletions

3
.gitignore vendored
View file

@ -1,2 +1,3 @@
*.x86
*.arm
*.arm
*.zip

View file

@ -1,4 +1,6 @@
.ONESHELL:
.SILENT:
host=10.11.99.1
printer.arm:
@ -9,6 +11,12 @@ printer.x86:
go get ./...
go build -o printer.x86
# get latest prebuilt releases
.PHONY: download_prebuilt
download_prebuilt:
wget http://github.com/evidlo/remarkable_printer/releases/latest/download/release.zip
# install to device
.PHONY: install
install: printer.arm
ssh-add
@ -23,8 +31,8 @@ install: printer.arm
.PHONY: release
release: printer.arm printer.x86
rm -f printer.zip
zip printer.zip ./ -r
rm -f release.zip
zip release.zip ./ -r
.PHONY: install_config
install_config:
@ -35,4 +43,4 @@ install_config:
-m lsb/usr/cupsfilters/Generic-PDF_Printer-PDF.ppd
clean:
rm -f printer.x86 printer.arm printer.zip
rm -f printer.x86 printer.arm release.zip

View file

@ -6,13 +6,14 @@ Print natively to your reMarkable wirelessly with no extensions or reMarkable cl
## Install
Assuming you have Go installed, simply run (with reMarkable connected via USB)
With the reMarkable connected via USB, execute
make download_prebuilt
make install
This will install and start the printer service on the reMarkable.
If you don't have go, you can download and unzip the precompiled release from the releases page to this directory then run the above command.
Alternatively, you can build the executable yourself by omitting the `make download_prebuilt` step.
## Adding the reMarkable as a printer