diff options
author | Nick White <git@njw.name> | 2022-11-11 13:21:11 +0000 |
---|---|---|
committer | Nick White <git@njw.name> | 2022-11-11 13:21:11 +0000 |
commit | 45627c634fe9678ce9e422f7901cc141cc723778 (patch) | |
tree | 6c4e68f3ca762a04cabc7cf6d572550372e94756 /cmd/rescribe/makefile | |
parent | 06b68d5765048e0adb27395b8df90e90251db76a (diff) |
Add flatpak support, including a appdata and .desktop files
Diffstat (limited to 'cmd/rescribe/makefile')
-rw-r--r-- | cmd/rescribe/makefile | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cmd/rescribe/makefile b/cmd/rescribe/makefile index 4d06e36..f1db3f3 100644 --- a/cmd/rescribe/makefile +++ b/cmd/rescribe/makefile @@ -28,6 +28,10 @@ dist/linux/rescribe: $(GODEPS) mkdir -p dist/linux GOOS=linux GOARCH=amd64 go build -tags embed -o $@ . +dist/linux/rescribe-nogenerate: $(GODEPS) + mkdir -p dist/linux + GOOS=linux GOARCH=amd64 go build -tags embed -o $@ . + build/darwin_amd64/rescribe: $(GODEPS) go generate mkdir -p build/darwin_amd64 @@ -61,5 +65,11 @@ dist/windows/rescribe.exe: build/windows/rescribe-bin.exe CC="x86_64-w64-mingw32-gcc" fyne package --name Rescribe --exe build/windows/rescribe-bin.exe --os windows --icon icon.png mv rescribe.exe $@ +# used for flatpak building +modules.tar.xz: ../../go.mod + go mod vendor + cd ../.. && tar c vendor | xz > cmd/rescribe/$@ + clean: rm -rf dist build + rm -rf ../../vendor |