mirror of
				https://github.com/nkanaev/yarr.git
				synced 2025-11-04 08:48:45 +00:00 
			
		
		
		
	Compare commits
	
		
			1 Commits
		
	
	
		
			841c342fcc
			...
			6c3f6605de
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					6c3f6605de | 
@@ -18,7 +18,7 @@ Then run one of the corresponding commands:
 | 
			
		||||
    make serve          # starts a server at http://localhost:7070
 | 
			
		||||
 | 
			
		||||
    # ... or build a docker image
 | 
			
		||||
    docker build -t yarr -f etc/dockerfile .
 | 
			
		||||
    docker build -t yarr .
 | 
			
		||||
 | 
			
		||||
## ARM compilation
 | 
			
		||||
 | 
			
		||||
@@ -26,7 +26,7 @@ The instructions below are to cross-compile *yarr* to `Linux/ARM*`.
 | 
			
		||||
 | 
			
		||||
Build:
 | 
			
		||||
 | 
			
		||||
    docker build -t yarr.arm -f etc/dockerfile.arm .
 | 
			
		||||
    docker build -t yarr.arm -f dockerfile.arm .
 | 
			
		||||
 | 
			
		||||
Test:
 | 
			
		||||
 | 
			
		||||
@@ -4,7 +4,6 @@
 | 
			
		||||
- (fix) duplicate articles caused by the same feed addition (thanks to @adaszko)
 | 
			
		||||
- (fix) relative article links (thanks to @adazsko for the report)
 | 
			
		||||
- (fix) atom article links stored in id element (thanks to @adazsko for the report)
 | 
			
		||||
- (fix) parsing atom feed titles (thanks to @wnh)
 | 
			
		||||
 | 
			
		||||
# v2.4 (2023-08-15)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -28,17 +28,17 @@ RUN env \
 | 
			
		||||
        CGO_ENABLED=1 \
 | 
			
		||||
        GOOS=linux GOARCH=arm64 \
 | 
			
		||||
    go build \
 | 
			
		||||
        -tags "sqlite_foreign_keys linux" \
 | 
			
		||||
        -tags "sqlite_foreign_keys release linux" \
 | 
			
		||||
        -ldflags="-s -w" \
 | 
			
		||||
        -o /root/out/yarr.arm64 ./cmd/yarr
 | 
			
		||||
        -o /root/out/yarr.arm64 src/main.go
 | 
			
		||||
 | 
			
		||||
RUN env \
 | 
			
		||||
        CC=arm-linux-gnueabihf-gcc \
 | 
			
		||||
        CGO_ENABLED=1 \
 | 
			
		||||
        GOOS=linux GOARCH=arm GOARM=7 \
 | 
			
		||||
    go build \
 | 
			
		||||
        -tags "sqlite_foreign_keys linux" \
 | 
			
		||||
        -tags "sqlite_foreign_keys release linux" \
 | 
			
		||||
        -ldflags="-s -w" \
 | 
			
		||||
        -o /root/out/yarr.arm7 ./cmd/yarr
 | 
			
		||||
        -o /root/out/yarr.arm7 src/main.go
 | 
			
		||||
 | 
			
		||||
CMD ["/bin/bash"]
 | 
			
		||||
							
								
								
									
										16
									
								
								makefile
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								makefile
									
									
									
									
									
								
							@@ -8,26 +8,26 @@ GO_LDFLAGS := $(GO_LDFLAGS) -X 'main.Version=$(VERSION)' -X 'main.GitHash=$(GITH
 | 
			
		||||
 | 
			
		||||
build_default:
 | 
			
		||||
	mkdir -p _output
 | 
			
		||||
	go build -tags "sqlite_foreign_keys" -ldflags="$(GO_LDFLAGS)" -o _output/yarr ./cmd/yarr
 | 
			
		||||
	go build -tags "sqlite_foreign_keys release" -ldflags="$(GO_LDFLAGS)" -o _output/yarr src/main.go
 | 
			
		||||
 | 
			
		||||
build_macos:
 | 
			
		||||
	mkdir -p _output/macos
 | 
			
		||||
	GOOS=darwin GOARCH=amd64 go build -tags "sqlite_foreign_keys macos" -ldflags="$(GO_LDFLAGS)" -o _output/macos/yarr ./cmd/yarr
 | 
			
		||||
	GOOS=darwin GOARCH=amd64 go build -tags "sqlite_foreign_keys release macos" -ldflags="$(GO_LDFLAGS)" -o _output/macos/yarr src/main.go
 | 
			
		||||
	cp src/platform/icon.png _output/macos/icon.png
 | 
			
		||||
	go run ./cmd/package_macos -outdir _output/macos -version "$(VERSION)"
 | 
			
		||||
	go run bin/package_macos.go -outdir _output/macos -version "$(VERSION)"
 | 
			
		||||
 | 
			
		||||
