Skip to content

Commit

Permalink
Merge pull request #41 from Lewiscowles1986/arm64-paper-pro
Browse files Browse the repository at this point in the history
feat: remarkable paper-pro compatible version
  • Loading branch information
Evidlo authored Oct 13, 2024
2 parents b3edc95 + d1a7948 commit 9dc83ad
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 5 deletions.
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ renews.arm:
go get ./...
env GOOS=linux GOARCH=arm GOARM=7 go build -o renews.arm

renews.arm64:
go get ./...
env GOOS=linux GOARCH=arm64 go build -tags "rmpp" -o renews.arm64

renews.x86:
go get ./...
go build -o renews.x86
Expand All @@ -23,8 +27,8 @@ download_prebuilt:

# build release
.PHONY: release
release: renews.arm renews.x86
zip release.zip renews.arm renews.x86
release: renews.arm renews.x86 renews.arm64
zip release.zip renews.arm renews.x86 renews.arm64
gh release create --latest --verify-tag $(version) release.zip

# tag and push tag
Expand All @@ -34,7 +38,7 @@ tag:
git push --tags

clean:
rm -f renews.x86 renews.arm release.zip
rm -f renews.x86 renews.arm renews.arm64 release.zip

# define install
# # make sure ssh agent is running
Expand Down
8 changes: 8 additions & 0 deletions screen.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
//go:build !rmpp
// +build !rmpp

package main

func GetScreenSize() (int, int) {
return 1404, 1872
}
8 changes: 8 additions & 0 deletions screen_rmpp.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
//go:build rmpp
// +build rmpp

package main

func GetScreenSize() (int, int) {
return 1620, 2160
}
3 changes: 1 addition & 2 deletions sources.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ func adjust(img image.Image, mode string, scale float64) image.Image {

debug("Adjusting image")

re_width := 1404
re_height := 1872
re_width, re_height := GetScreenSize()

if mode == "fill" {
// scale image to remarkable width
Expand Down

0 comments on commit 9dc83ad

Please sign in to comment.