Skip to content

Commit a232119

Browse files
committed
hotfix: linux-snap init should tolower app name
name. Snap names can only use ASCII lowercase letters, numbers, and hyphens, and must have at least one letter.
1 parent ea76d28 commit a232119

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/packaging/linux-snap.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"os"
55
"path/filepath"
66
"runtime"
7+
"strings"
78

89
"github.com/otiai10/copy"
910

@@ -42,7 +43,7 @@ func InitLinuxSnap() {
4243
os.Exit(1)
4344
}
4445
snapcraftFileContent := []string{
45-
"name: " + removeDashesAndUnderscores(projectName),
46+
"name: " + strings.ToLower(removeDashesAndUnderscores(projectName)),
4647
"base: core18",
4748
"version: '" + pubspec.GetPubSpec().Version + "'",
4849
"summary: " + pubspec.GetPubSpec().Description,

0 commit comments

Comments
 (0)