diff --git a/.gitignore b/.gitignore index 73acfab..241fd89 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ *.x86 -*.arm \ No newline at end of file +*.arm +*.zip \ No newline at end of file diff --git a/Makefile b/Makefile index 495678b..6e85051 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/README.md b/README.md index fcb015f..045e8a4 100644 --- a/README.md +++ b/README.md @@ -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