Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
Fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
ua741 committed Oct 25, 2023
1 parent a270055 commit 7a8de8f
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 16 deletions.
42 changes: 28 additions & 14 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,34 @@ builds:
- windows
- darwin

#archives:
# - format: tar.gz
# # this name template makes the OS and Arch compatible with the results of `uname`.
# name_template: >-
# {{ .ProjectName }}_
# {{- title .Os }}_
# {{- if eq .Arch "amd64" }}x86_64
# {{- else if eq .Arch "386" }}i386
# {{- else }}{{ .Arch }}{{ end }}
# {{- if .Arm }}v{{ .Arm }}{{ end }}
# # use zip for windows archives
# format_overrides:
# - goos: windows
# format: zip
nfpms:
- package_name: ente
homepage: https://github.com/ente-io/cli
maintainer: ente.io <[email protected]>
description: |-
Command Line Utility for exporting data from https://ente.io
formats:
- rpm
- deb
- apk

sboms:
- artifacts: archive

archives:
- format: tar.gz
# this name template makes the OS and Arch compatible with the results of `uname`.
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
# use zip for windows archives
format_overrides:
- goos: windows
format: zip

changelog:
sort: asc
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/spf13/cobra"
)

const AppVersion = "0.1.3"
const AppVersion = "0.1.5"

var ctrl *pkg.ClICtrl

Expand Down
2 changes: 1 addition & 1 deletion pkg/remote_to_disk_album.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (c *ClICtrl) createLocalFolderForRemoteAlbums(ctx context.Context, account
}
}
// Create album and meta folders if they don't exist
albumPath := filepath.Join(path, albumFolderName)
albumPath := filepath.Clean(filepath.Join(path, albumFolderName))
metaPath := filepath.Join(albumPath, ".meta")
if metaByID == nil {
log.Printf("Adding folder %s for album %s", albumFolderName, album.AlbumName)
Expand Down

0 comments on commit 7a8de8f

Please sign in to comment.