Compare commits
	
		
			6 Commits
		
	
	
		
			5973290d6c
			...
			v0.0.7
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 271510d528 | |||
| 4d72a063b2 | |||
| 643245f16c | |||
| 5e66fe82ac | |||
| 645541e079 | |||
| 1012be6e5b | 
							
								
								
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -1,4 +1,5 @@ | |||||||
| /itctl | /itctl | ||||||
| /itd | /itd | ||||||
| /itgui | /itgui | ||||||
| /version.txt | /version.txt | ||||||
|  | dist/ | ||||||
|   | |||||||
							
								
								
									
										111
									
								
								.goreleaser.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										111
									
								
								.goreleaser.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,111 @@ | |||||||
|  | # This is an example .goreleaser.yml file with some sensible defaults. | ||||||
|  | # Make sure to check the documentation at https://goreleaser.com | ||||||
|  | before: | ||||||
|  |   hooks: | ||||||
|  |     # You may remove this if you don't use go modules. | ||||||
|  |     - go mod tidy | ||||||
|  | builds: | ||||||
|  |   - id: itd | ||||||
|  |     env: | ||||||
|  |       - CGO_ENABLED=0 | ||||||
|  |     binary: itd | ||||||
|  |     goos: | ||||||
|  |       - linux | ||||||
|  |     goarch: | ||||||
|  |       - 386 | ||||||
|  |       - amd64 | ||||||
|  |       - arm | ||||||
|  |       - arm64 | ||||||
|  |   - id: itctl | ||||||
|  |     env: | ||||||
|  |       - CGO_ENABLED=0 | ||||||
|  |     main: ./cmd/itctl | ||||||
|  |     binary: itctl | ||||||
|  |     goos: | ||||||
|  |       - linux | ||||||
|  |     goarch: | ||||||
|  |       - 386 | ||||||
|  |       - amd64 | ||||||
|  |       - arm | ||||||
|  |       - arm64 | ||||||
|  | archives: | ||||||
|  |   - replacements: | ||||||
|  |       386: i386 | ||||||
|  |       amd64: x86_64 | ||||||
|  |       arm64: aarch64 | ||||||
|  |     files: | ||||||
|  |       - LICENSE | ||||||
|  |       - README.md | ||||||
|  |       - itd.toml | ||||||
|  |       - itd.service | ||||||
|  | nfpms: | ||||||
|  |   - id: itd | ||||||
|  |     file_name_template: '{{.PackageName}}-{{.Version}}-{{.Os}}-{{.Arch}}' | ||||||
|  |     description: "Companion daemon for the InfiniTime firmware on the PineTime smartwatch" | ||||||
|  |     replacements: | ||||||
|  |       386: i386 | ||||||
|  |       amd64: x86_64 | ||||||
|  |       arm64: aarch64 | ||||||
|  |     homepage: 'https://gitea.arsenm.dev/Arsen6331/itd' | ||||||
|  |     maintainer: 'Arsen Musyaelyan <arsen@arsenm.dev>' | ||||||
|  |     license: GPLv3 | ||||||
|  |     formats: | ||||||
|  |       - apk | ||||||
|  |       - deb | ||||||
|  |       - rpm | ||||||
|  |     dependencies: | ||||||
|  |       - dbus | ||||||
|  |       - bluez | ||||||
|  |       - pulseaudio-utils | ||||||
|  |     contents: | ||||||
|  |       - src: itd.toml | ||||||
|  |         dst: /etc/itd.toml | ||||||
|  |         type: "config|noreplace" | ||||||
|  |       - src: itd.service | ||||||
|  |         dst: /usr/lib/systemd/user/itd.service | ||||||
|  | aurs: | ||||||
|  |   - name: itd-bin | ||||||
|  |     homepage: 'https://gitea.arsenm.dev/Arsen6331/itd' | ||||||
|  |     description: "Companion daemon for the InfiniTime firmware on the PineTime smartwatch" | ||||||
|  |     maintainers: | ||||||
|  |       - 'Arsen Musyaelyan <arsen@arsenm.dev>' | ||||||
|  |     license: GPLv3 | ||||||
|  |     private_key: '{{ .Env.AUR_KEY }}' | ||||||
|  |     git_url: 'ssh://aur@aur.archlinux.org/itd-bin.git' | ||||||
|  |     provides: | ||||||
|  |       - itd | ||||||
|  |       - itctl | ||||||
|  |     conflicts: | ||||||
|  |       - itd | ||||||
|  |       - itctl | ||||||
|  |     depends: | ||||||
|  |       - dbus | ||||||
|  |       - bluez | ||||||
|  |       - libpulse | ||||||
|  |     package: |- | ||||||
|  |       # binaries | ||||||
|  |       install -Dm755 "./itd" "${pkgdir}/usr/bin/itd" | ||||||
|  |       install -Dm755 "./itctl" "${pkgdir}/usr/bin/itctl" | ||||||
|  |  | ||||||
|  |       # service | ||||||
|  |       install -Dm644 "./itd.service" ${pkgdir}/usr/lib/systemd/user/itd.service | ||||||
|  |  | ||||||
|  |       # config | ||||||
|  |       install -Dm644 "./itd.toml" ${pkgdir}/etc/itd.toml | ||||||
|  |        | ||||||
|  |       # license | ||||||
|  |       install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/itd/LICENSE" | ||||||
|  | release: | ||||||
|  |   gitea: | ||||||
|  |     owner: Arsen6331 | ||||||
|  |     name: itd | ||||||
|  | gitea_urls: | ||||||
|  |   api: 'https://gitea.arsenm.dev/api/v1/' | ||||||
|  |   download: 'https://gitea.arsenm.dev' | ||||||
|  |   skip_tls_verify: false | ||||||
|  | checksum: | ||||||
|  |   name_template: 'checksums.txt' | ||||||
|  | snapshot: | ||||||
|  |   name_template: "{{ incpatch .Version }}-next" | ||||||
|  | changelog: | ||||||
|  |   sort: asc | ||||||
							
								
								
									
										14
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								README.md
									
									
									
									
									
								
							| @@ -3,7 +3,7 @@ | |||||||
