Skip to content

Commit 4ec97a2

Browse files
authored
Merge pull request #8 from Jacalz/develop
Changes for release version 2.1.0
2 parents 87a0d38 + 924e554 commit 4ec97a2

37 files changed

+851
-614
lines changed

.github/ISSUE_TEMPLATE/BUG_REPORT.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: Bug report
3+
about: Report a bug or odd behaviour
4+
title: ''
5+
labels: 'bug'
6+
assignees: ''
7+
8+
---
9+
10+
<!-- Please search for open issues that relate to the same problem before opening a new one. -->
11+
12+
### Description:
13+
<!-- Provide a clear and concise description of the bug. -->
14+
15+
16+
### Steps to Reproduce:
17+
<!-- Please provide a set of steps to reproduce the bug. -->
18+
1.
19+
2.
20+
3.
21+
22+
### Screenshots:
23+
<!-- If applicable, add screenshots or gifs to help showcase the bug. -->
24+
25+
### Device (please complete the following information):
26+
- **OS:** <!-- [e.g. Linux, MacOS or Windows] -->
27+
- **Version:** <!-- [e.g. 5.10.3, 10.13.2 High Sierra or 10] -->
28+
- **Go version:** <!-- [e.g. 1.15.6] -->
29+
- **Wormhole-gui version:** <!-- [e.g. 2.1.0 or git SHA] -->
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea or improvement
4+
title: ''
5+
labels: 'enhancement'
6+
assignees: ''
7+
8+
---
9+
10+
### Is your feature request related to a problem? Please describe:
11+
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->
12+
13+
### Describe the solution you'd like to see:
14+
<!-- A clear and concise description of what you want to happen. -->

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
### Description:
2+
<!-- A description of the included change. Please include any relevant motivation and background.
3+
If it fixes an issue, please add a line with: Fixes #issue-number -->
4+
5+
### Checklist:
6+
<!-- Please tick these as appropriate using [x] -->
7+
8+
- [ ] Tests included.
9+
- [ ] Lint and formatter run with no errors.
10+
- [ ] Tests all pass.

.github/workflows/static_analysis.yml

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,25 @@ on: [push, pull_request]
44
jobs:
55
checks:
66
runs-on: ubuntu-latest
7-
env:
8-
GO111MODULE: on
9-
CGO_ENABLED: on
10-
117
steps:
128
- uses: actions/checkout@v2
13-
- uses: actions/setup-go@v2
9+
- uses: WillAbides/setup-go[email protected]
1410
with:
15-
go-version: '1.15.x'
11+
go-version: '1.16.x'
1612

1713
- name: Install build dependencies
18-
run: sudo apt-get update && sudo apt-get install golang gcc libgl1-mesa-dev libegl1-mesa-dev libgles2-mesa-dev libx11-dev xorg-dev
14+
run: sudo apt-get update && sudo apt-get install gcc libgl1-mesa-dev libegl1-mesa-dev libgles2-mesa-dev libx11-dev xorg-dev
1915

2016
- name: Get static analysis tools
2117
run: |
22-
go get golang.org/x/tools/cmd/goimports
23-
go get github.com/fzipp/gocyclo/cmd/gocyclo
24-
go get golang.org/x/lint/golint
25-
go get honnef.co/go/tools/cmd/staticcheck
26-
go get github.com/securego/gosec/v2/cmd/gosec
18+
go install golang.org/x/tools/cmd/goimports@latest
19+
go install github.com/fzipp/gocyclo/cmd/gocyclo@latest
20+
go install golang.org/x/lint/golint@latest
21+
go install honnef.co/go/tools/cmd/staticcheck@v0.1.2
22+
go install github.com/securego/gosec/v2/cmd/gosec@v2.6.1
2723
2824
- name: Vet
29-
run: go vet -tags ci ./...
25+
run: go vet ./...
3026

3127
- name: Goimports
3228
run: test -z $(goimports -e -d . | tee /dev/stderr)
@@ -35,10 +31,10 @@ jobs:
3531
run: gocyclo -over 20 .
3632

3733
- name: Golint
38-
run: golint -set_exit_status $(go list -tags ci ./...)
34+
run: golint -set_exit_status $(go list ./...)
3935

4036
- name: Staticcheck
41-
run: staticcheck -f stylish ./...
37+
run: staticcheck -go 1.14 -f stylish ./...
4238

4339
- name: Gosec
4440
run: gosec ./...

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
*.dll
55
*.so
66
*.dylib
7+
*.tar.gz
8+
*.tar.xz
9+
*.zip
710
wormhole-gui
811

912
# Output from fyne-cross when running cross-compilation.

