Skip to content

Commit

Permalink
fix: Pass install dir into service (#598)
Browse files Browse the repository at this point in the history
* pass install dir into service

* pass install dir to service update action service
  • Loading branch information
BinaryFissionGames authored Jul 28, 2022
1 parent cfb4f68 commit f3c4c2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion updater/internal/action/service_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func NewServiceUpdateAction(logger *zap.Logger, installDir string) *ServiceUpdat
return &ServiceUpdateAction{
backupSvc: service.NewService(
namedLogger,
"", // latestDir doesn't matter here
installDir,
service.WithServiceFile(path.BackupServiceFile(installDir)),
),
}
Expand Down
1 change: 1 addition & 0 deletions updater/internal/service/service_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ func NewService(logger *zap.Logger, installDir string, opts ...Option) Service {
newServiceFilePath: filepath.Join(path.ServiceFileDir(installDir), "windows_service.json"),
serviceName: defaultServiceName,
productName: defaultProductName,
installDir: installDir,
logger: logger.Named("windows-service"),
}

Expand Down

0 comments on commit f3c4c2c

Please sign in to comment.