|  |  | ||||||
| `itd` is a daemon that uses my infinitime [library](https://go.arsenm.dev/infinitime) to interact with the [PineTime](https://www.pine64.org/pinetime/) running [InfiniTime](https://infinitime.io). | `itd` is a daemon that uses my infinitime [library](https://go.arsenm.dev/infinitime) to interact with the [PineTime](https://www.pine64.org/pinetime/) running [InfiniTime](https://infinitime.io). | ||||||
|  |  | ||||||
| [](https://ci.appveyor.com/project/moussaelianarsen/itd) | [](https://ci.appveyor.com/project/moussaelianarsen/itd-7t6ko) | ||||||
| [](https://minio.arsenm.dev/minio/itd/) | [](https://minio.arsenm.dev/minio/itd/) | ||||||
| [](https://aur.archlinux.org/packages/itd-git/) | [](https://aur.archlinux.org/packages/itd-git/) | ||||||
|  |  | ||||||
| @@ -105,12 +105,22 @@ Use "itctl [command] --help" for more information about a command. | |||||||
|  |  | ||||||
| ### `itgui` | ### `itgui` | ||||||
|  |  | ||||||
| In `cmd/itgui`, there is a gui frontend to the socket of `itd`. It uses the [fyne library](https://fyne.io/) for Go. It can be compiled by running: | In `cmd/itgui`, there is a gui frontend to the socket of `itd`. It uses the [Fyne library](https://fyne.io/) for Go. | ||||||
|  |  | ||||||
|  | #### Compilation | ||||||
|  |  | ||||||
|  | Before compiling, certain prerequisites must be installed. These are listed on the following page: https://developer.fyne.io/started/#prerequisites | ||||||
|  |  | ||||||
|  | It can be compiled by running: | ||||||
|  |  | ||||||
| ```shell | ```shell | ||||||
| go build ./cmd/itgui | go build ./cmd/itgui | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
|  | #### Cross-compilation | ||||||
|  |  | ||||||
|  | Due to the use of OpenGL, cross-compilation of `itgui` isn't as simple as that of `itd` and `itctl`. The following guide from the Fyne website should work for `itgui`: https://developer.fyne.io/started/cross-compiling. | ||||||
|  |  | ||||||
| #### Screenshots | #### Screenshots | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										6
									
								
								go.mod
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								go.mod
									
									
									
									
									
								
							| @@ -4,8 +4,6 @@ go 1.17 | |||||||
|  |  | ||||||
| replace fyne.io/x/fyne => github.com/metal3d/fyne-x v0.0.0-20220508095732-177117e583fb | replace fyne.io/x/fyne => github.com/metal3d/fyne-x v0.0.0-20220508095732-177117e583fb | ||||||
|  |  | ||||||
| replace github.com/muka/go-bluetooth => github.com/Arsen6331/go-bluetooth v0.0.0-20220814070311-fc0969aa82ed |  | ||||||
|  |  | ||||||
| require ( | require ( | ||||||
| 	fyne.io/fyne/v2 v2.1.4 | 	fyne.io/fyne/v2 v2.1.4 | ||||||
| 	fyne.io/x/fyne v0.0.0-20220107050838-c4a1de51d4ce | 	fyne.io/x/fyne v0.0.0-20220107050838-c4a1de51d4ce | ||||||
| @@ -17,7 +15,7 @@ require ( | |||||||
| 	github.com/mozillazg/go-pinyin v0.19.0 | 	github.com/mozillazg/go-pinyin v0.19.0 | ||||||
| 	github.com/rs/zerolog v1.26.1 | 	github.com/rs/zerolog v1.26.1 | ||||||
| 	github.com/urfave/cli/v2 v2.3.0 | 	github.com/urfave/cli/v2 v2.3.0 | ||||||
| 	go.arsenm.dev/infinitime v0.0.0-20220511202257-9ed74726c478 | 	go.arsenm.dev/infinitime v0.0.0-20220819210252-d199fba93c2f | ||||||
| 	go.arsenm.dev/lrpc v0.0.0-20220513001344-3bcc01fdb6a0 | 	go.arsenm.dev/lrpc v0.0.0-20220513001344-3bcc01fdb6a0 | ||||||
| 	golang.org/x/text v0.3.7 | 	golang.org/x/text v0.3.7 | ||||||
| 	modernc.org/sqlite v1.17.2 | 	modernc.org/sqlite v1.17.2 | ||||||
| @@ -44,7 +42,7 @@ require ( | |||||||
| 	github.com/mitchellh/copystructure v1.2.0 // indirect | 	github.com/mitchellh/copystructure v1.2.0 // indirect | ||||||
| 	github.com/mitchellh/mapstructure v1.5.0 // indirect | 	github.com/mitchellh/mapstructure v1.5.0 // indirect | ||||||
| 	github.com/mitchellh/reflectwalk v1.0.2 // indirect | 	github.com/mitchellh/reflectwalk v1.0.2 // indirect | ||||||
| 	github.com/muka/go-bluetooth v0.0.0-20220219050759-674a63b8741a // indirect | 	github.com/muka/go-bluetooth v0.0.0-20220819140550-1d8857e3b268 // indirect | ||||||
| 	github.com/pelletier/go-toml v1.9.3 // indirect | 	github.com/pelletier/go-toml v1.9.3 // indirect | ||||||
| 	github.com/pmezard/go-difflib v1.0.0 // indirect | 	github.com/pmezard/go-difflib v1.0.0 // indirect | ||||||
| 	github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0 // indirect | 	github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0 // indirect | ||||||
|   | |||||||
							
								
								
									
										8
									
								
								go.sum
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								go.sum
									
									
									
									
									
								
							| @@ -41,8 +41,6 @@ fyne.io/fyne/v2 v2.1.0/go.mod h1:c1vwI38Ebd0dAdxVa6H1Pj6/+cK1xtDy61+I31g+s14= | |||||||
| fyne.io/fyne/v2 v2.1.4 h1:bt1+28++kAzRzPB0GM2EuSV4cnl8rXNX4cjfd8G06Rc= | fyne.io/fyne/v2 v2.1.4 h1:bt1+28++kAzRzPB0GM2EuSV4cnl8rXNX4cjfd8G06Rc= | ||||||
| fyne.io/fyne/v2 v2.1.4/go.mod h1:p+E/Dh+wPW8JwR2DVcsZ9iXgR9ZKde80+Y+40Is54AQ= | fyne.io/fyne/v2 v2.1.4/go.mod h1:p+E/Dh+wPW8JwR2DVcsZ9iXgR9ZKde80+Y+40Is54AQ= | ||||||
| github.com/Andrew-M-C/go.jsonvalue v1.1.2-0.20211223013816-e873b56b4a84/go.mod h1:oTJGG91FhtsxvUFVwHSvr6zuaTcAuroj/ToxfT7Ox8U= | github.com/Andrew-M-C/go.jsonvalue v1.1.2-0.20211223013816-e873b56b4a84/go.mod h1:oTJGG91FhtsxvUFVwHSvr6zuaTcAuroj/ToxfT7Ox8U= | ||||||
| github.com/Arsen6331/go-bluetooth v0.0.0-20220814070311-fc0969aa82ed h1:ng26blIMPuQISllzMIsKuTiPQrS5+BX8e3X9la4SeP4= |  | ||||||
| github.com/Arsen6331/go-bluetooth v0.0.0-20220814070311-fc0969aa82ed/go.mod h1:dMCjicU6vRBk34dqOmIZm0aod6gUwZXOXzBROqGous0= |  | ||||||
| github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= | github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= | ||||||
| github.com/BurntSushi/toml v0.4.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= | github.com/BurntSushi/toml v0.4.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= | ||||||
| github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= | github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= | ||||||
| @@ -303,6 +301,8 @@ github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lN | |||||||
| github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= | github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= | ||||||
| github.com/mozillazg/go-pinyin v0.19.0 h1:p+J8/kjJ558KPvVGYLvqBhxf8jbZA2exSLCs2uUVN8c= | github.com/mozillazg/go-pinyin v0.19.0 h1:p+J8/kjJ558KPvVGYLvqBhxf8jbZA2exSLCs2uUVN8c= | ||||||
| github.com/mozillazg/go-pinyin v0.19.0/go.mod h1:iR4EnMMRXkfpFVV5FMi4FNB6wGq9NV6uDWbUuPhP4Yc= | github.com/mozillazg/go-pinyin v0.19.0/go.mod h1:iR4EnMMRXkfpFVV5FMi4FNB6wGq9NV6uDWbUuPhP4Yc= | ||||||
|  | github.com/muka/go-bluetooth v0.0.0-20220819140550-1d8857e3b268 h1:kOnq7TfaAO2Vc/MHxPqFIXe00y1qBxJAvhctXdko6vo= | ||||||
|  | github.com/muka/go-bluetooth v0.0.0-20220819140550-1d8857e3b268/go.mod h1:dMCjicU6vRBk34dqOmIZm0aod6gUwZXOXzBROqGous0= | ||||||
| github.com/neelance/astrewrite v0.0.0-20160511093645-99348263ae86/go.mod h1:kHJEU3ofeGjhHklVoIGuVj85JJwZ6kWPaJwCIxgnFmo= | github.com/neelance/astrewrite v0.0.0-20160511093645-99348263ae86/go.mod h1:kHJEU3ofeGjhHklVoIGuVj85JJwZ6kWPaJwCIxgnFmo= | ||||||
| github.com/neelance/sourcemap v0.0.0-20200213170602-2833bce08e4c/go.mod h1:Qr6/a/Q4r9LP1IltGz7tA7iOK1WonHEYhu1HRBA7ZiM= | github.com/neelance/sourcemap v0.0.0-20200213170602-2833bce08e4c/go.mod h1:Qr6/a/Q4r9LP1IltGz7tA7iOK1WonHEYhu1HRBA7ZiM= | ||||||
| github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646/go.mod h1:jpp1/29i3P1S/RLdc7JQKbRpFeM1dOBd8T9ki5s+AY8= | github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646/go.mod h1:jpp1/29i3P1S/RLdc7JQKbRpFeM1dOBd8T9ki5s+AY8= | ||||||
| @@ -396,8 +396,8 @@ github.com/yuin/goldmark v1.3.8/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1 | |||||||
| github.com/yuin/goldmark v1.4.0/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= | github.com/yuin/goldmark v1.4.0/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= | ||||||
| github.com/yuin/goldmark v1.4.4 h1:zNWRjYUW32G9KirMXYHQHVNFkXvMI7LpgNW2AgYAoIs= | github.com/yuin/goldmark v1.4.4 h1:zNWRjYUW32G9KirMXYHQHVNFkXvMI7LpgNW2AgYAoIs= | ||||||
| github.com/yuin/goldmark v1.4.4/go.mod h1:rmuwmfZ0+bvzB24eSC//bk1R1Zp3hM0OXYv/G2LIilg= | github.com/yuin/goldmark v1.4.4/go.mod h1:rmuwmfZ0+bvzB24eSC//bk1R1Zp3hM0OXYv/G2LIilg= | ||||||
| go.arsenm.dev/infinitime v0.0.0-20220511202257-9ed74726c478 h1:HO+fteXuSnnT7po1PhGJK6nk8qMAGN2RqDaVP4sRN8g= | go.arsenm.dev/infinitime v0.0.0-20220819210252-d199fba93c2f h1:Np0ZNlgVC5D9NOilN14HJ1mSXM8vl2LYGfK0fZOYUbY= | ||||||
| go.arsenm.dev/infinitime v0.0.0-20220511202257-9ed74726c478/go.mod h1:1cBQ3fp6QlRbSqu9kEBAHsVThINj31FtqHIYVsQ7wgg= | go.arsenm.dev/infinitime v0.0.0-20220819210252-d199fba93c2f/go.mod h1:K3NJ6fyPv5qqHUedB3MccKOE0whJMJZ80l/yTzzTrgc= | ||||||
| go.arsenm.dev/lrpc v0.0.0-20220513001344-3bcc01fdb6a0 h1:1K96g1eww+77GeGchwMhd0NTrs7Mk/Hc3M3ItW5NbG4= | go.arsenm.dev/lrpc v0.0.0-20220513001344-3bcc01fdb6a0 h1:1K96g1eww+77GeGchwMhd0NTrs7Mk/Hc3M3ItW5NbG4= | ||||||
| go.arsenm.dev/lrpc v0.0.0-20220513001344-3bcc01fdb6a0/go.mod h1:goK9z735lfXmqlDxu9qN7FS8t0HJHN3PjyDtCToUY4w= | go.arsenm.dev/lrpc v0.0.0-20220513001344-3bcc01fdb6a0/go.mod h1:goK9z735lfXmqlDxu9qN7FS8t0HJHN3PjyDtCToUY4w= | ||||||
| go.etcd.io/etcd/api/v3 v3.5.0/go.mod h1:cbVKeC6lCfl7j/8jBhAK6aIYO9XOjdptoxU/nLQcPvs= | go.etcd.io/etcd/api/v3 v3.5.0/go.mod h1:cbVKeC6lCfl7j/8jBhAK6aIYO9XOjdptoxU/nLQcPvs= | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user