CHANGELOG.MD

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,37 @@
11
# Changelog
22

3+
## 2.1.0 - Major ui changes and a lot of improvements
4+
- Major rework of the receive tab to use progress bars.
5+
- Dialogs are no longer used to indicate finished receives.
6+
- Redesigned settings tab to use a more modern layout.
7+
- The component slider setting now displays the currently selected number.
8+
- Fixed a bug where the component length slider did not have distinct steps.
9+
- Added a setting to allow existing files to overwritten (disabled by default).
10+
- Multiple improvements to the text send and receive windows.
11+
- Opens faster by only being created once instead of on each send/receive.
12+
- Clicking `CTRL + SHIFT` in the send window now starts the send.
13+
- Tab characters are now displayed correctly (bug fix in fyne).
14+
- Buttons now use better wording and better icons.
15+
- Some small performance improvements for send and receive of files and directories.
16+
- Receives are now properly rejected instead of just not being downloaded.
17+
- Better notification handling by indicating success and fail for both sends and receives.
18+
- Copying the code of a sent item is now slightly faster.
19+
- Fixed an issue where existing files could be overwritten.
20+
- Fixed a couple possible race conditions on sending data.
21+
- Fixed an issue that prevented enter on the numpad from starting the receive.
22+
- Fixed an issue where file extensions would be displayed as `.` when waiting for data.
23+
- Fixed a bug that caused the window to not be able to shrink to the correct smallest size.
24+
- Multiple other code cleanups, restructurings and minor fixes.
25+
- Added an [appstream metadata](https://www.freedesktop.org/software/appstream/docs/) file for Linux and BSD systems (installed via `make install`).
26+
- Updated `fyne` to [v2.0.0](https://github.com/fyne-io/fyne/releases/tag/v2.0.0).
27+
- The tabs are now animated to be more responsible on change.
28+
- Buttons now show an animation on tapped.
29+
- Theme changes and other improvements to styling.
30+
- Multiple smaller performance optimizations for widgets.
31+
- Improved scaling on HIDPI displays.
32+
- Release binaries are now built with `Go 1.14.15`.
33+
- A security fix for `crypto/elliptic` and a few smaller bug fixes.
34+
335
## 2.0.2 - A few fixes while waiting for 2.1.0
436
- Fix a bug that prevented folder send to work on Windows.
537
- Fix an issue where the ui would become unresponsive on dismissing text send.

Makefile

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ APPID = com.github.jacalz.wormhole-gui
33
ICON = internal/assets/icon/icon-512.png
44
NAME = wormhole-gui
55

6-
# Default path to the go binary directory.
6+
# Variables for development.
77
GOBIN ?= ~/go/bin/
8+
VERSION ?= dev
89

910
# If PREFIX isn't provided, we check for $(DESTDIR)/usr/local and use that if it exists.
1011
# Otherwice we fall back to using /usr.
@@ -18,12 +19,14 @@ build:
1819
install:
1920
install -Dm00755 $(NAME) $(DESTDIR)$(PREFIX)/bin/$(NAME)
2021
install -Dm00644 $(ICON) $(DESTDIR)$(PREFIX)/share/pixmaps/$(NAME).png
21-
install -Dm00644 internal/assets/$(NAME).desktop $(DESTDIR)$(PREFIX)/share/applications/$(NAME).desktop
22+
install -Dm00644 internal/assets/unix/$(NAME).desktop $(DESTDIR)$(PREFIX)/share/applications/$(NAME).desktop
23+
install -Dm00644 internal/assets/unix/com.github.jacalz.$(NAME).metainfo.xml $(DESTDIR)$(PREFIX)/share/metainfo/com.github.jacalz.$(NAME).metainfo.xml
2224

2325
uninstall:
2426
-rm $(DESTDIR)$(PREFIX)/share/applications/$(NAME).desktop
2527
-rm $(DESTDIR)$(PREFIX)/bin/$(NAME)
2628
-rm $(DESTDIR)$(PREFIX)/share/pixmaps/$(NAME).png
29+
-rm $(DESTDIR)$(PREFIX)/share/metainfo/com.github.jacalz.$(NAME).metainfo.xml
2730

2831
check:
2932
# Check the whole codebase for misspellings.
@@ -50,4 +53,23 @@ linux:
5053
windows:
5154
$(GOBIN)fyne-cross windows -arch amd64 -app-id $(APPID) -icon $(ICON)
5255

53-
cross-compile: darwin freebsd linux windows
56+
windows-debug:
57+
$(GOBIN)fyne-cross windows -console -arch amd64 -app-id $(APPID) -icon $(ICON)
58+
59+
release: darwin freebsd linux windows
60+
# Usage: make release VERSION=v2.x.x
61+
# If no version is specified, it will default to "dev" instead.
62+
63+
# Move Linux package bundles to the root with correct naming.
64+
mv fyne-cross/dist/linux-amd64/wormhole-gui.tar.gz $(NAME)-$(VERSION)-linux-amd64.tar.gz
65+
mv fyne-cross/dist/linux-arm64/wormhole-gui.tar.gz $(NAME)-$(VERSION)-linux-arm64.tar.gz
66+
67+
# Move FreeBSD package bundles to the root with correct naming.
68+
mv fyne-cross/dist/freebsd-amd64/wormhole-gui.tar.gz $(NAME)-$(VERSION)-freebsd-amd64.tar.gz
69+
70+
# Zip up the darwin package with correct name and move to the root.
71+
(cd fyne-cross/dist/darwin-amd64/ && zip -r wormhole-gui-darwin-amd64.zip wormhole-gui.app/)
72+
mv fyne-cross/dist/darwin-amd64/wormhole-gui-darwin-amd64.zip $(NAME)-$(VERSION)-darwin-amd64.zip
73+
74+
# Move Windows package to the root with correct naming.
75+
mv fyne-cross/dist/windows-amd64/wormhole-gui.exe.zip $(NAME)-$(VERSION)-windows-amd64.zip

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ It uses the Go implementation of magic-wormhole, called [wormhole-william](https
88
</p>
99

1010
Built using the following Go modules:
11-
- [fyne](https://github.com/fyne-io/fyne) (version 1.4.3)
11+
- [fyne](https://github.com/fyne-io/fyne) (version 2.0.0)
1212
- [wormhole-william](https://github.com/psanford/wormhole-william) (version 1.0.4 + [f69f6e8](https://github.com/psanford/wormhole-william/commit/f69f6e823d8cec6b3756b8ce63024c8cd3c3ebf2))
1313
- [archiver](https://github.com/mholt/archiver) (version 3.5.0)
1414

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/Jacalz/wormhole-gui
33
go 1.14
44

55
require (
6-
fyne.io/fyne v1.4.3
6+
fyne.io/fyne/v2 v2.0.0
77
github.com/mholt/archiver/v3 v3.5.0
88
github.com/psanford/wormhole-william v1.0.5-0.20200920232445-f69f6e823d8c
99
)

go.sum

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
fyne.io/fyne v1.4.3 h1:356CnXCiYrrfaLGsB7qLK3c6ktzyh8WR05v/2RBu51I=
2-
fyne.io/fyne v1.4.3/go.mod h1:8kiPBNSDmuplxs9WnKCkaWYqbcXFy0DeAzwa6PBO9Z8=
1+
fyne.io/fyne/v2 v2.0.0 h1:TfsS3bNq5663BpXsoz1OfzyjcaMqqOf9usI8ZKkw4IE=
2+
fyne.io/fyne/v2 v2.0.0/go.mod h1:FmobqvPpBW+nG1nDyxZWf1SQLED9g/vXIxiIIVjHazY=
33
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
44
github.com/Kodeworks/golang-image-ico v0.0.0-20141118225523-73f0f4cfade9/go.mod h1:7uhhqiBaR4CpN0k9rMjOtjpcfGd6DG2m04zQxKnWQ0I=
55
github.com/VividCortex/ewma v1.1.1 h1:MnEK4VOv6n0RSY4vtRe3h11qjxL3+t0B8yOL8iMXdcM=
@@ -22,6 +22,8 @@ github.com/dsnet/compress v0.0.1/go.mod h1:Aw8dCMJ7RioblQeTqt88akK31OvO8Dhf5Jflh
2222
github.com/dsnet/golib v0.0.0-20171103203638-1ea166775780/go.mod h1:Lj+Z9rebOhdfkVLjJ8T6VcRQv3SXugXy999NBtR9aFY=
2323
github.com/fatih/color v1.7.0 h1:DkWD4oS2D8LGGgTQ6IvwJJXSL5Vp2ffcQg58nFV38Ys=
2424
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
25+
github.com/fredbi/uri v0.0.0-20181227131451-3dcfdacbaaf3 h1:FDqhDm7pcsLhhWl1QtD8vlzI4mm59llRvNzrFg6/LAA=
26+
github.com/fredbi/uri v0.0.0-20181227131451-3dcfdacbaaf3/go.mod h1:CzM2G82Q9BDUvMTGHnXf/6OExw/Dz2ivDj48nVg7Lg8=
2527
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
2628
github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4=
2729
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=

0 commit comments

Comments
 (0)