Skip to content

Commit

Permalink
release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
cuthix committed Sep 7, 2020
1 parent bf69638 commit bfdfc81
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 17 deletions.
4 changes: 2 additions & 2 deletions internal/bridge/credits.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/bridge/release_notes.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/importexport/credits.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions internal/importexport/release_notes.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 8 additions & 5 deletions internal/updates/updates.go
Expand Up @@ -63,6 +63,7 @@ type Updates struct {
landingPagePath string // Based on Host/; default landing page for download.
winInstallerFile string // File for initial install or manual reinstall for windows
macInstallerFile string // File for initial install or manual reinstall for mac
linInstallerFile string // File for initial install or manual reinstall for linux
versionFileBaseName string // Text file containing information about current file. per goos [_linux,_darwin,_windows].json (have .sig file).
updateFileBaseName string // File for automatic update. per goos [_linux,_darwin,_windows].tgz (have .sig file).
linuxFileBaseName string // Prefix of linux package names.
Expand All @@ -80,8 +81,9 @@ func NewBridge(updateTempDir string) *Updates {
releaseFixedBugs: bridge.ReleaseFixedBugs,
updateTempDir: updateTempDir,
landingPagePath: "bridge/download",
macInstallerFile: "Bridge-Installer.dmg",
winInstallerFile: "Bridge-Installer.exe",
macInstallerFile: "Bridge-Installer.dmg",
linInstallerFile: "Bridge-Installer.sh",
versionFileBaseName: "current_version",
updateFileBaseName: "bridge_upgrade",
linuxFileBaseName: "protonmail-bridge",
Expand All @@ -101,6 +103,7 @@ func NewImportExport(updateTempDir string) *Updates {
landingPagePath: "import-export",
winInstallerFile: "ie/Import-Export-app-installer.exe",
macInstallerFile: "ie/Import-Export-app.dmg",
linInstallerFile: "ie/Import-Export-app-installer.sh",
versionFileBaseName: "current_version_ie",
updateFileBaseName: "ie/ie_upgrade",
linuxFileBaseName: "ie/protonmail-import-export-app",
Expand Down Expand Up @@ -241,11 +244,11 @@ func (u *Updates) versionFileURL(goos string) string {
}

func (u *Updates) installerFileURL(goos string) string {
installerFile := "none"
installerFile := u.linInstallerFile
switch goos {
case "darwin":
case "darwin": //nolint[goconst]
installerFile = u.macInstallerFile
case "windows":
case "windows": //nolint[goconst]
installerFile = u.winInstallerFile
}
return strings.Join([]string{Host, DownloadPath, installerFile}, "/")
Expand Down Expand Up @@ -311,7 +314,7 @@ func (u *Updates) StartUpgrade(currentStatus chan<- Progress) { // nolint[funlen
cmd := exec.Command("./" + installerFile) // nolint[gosec]
cmd.Dir = u.updateTempDir
status.Err = cmd.Start()
case "darwin":
case "darwin": //nolint[goconst]
// current path is better then appDir = filepath.Join("/Applications")
var exePath string
exePath, status.Err = osext.Executable()
Expand Down
7 changes: 4 additions & 3 deletions release-notes/notes-importexport.txt
@@ -1,4 +1,5 @@
• Note: you need to log in again
• Complete code refactor in preparation of live release and open source of the Import-Export app
***Note: If you were using the Import-Export app before, you need to uninstall the older version and log in again to the new version***

• Complete code refactor in preparation of stable and open source release of the Import-Export app
• Increased number of supported mail providers by changing the way the folder structures are handled (NIL hierarchy delimiter)
• Improved handling for unstable internet and pause & resume behavior
• Improved handling for unstable internet and pause and resume behavior

0 comments on commit bfdfc81

Please sign in to comment.