build_linux:
 | 
			
		||||
	mkdir -p _output/linux
 | 
			
		||||
	GOOS=linux GOARCH=amd64 go build -tags "sqlite_foreign_keys linux" -ldflags="$(GO_LDFLAGS)" -o _output/linux/yarr ./cmd/yarr
 | 
			
		||||
	GOOS=linux GOARCH=amd64 go build -tags "sqlite_foreign_keys release linux" -ldflags="$(GO_LDFLAGS)" -o _output/linux/yarr src/main.go
 | 
			
		||||
 | 
			
		||||
build_windows:
 | 
			
		||||
	mkdir -p _output/windows
 | 
			
		||||
	go run ./cmd/generate_versioninfo -version "$(VERSION)" -outfile src/platform/versioninfo.rc
 | 
			
		||||
	go run bin/generate_versioninfo.go -version "$(VERSION)" -outfile src/platform/versioninfo.rc
 | 
			
		||||
	windres -i src/platform/versioninfo.rc -O coff -o src/platform/versioninfo.syso
 | 
			
		||||
	GOOS=windows GOARCH=amd64 go build -tags "sqlite_foreign_keys windows" -ldflags="$(GO_LDFLAGS) -H windowsgui" -o _output/windows/yarr.exe ./cmd/yarr
 | 
			
		||||
	GOOS=windows GOARCH=amd64 go build -tags "sqlite_foreign_keys release windows" -ldflags="$(GO_LDFLAGS) -H windowsgui" -o _output/windows/yarr.exe src/main.go
 | 
			
		||||
 | 
			
		||||
serve:
 | 
			
		||||
	go run -tags "sqlite_foreign_keys" ./cmd/yarr -db local.db
 | 
			
		||||
	go run -tags "sqlite_foreign_keys" src/main.go -db local.db
 | 
			
		||||
 | 
			
		||||
test:
 | 
			
		||||
	cd src && go test -tags "sqlite_foreign_keys" ./...
 | 
			
		||||
	cd src && go test -tags "sqlite_foreign_keys release" ./...
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										18
									
								
								readme.md
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								readme.md
									
									
									
									
									
								
							@@ -10,29 +10,27 @@ The app is a single binary with an embedded database (SQLite).
 | 
			
		||||
## usage
 | 
			
		||||
 | 
			
		||||
The latest prebuilt binaries for Linux/MacOS/Windows AMD64 are available
 | 
			
		||||
[here](https://github.com/nkanaev/yarr/releases/latest). Installation instructions:
 | 
			
		||||
[here](https://github.com/nkanaev/yarr/releases/latest).
 | 
			
		||||
 | 
			
		||||
* MacOS
 | 
			
		||||
### macos
 | 
			
		||||
 | 
			
		||||
Download `yarr-*-macos64.zip`, unzip it, place `yarr.app` in `/Applications` folder, [open the app][macos-open], click the anchor menu bar icon, select "Open".
 | 
			
		||||
 | 
			
		||||
* Windows
 | 
			
		||||
[macos-open]: https://support.apple.com/en-gb/guide/mac-help/mh40616/mac
 | 
			
		||||
 | 
			
		||||
### windows
 | 
			
		||||
 | 
			
		||||
Download `yarr-*-windows64.zip`, unzip it, open `yarr.exe`, click the anchor system tray icon, select "Open".
 | 
			
		||||
 | 
			
		||||
* Linux
 | 
			
		||||
### linux
 | 
			
		||||
 | 
			
		||||
Download `yarr-*-linux64.zip`, unzip it, place `yarr` in `$HOME/.local/bin`
 | 
			
		||||
and run [the script](etc/install-linux.sh).
 | 
			
		||||
 | 
			
		||||
[macos-open]: https://support.apple.com/en-gb/guide/mac-help/mh40616/mac
 | 
			
		||||
 | 
			
		||||
For self-hosting, see `yarr -h` for auth, tls & server configuration flags.
 | 
			
		||||
For building from source code, see [build.md](build.md)
 | 
			
		||||
 | 
			
		||||
See more:
 | 
			
		||||
 | 
			
		||||
* [Building from source code](doc/build.md)
 | 
			
		||||
* [Fever API support](doc/fever.md)
 | 
			
		||||
For Fever API support, see [fever.md](fever.md).
 | 
			
		||||
 | 
			
		||||
## credits
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,3 +1,6 @@
 | 
			
		||||
//go:build release
 | 
			
		||||
// +build release
 | 
			
		||||
 | 
			
		||||
package assets
 | 
			
		||||
 | 
			
		||||
import "embed"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user