Compare commits

..

3 Commits

Author SHA1 Message Date
Lea Anthony
397094485b Fix CWE-126 2020-05-09 06:04:55 +10:00
Lea Anthony
72aa820761 lint fix 2020-05-09 05:55:54 +10:00
Lea Anthony
5e923ab200 Disable F5 key on windows 2020-05-09 05:46:40 +10:00
6 changed files with 7 additions and 21 deletions

View File

@@ -57,7 +57,7 @@ _Ubuntu: 16.04, 18.04, 19.04_
_Also succesfully tested on: Zorin 15, Parrot 4.7, Linuxmint 19, Elementary 5, Kali, Neon_
#### Arch Linux / ArchLabs
#### Arch Linux
`sudo pacman -S webkit2gtk gtk3`

View File

@@ -53,12 +53,10 @@ const (
Deepin
// Raspbian distribution
Raspbian
// Tumbleweed (OpenSUSE) distribution
// openSUSE Tumbleweed distribution
Tumbleweed
// Leap (OpenSUSE) distribution
// openSUSE Leap distribution
Leap
// ArchLabs distribution
ArchLabs
)
// DistroInfo contains all the information relating to a linux distribution
@@ -116,15 +114,13 @@ func parseOsRelease(osRelease string) *DistroInfo {
}
// Check distro name against list of distros
switch strings.ToLower(osID) {
switch osID {
case "fedora":
result.Distribution = Fedora
case "centos":
result.Distribution = CentOS
case "arch":
result.Distribution = Arch
case "archlabs":
result.Distribution = ArchLabs
case "debian":
result.Distribution = Debian
case "ubuntu":

View File

@@ -176,15 +176,6 @@ distributions:
gccversioncommand: *gccdumpversion
programs: *archdefaultprograms
libraries: *archdefaultlibraries
archlabs:
id: archlabs
releases:
default:
version: default
name: ArchLabs
gccversioncommand: *gccdumpversion
programs: *archdefaultprograms
libraries: *archdefaultlibraries
manjaro:
id: manjaro
releases:

View File

@@ -276,7 +276,7 @@ func CheckDependencies(logger *Logger) (bool, error) {
switch distroInfo.Distribution {
case Ubuntu, Debian, Zorin, Parrot, Linuxmint, Elementary, Kali, Neon, Deepin, Raspbian:
libraryChecker = DpkgInstalled
case Arch, ArcoLinux, ArchLabs, Manjaro, ManjaroARM:
case Arch, ArcoLinux, Manjaro, ManjaroARM:
libraryChecker = PacmanInstalled
case CentOS, Fedora, Tumbleweed, Leap:
libraryChecker = RpmInstalled

View File

@@ -1,4 +1,4 @@
package cmd
// Version - Wails version
const Version = "v1.6.0-pre2"
const Version = "v1.5.0"

View File

@@ -108,8 +108,7 @@ export function Notify(eventName, data) {
try {
parsedData = JSON.parse(data);
} catch (e) {
e.message =
Error('Invalid JSON data sent to notify [Event name = ' + eventName + '] ' + e.toString());
Error('Invalid JSON data sent to notify. Event name = ' + eventName);
}
}
// Do the callback