Skip to content

Commit

Permalink
Plik 1.3 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles-Antoine Mathieu committed Sep 29, 2020
1 parent 161f86b commit 458651a
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ language: go
sudo: required

go:
- 1.14
- 1.15.2

go_import_path: github.com/root-gg/plik

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ SHELL = /bin/bash

RELEASE_VERSION = $(shell version/version.sh)
RELEASE_DIR = "release/plik-$(RELEASE_VERSION)"
RELEASE_TARGETS = darwin-386 darwin-amd64 freebsd-386 \
RELEASE_TARGETS = darwin-amd64 freebsd-386 \
freebsd-amd64 linux-386 linux-amd64 linux-arm openbsd-386 \
openbsd-amd64 windows-amd64 windows-386

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ Plik is a scalable & friendly temporary file upload system ( wetransfer like ) i
- [Filelink for Plik](https://gitlab.com/joendres/filelink-plik) : Thunderbird Addon to upload attachments to Plik

### Version
1.3-RC1
1.3

### Installation

##### From release
To run plik, it's very simple :
```sh
$ wget https://github.com/root-gg/plik/releases/download/1.3-RC1/plik-1.3-RC1-linux-64bits.tar.gz
$ tar xzvf plik-1.3-RC1-linux-64bits.tar.gz
$ cd plik-1.3-RC1/server
$ wget https://github.com/root-gg/plik/releases/download/1.3/plik-1.3-linux-64bits.tar.gz
$ tar xzvf plik-1.3-linux-64bits.tar.gz
$ cd plik-1.3/server
$ ./plikd
```
Et voilà ! You now have a fully functional instance of Plik running on http://127.0.0.1:8080.
Expand Down
29 changes: 29 additions & 0 deletions changelog/1.3
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Plik 1.3

Hi, today we're releasing Plik 1.3 !

Here is the changelog :

New
- Add --info to cli client to display server configuration

Fixed
- Fix common.AskConfirmation handling of no input
- Fix missing unit in frontend menu when default TTL equals 86400s
- Fix missing downloadDomain in bash script if not given in plikd.cfg
- Fix missing focus and submit in login form
- Fix bypass ~/.plikrc creation if --server cli param is provided

Removed
- darwin-386 target ( https://github.com/golang/go/issues/37610 )

Misc
- Improved cross-compilation in Makefile
- Cross-compiled docker images
- Pass build info using ldflags
- EnhancedWebSecurity configuration parameter removes sensible information form /version API endpoint

Binaries are compiled using Go v1.15.2

Faithfully,
The Plik team
1 change: 1 addition & 0 deletions client/test_downgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ RELEASES=(
1.2.2
1.2.3
1.2.4
1.3-RC1
)

###
Expand Down
1 change: 1 addition & 0 deletions client/test_upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ RELEASES=(
1.2.2
1.2.3
1.2.4
1.3-RC1
)

###
Expand Down
2 changes: 1 addition & 1 deletion version/version.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package version

const version = "1.3-RC1"
const version = "1.3"

// Get return the current package version
func Get() string {
Expand Down
3 changes: 2 additions & 1 deletion version/version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
)

func getVersionRegex() string {
return `^\d+\.\d+((\.\d+)|(\-RC\d+))$`
return `^\d+\.\d+((\.\d+)?|(\-RC\d+))$`
}

func validateVersion(t *testing.T, version string, ok bool) {
Expand All @@ -23,6 +23,7 @@ func validateVersion(t *testing.T, version string, ok bool) {
}

func TestValidateVersionRegex(t *testing.T) {
validateVersion(t, "1.1", true)
validateVersion(t, "1.1.1", true)
validateVersion(t, "1.1-RC1", true)
validateVersion(t, "1.1.1-RC1", false)
Expand Down

0 comments on commit 458651a

Please sign in to comment.