Skip to content

Commit 3dde7fc

Browse files
committed
fix: filename to lowercase like in a232119
1 parent a232119 commit 3dde7fc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cmd/packaging/linux-deb.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ func BuildLinuxDeb() {
154154
outputFilePath := filepath.Join(build.OutputDirectoryPath("linux-deb"), outputFileName)
155155
runDockerPackaging(tmpPath, packagingFormat, []string{"dpkg-deb", "--build", ".", outputFileName})
156156

157-
err = os.Rename(filepath.Join(tmpPath, outputFileName), outputFilePath)
157+
err = copy.Copy(filepath.Join(tmpPath, outputFileName), outputFilePath)
158158
if err != nil {
159159
log.Errorf("Could not move deb file: %v", err)
160160
os.Exit(1)

cmd/packaging/linux-snap.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,11 @@ func BuildLinuxSnap() {
117117
os.Exit(1)
118118
}
119119

120-
outputFileName := removeDashesAndUnderscores(projectName) + "_" + pubspec.GetPubSpec().Version + "_" + runtime.GOARCH + ".snap"
120+
outputFileName := strings.ToLower(removeDashesAndUnderscores(projectName)) + "_" + pubspec.GetPubSpec().Version + "_" + runtime.GOARCH + ".snap"
121121
outputFilePath := filepath.Join(build.OutputDirectoryPath("linux-snap"), outputFileName)
122122
runDockerPackaging(tmpPath, packagingFormat, []string{"snapcraft"})
123123

124-
err = os.Rename(filepath.Join(tmpPath, outputFileName), outputFilePath)
124+
err = copy.Copy(filepath.Join(tmpPath, outputFileName), outputFilePath)
125125
if err != nil {
126126
log.Errorf("Could not move snap file: %v", err)
127127
os.Exit(1)

0 commit comments

Comments
 (0)