mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-19 14:53:44 +00:00
fix: build flags type
This commit is contained in:
1 parent
0a9e39ed75
commit
c9692e76e5
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -27,7 +27,7 @@ func Start(cfg *model.StartConfig) {
|
|||||||
if downloadCfg.FirstLoad {
|
if downloadCfg.FirstLoad {
|
||||||
// Set default download dir, in docker, it will be ${exe}/Downloads, else it will be ${user}/Downloads
|
// Set default download dir, in docker, it will be ${exe}/Downloads, else it will be ${user}/Downloads
|
||||||
var downloadDir string
|
var downloadDir string
|
||||||
if base.InDocker {
|
if base.InDocker == "true" {
|
||||||
downloadDir = filepath.Join(filepath.Dir(cfg.StorageDir), "Downloads")
|
downloadDir = filepath.Join(filepath.Dir(cfg.StorageDir), "Downloads")
|
||||||
} else {
|
} else {
|
||||||
userDir, err := os.UserHomeDir()
|
userDir, err := os.UserHomeDir()
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@ package base
|
|||||||
|
|
||||||
// Version is the build version, set at build time, using `go build -ldflags "-X github.com/GopeedLab/gopeed/pkg/base.Version=1.0.0"`.
|
// Version is the build version, set at build time, using `go build -ldflags "-X github.com/GopeedLab/gopeed/pkg/base.Version=1.0.0"`.
|
||||||
var Version string
|
var Version string
|
||||||
var InDocker bool
|
var InDocker string
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
if Version == "" {
|
if Version == "" {
|
||||||
|
|||||||
Reference in new issue
Block a user